We shall connect these pins to PORT D of microcontroller. Pin no 4, 5 and 6 are the control pins of LCD and they decide the working of LCD. We shall connect it to ground in our setup. The Pin no 3 VEE, which can be used to adjust the contrast of LCD by varying the potentiometer. Pin no 1 and 2 are GND and Vcc respectively, and are used to power up the LCD. There are various ways to interface the LCD display to microcontroller based on the coding technique and the platform used. Trigger is connected to PIN 14 (RX/PD0) and Echo is connected to PIN 16 (INT0/PD2) of the microcontroller. The Vcc and GND are used to power up the sensor and are connected to power and ground rails on breadboard. The ultrasonic distance sensor has 4 Pins: Vcc, GND, Trigger and Echo. The microcontroller is interfaced with 16X2 LCD and Ultrasonic sensor. The overall circuit assembled on the breadboard contains three major components :ATmega 32 Microcontroller, Ultrasonic distance sensor and 16X2 Alphanumeric LCD display. Hardware Ultrasonic Distance Locator – Block Diagram Circuit Diagram Ultrasonic Distance Measurer – Circuit Diagram Circuit Description Here we have made a setup based on a microcontroller in which real time distance is sensed by an ultrasonic sensor and displays measured distance on an LCD display. This project uses an ultrasonic sensor to indicate the distance of any object from it.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |