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?
Step 1: Components Required
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. Each of the product is linked with the URL
|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|
Step 2: Wiring Diagram
In real world it looks like below:
Step 3: Sample Code
You can download the code from the link below:
If you happen to put this setup in a case, do not forget to share the pictures with us! Happy Hacking!
Do visit our website wiki for more details and support about this tutorial.