Introduction: Mega 2560 Compact LCD Ultrasonic

Picture of Mega 2560 Compact LCD Ultrasonic

This Instructable uses the DFRobot LCD Keypad Shield to give real time measurements in centimeters from the HC-SR04 ultrasonic sensor using the Arduino Mega 2560. I didn't verify accuracy using a ruler but it appears to be reasonably accurate.

Credits:

This Instructable created with inspiration from Giedow. What a brilliant idea. Thank you for sharing.
https://www.instructables.com/id/Easy-ultrasonic-4-...

New Ping Library for Arduino library Author Tim Eckel. Thank You Tim.

http://playground.arduino.cc/Code/NewPing

Step 1: Items Needed

Picture of Items Needed

Arduino Mega 2560 or Arduino Compatible Mega 2560

DFRobot Keypad LCD Shield

HC-SR04 Ultrasonic sensor

Step 2: Assemble

Stack the DFRobot Keypad LCD Shield on top of the Arduino 2560 ensuring you align the pins correctly.

Place the HC-SR04 Ultrasonic Sensor at the end of the Mega 2660 ensuring you align the pins as follows

VCC to pin 41

Trig or Trigger to pin 39

Echo to Pin 37

Gnd or Ground to pin 35

Step 3: The Code

Download the ping_lcd_shield.ino file and open it in the Arduino IDE and try it out.

Prior to uploading make sure the Arduino IDE is set to Arduino Mega 2560 under: Tools> Board.

You may have to select the proper com port as well. Tools> Port

Comments

IsraelD3 made it! (author)2016-05-06

Lo e conseguido y funciona muy bien estoy muy contento buen trabajo.

Hawwa Styles (author)2016-04-24

It would really helpful if anyone help me out with my project of radar system using matlab

Lintang_Wisesa made it! (author)2016-04-07

Nice project ^_^ Here's mine: https://youtu.be/9mn-uZ2kELM

DIY Hacks and How Tos (author)2015-12-06

Cool ultrasonic sensor project.

About This Instructable

1,825views

14favorites

License:

More by rshonk:Proto Wire RackMega 2560 Compact LCD Ultrasonic
Add instructable to: