Ultrasonic sensors can be used to measure distance from objects without actual contact and used at several places like water level measurement, distance measurement etc. This is an efficient way to measure small distances precisely. In this project we are using Ultrasonic Sensor to determine the distance of an obstacle from the sensor. Detection Range of the sensor is upto 4 meters.
Microcontroller used in project is Atmega328 which belongs to AVR microcontroller family. We are using Arduino Uno board to interface peripherals. HC-SR04 ultrasonic sensor is used for object distance measurement. The distance readings are also sent to computer serial monitor for debugging purpose. Servo motor is used to control a lid of dust bin. Regulated power supply 5V is given for all the units. We are using 12V 1A dc adapter to supply power. We can also use a battery pack for outdoor usage condition.
Software:
• Arduino IDE
• Embedded CPP Code
• Proteus Simulator
Hardware:
- Atmega328 Microcontroller (Arduino UNO)
- Ultrasonic sensor Module HC-SR04
- Servo Motor
- LED indicator
- Regulated Power Supply 5V
- 12V 1A DC Adapter