![]() |
---|
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
- 8051 or AT89S52 microcontroller
- 16X2 LCD
- HC-SR04 Ultrasonic Sensor
- 10K POT
- Few Jumper wires
- Keil IDE
- Basic microcontroller understanding
- Copy ultrasonic.c in project directory
- Open keil and setup to 8051 or AT89S52 microcontroller
- Compile the file
- Burn file to microcontroller
- Enjoy
- Can also generate a Hex code for proteus for simulation