How to Ultrasonic on LCD - Arduino - Ahmed Rahmou




About: I Just LOVE ARDUINO !!!

How to know Ultrasonic on LCD

- The HC-SR04 Ultrasonic Module has 4 pins, Ground, VCC, Trig and Echo. The Ground and the VCC pins of the module needs to be connected to the Ground and the 5 volts pins on the Arduino Board respectively and the trig and echo pins to any Digital I/O pin on the Arduino Board.

- The HC-SR04 sensor attach to the Breadboard - The Sensor VCC connect to the Arduino Board +5V - The Sensor GND connect to the Arduino Board GND - The Sensor Trig connect to the Arduino Board Digital I/O 9 - The Sensor Echo connect to the Arduino Board Digital I/O 10

LCD Display Connection:

Before wiring the LCD screen to your Arduino or Genuino board we suggest to solder a pin header strip to the 14 (or 16) pin count connector of the LCD screen. To wire your LCD screen to your board, connect the following pins:

LCD VSS pin to Arduino GND LCD VDD pin to Arduino 5V LCD VO pin to 10k Potentiometer center pin LCD RS pin to digital pin 1 LCD RW pin to Arduino GND LCD Enable pin to digital pin 2 LCD D4 pin to digital pin 4 LCD D5 pin to digital pin 5 LCD D6 pin to digital pin 6 LCD D7 pin to digital pin 7 The 10k Potentiometer's other legs connect to +5V and GND For the backlight of the display, pin 15 (A+) and 16 (K-) of the LCD connect to +5V and GND

Download The Code :



    • 1 Hour Challenge

      1 Hour Challenge
    • Sensors Contest

      Sensors Contest
    • Backyard Contest

      Backyard Contest



    2 years ago

    Hi and welcome!

    We're glad you want to share something with the community, but unfortunately this doesn't qualify as an Instructable . . . but you can fix it so it does! :)

    An Instructable shows others how to do or make something, and outlines your project with multiple written steps to show readers how to duplicate what you have done. Would you like to write up multiple steps with photos to outline your project? Leave me a message here if you do, and I will take a look and publish this if it is ready!


    Your friendly neighborhood instructables staff