Arduino UNO Based Multi-Sensor Distance Detection System with Audio Alert
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This circuit integrates an Arduino UNO microcontroller with multiple HC-SR04 Ultrasonic Sensors and a buzzer. The Arduino UNO is used to control the sensors and the buzzer, likely for distance measurement and alerting purposes. The ultrasonic sensors are powered by the 5V output from the Arduino and are grounded to the Arduino's ground (GND) pin. The sensors' trigger (TRIG) and echo (ECHO) pins are connected to specific digital I/O pins on the Arduino for sending and receiving ultrasonic signals. The buzzer is also connected to the Arduino, with one pin connected to a digital I/O pin for control and the other to ground.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0-A5, SCL, SDA, AREF, D0-D13
HC-SR04 Ultrasonic Sensor
- Description: An ultrasonic distance sensor that measures distance by emitting and receiving ultrasonic waves.
- Pins: VCC, TRIG, ECHO, GND
Buzzer
- Description: An electromechanical component that emits sound when an electrical signal is applied.
- Pins: PIN, GND
Wiring Details
Arduino UNO
- 5V: Connected to VCC of all HC-SR04 Ultrasonic Sensors
- GND: Connected to GND of all HC-SR04 Ultrasonic Sensors and the buzzer
- D2-D10: Connected to TRIG and ECHO pins of HC-SR04 Ultrasonic Sensors and PIN of the buzzer as follows:
- D10: Buzzer PIN
- D9: ECHO of HC-SR04 Sensor
- D8: ECHO of another HC-SR04 Sensor
- D7: ECHO of another HC-SR04 Sensor
- D6: ECHO of another HC-SR04 Sensor
- D5: TRIG of HC-SR04 Sensor
- D4: TRIG of another HC-SR04 Sensor
- D3: TRIG of another HC-SR04 Sensor
- D2: TRIG of another HC-SR04 Sensor
HC-SR04 Ultrasonic Sensors
- VCC: Connected to 5V on Arduino UNO
- TRIG: Connected to digital pins D2-D5 on Arduino UNO
- ECHO: Connected to digital pins D6-D9 on Arduino UNO
- GND: Connected to GND on Arduino UNO
Buzzer
- PIN: Connected to D10 on Arduino UNO
- GND: Connected to GND on Arduino UNO
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not contain any functional code for controlling the HC-SR04 Ultrasonic Sensors or the buzzer. The user is expected to fill in the setup and loop functions with the necessary code to initialize the sensors and control the buzzer based on the sensor readings.