Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Living
Outside
Play
Technology
Workshop
Table of Contents
Arduino ultrasonic range finder, with lcd display! . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 4: Assembly . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 5: Code . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Step 6: Finishing . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Related Instructables . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Advertisements . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
Comments . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Image Notes
1. Arduino
2. Ultrasonic sensor
3. Display 20x04 chars
4. Random parts, not
necessary but recommend ;P
Image Notes
1. Cables
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Image Notes
1. Cables
2. Ultrasonic sensor, module HC-SR04
3. Breadboard
4. Display 20x4
5. Display 20x4
Image Notes
1. IIC/I2C/TWI/SP I Serial Interface Board Module connected to the Display
2. The Display
3. Serial/Part Number
4. Jumper for the backlight LED
5. New output pins: GND VCC SDA SCL
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Image Notes
1. Ultrasonic emitter
2. Ultrasonic reciever
Step 4: Assembly
Lets assembly it, plug the VCC pins of the Display and the Sensor to the +5V pin of the Arduino, plug the GND pins of the Display and the Sensor to GND of the Arduino.
Now plug the TRIG pin of the Ultrasonic Sensor to pin 12 of your Arduino
and the ECHO pin to pin 11 of your Arduino.
Sensor:
VCC -> +5V
GND -> 0V
TRIG -> pin 12
ECHO -> pin 11
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Image Notes
1. Arduino
2. Ultrasonic sensor
3. Display 20x04 chars
4. Random parts, not
necessary but recommend ;P
Step 5: Code
Now my favorite chapter, because i wrote the code myself, what made my day, beacuse im not such a good programmer :)
The code is made for the Arduino Uno, you can find it here:
https://github.com/Jan--Henrik/Arduino-ultrasonic-rangefinder
I wrote many commands, to help you understanding it.
You can add a custom startup message (line 57), also you can add a custom design while measuring ( line 87 )
Feel free to comment bugs, addictions and things to make it better!!! :)
Also feel free to comment if you amde the code for other processors (like the Attiny85)!!
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Step 6: Finishing
SUCCESS!!! :)
Now your first self build arduino range sensor should work!! congratulations!!
Ideas:
Code it for other processors/platforms
make a nice case
use other parts
troubleshooting:
Display shows bars:
unplug power source, then wait 5 secconds and plug it in again. Sometimes there is a bug, that the display dont refresh :/
may SDA and SCL are reversed
Sensor dont work:
TRIG and ECHO are switched
Display, Arduino and LEDs fade out:
you made a short circuit, unplug your power source immediately!!!!
Thank you for Reading, feel free to comment and Vote for me in a Contest!!!
greets Jan Henrik
Image Notes
1. Cables
2. Ultrasonic sensor, module HC-SR04
3. Breadboard
4. Display 20x4
5. Display 20x4
Image Notes
1. Arduino
2. Ultrasonic sensor
3. Display 20x04 chars
4. Random parts, not
necessary but recommend ;P
Related Instructables
ATTiny powered
Arduino
Projects - I
made it at
TechShop by
madebyjoe
Sound Ranging
for the Visually
Impaired using
Arduino
Prototype
Design Concept
by station420
Working Sonic
Screwdriver Version 3.0 by
The Props
Monster
ATTiny45/85
LCD display
control with a
shift register,
programmed in
Arduino by
baharini
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/
Advertisements
Comments
http://www.instructables.com/id/Arduino-ultrasonic-range-finder-with-lcd-display/