(11 intermediate revisions by 2 users not shown)
Line 1: Line 1:
 +
<div class="col-md-12 col-sm-12 col-xs-12">
 
[[User:Guru|Guru]] ([[User talk:Guru|talk]]) 10:33, 14 October 2015 (IST)
 
[[User:Guru|Guru]] ([[User talk:Guru|talk]]) 10:33, 14 October 2015 (IST)
 
----  
 
----  
 +
In this simple tutorial, I will show you how to make a distance meter. It uses a ultrasonic sensor to read distance and display it in custom big fonts on a LCD display. It is powered up by a battery, so that you can take it around for a ride. We also plan to put up a case around it and make a kit. How does that sound?
 +
  
 
[[File:1-1-DSC04314.JPG|x600px|center]]
 
[[File:1-1-DSC04314.JPG|x600px|center]]
Line 6: Line 9:
  
 
==Components/Boards Used==
 
==Components/Boards Used==
 +
You'll require the components below to make it happen. Please consider buying them from the [http://www.exploreembedded.com/shop Explore Embedded Store] to help us make all the awesome stuff.
  
 
{| class="wikitable"
 
{| class="wikitable"
Line 15: Line 19:
 
|-
 
|-
 
| 3|| [https://www.exploreembedded.com/product/HC-SR04%20Ultrasonic%20Sensor%20Module  HC-SR04 Ultrasonic Sensor Module]|| <html><img src="https://www.exploreembedded.com/blog/wp-content/uploads/img-collections/ultrasonic-sensor-module/dsc02512.jpg"  width = "300"></html>
 
| 3|| [https://www.exploreembedded.com/product/HC-SR04%20Ultrasonic%20Sensor%20Module  HC-SR04 Ultrasonic Sensor Module]|| <html><img src="https://www.exploreembedded.com/blog/wp-content/uploads/img-collections/ultrasonic-sensor-module/dsc02512.jpg"  width = "300"></html>
 +
 +
|-
 +
| 4|| [https://www.exploreembedded.com/product/LCD%20Breakout%20Board%20for%2016x1%2016x2%2020x4%20128x64  LCD Breakout Board for 16x1 16x2 20x4 128x64]|| <html><img src="https://www.exploreembedded.com/blog/wp-content/uploads/img-collections/lcd-breakout/lcd-breakout.jpg"  width = "300"></html>
 +
|
 +
 +
|-
 +
| 5|| [https://www.exploreembedded.com/product/Large%20Breadboard Large Breadboard]|| <html><img src="https://www.exploreembedded.com/blog/wp-content/uploads/img-collections/breadboard-large/breadboard_large.jpg"  width = "300"></html>
 
|}
 
|}
 +
 +
==Wiring diagram==
 +
<html>
 +
<img class="img-responsive" src="https://exploreembedded.com/wiki/images/thumb/f/f8/Explore_Distance_meter.png/701px-Explore_Distance_meter.png">
 +
</html>
  
 
==Arduino code for Distance Meter==
 
==Arduino code for Distance Meter==
 
<html>
 
<html>
<script src="https://gist.github.com/raghavendrahassy/187850b35971e23645df.js"></script>
+
<script src="https://gist.github.com/Xplorer001/bb75ae0048212cc6b7b6.js"></script>
 
</html>
 
</html>
 
 
  
 
==Downloads==
 
==Downloads==
Line 29: Line 43:
 
==References and Credits==
 
==References and Credits==
 
* http://mikeyancey.com/hamcalc/lcd_characters.php   
 
* http://mikeyancey.com/hamcalc/lcd_characters.php   
 
+
</div>
 
{{DISQUS}}
 
{{DISQUS}}

Latest revision as of 16:07, 23 February 2016

Guru (talk) 10:33, 14 October 2015 (IST)


In this simple tutorial, I will show you how to make a distance meter. It uses a ultrasonic sensor to read distance and display it in custom big fonts on a LCD display. It is powered up by a battery, so that you can take it around for a ride. We also plan to put up a case around it and make a kit. How does that sound?


1-1-DSC04314.JPG


Components/Boards Used

You'll require the components below to make it happen. Please consider buying them from the Explore Embedded Store to help us make all the awesome stuff.

1 Explore One for Arduino
2 Character LCD 16 x 2 - White on Blue
3 HC-SR04 Ultrasonic Sensor Module
4 LCD Breakout Board for 16x1 16x2 20x4 128x64
5 Large Breadboard

Wiring diagram

Arduino code for Distance Meter

Downloads

References and Credits