![]() ![]() Introduction to Smart Dustbin using Arduino and Ultrasonic Sensor:.When the object present outside of this distance range, this time buzzer and LED will turn on and indicate the object is present outside of the distance range. ![]() The ultrasonic sensor can measure distance in the range of 2 cm to 400 cm. Then Arduino prints the distance value on the LCD display in the Cm and Inch unit. We need to divide the distance value by 2 because time will be double as the waves travel and reflect back from the object. t = the sound waves take time to reflect back from the object surface. v = speed of sound in Air ( 0.034cm/µs or 340 m/s). Where s = distance between the sensor and object. This way Arduino calculates the time duration and measure the distance. Then the Arduino read the high pulse output from the sensor echo pin. This output pulse duration is equal to the time difference between the transmitted sound wave and the received sound wave. Now the ultrasonic sensor sens the reflected sound wave and the sensor echo pin produce a high pulse output. When any object comes in front of the sensor then the sound wave reflects back from the object surface to the sensor receiver part. At the same time, the ultrasonic sensor starts emitting sound waves from the transmitter part. Working Principle of Distance Measurement using Ultrasonic Sensor and Arduino with LCD displayĪfter connecting all the components according to the circuit diagram and uploading the code on Arduino, now turn on the power supply. Respectively Digital Pin “D8”, “D7”, “D6”, “D5”, “D4”, “D3”ġ0k Potentiometer Signal pin, Potentiometer one pin is connected to 5V and another pin is connected to GND(ground)Ĭonnected to Arduino digital pin “D11” through a 220 ohm resistor.Ĭonnected to Arduino “Vin” pin through a slide switch Ultrasonic sensor GND pin, LCD Display (Vss, Rw and LED -) Pins Ultrasonic sensor VCC pin, LCD Display ( Vdd, LED +) PinsĪrduino 5V Pin, but LCD Display LED + Pins connected to Arduino 5V Pin through 220ohm resistor. LED or Light Emitting Diode – Pin Diagram, Construction, Working Principle ![]() Ultrasonic Sensor Module-HC-SR04 | How it’s Works ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |