naveen-nayan / ultrasonic-distance-calculator

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Ultrasonic-distance-calculator

AT89S52 interface with ultrasonic sensor HC-SR04 and 16X2 LCD to display distance

Interface Diagram
LCD and HC-SR04 interfacing with microcontroller

Circuit diagram for LCD and HC-SR04(ultrasonic senor) interfacing with AT89S52 microcontroller is shown in the above figure

Project Requirements

  1. 8051 or AT89S52 microcontroller
  2. 16X2 LCD
  3. HC-SR04 Ultrasonic Sensor
  4. 10K POT
  5. Few Jumper wires
  6. Keil IDE
  7. Basic microcontroller understanding

How to setup

  1. Copy ultrasonic.c in project directory
  2. Open keil and setup to 8051 or AT89S52 microcontroller
  3. Compile the file
  4. Burn file to microcontroller
  5. Enjoy
  6. Can also generate a Hex code for proteus for simulation