Arduino UNO-Based Ultrasonic Distance Sensor with LED Indicators and Buzzer Alert
View and Edit Project In Cirkit Designer
Circuit Documentation
Summary
This document provides a detailed overview of a circuit that includes an Arduino UNO microcontroller, an ultrasonic sensor, a buzzer, and several LEDs and resistors. The circuit is designed to interface with the ultrasonic sensor to detect distance and provide feedback through the buzzer and LEDs.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins: UNUSED, IOREF, Reset, 3.3V, 5V, GND, Vin, A0, A1, A2, A3, A4, A5, SCL, SDA, AREF, D13, D12, D11, D10, D9, D8, D7, D6, D5, D4, D3, D2, D1, D0
Buzzer
- Description: A simple piezoelectric buzzer.
- Pins: PIN, GND
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
LED: Two Pin (green)
- Description: A green LED.
- Pins: cathode, anode
LED: Two Pin (red)
- Description: A red LED.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 100 Ohms.
- Pins: pin1, pin2
- Properties: Resistance: 100 Ohms
Wiring Details
Arduino UNO
- 5V connected to +VCC of the Ultrasonic Sensor.
- GND connected to GND of the Ultrasonic Sensor, GND of the Buzzer, and cathode of all LEDs.
- D11 connected to PIN of the Buzzer.
- D9 connected to Echo of the Ultrasonic Sensor.
- D8 connected to Trigger of the Ultrasonic Sensor.
- D6 connected to pin1 of a Resistor.
- D5 connected to pin1 of a Resistor.
- D4 connected to pin1 of a Resistor.
- D3 connected to pin1 of a Resistor.
- D2 connected to pin1 of a Resistor.
Buzzer
- PIN connected to D11 of the Arduino UNO.
- GND connected to GND of the Arduino UNO.
Ultrasonic Sensor
- +VCC connected to 5V of the Arduino UNO.
- Trigger connected to D8 of the Arduino UNO.
- Echo connected to D9 of the Arduino UNO.
- GND connected to GND of the Arduino UNO.
LED: Two Pin (green)
- cathode connected to GND of the Arduino UNO.
- anode connected to pin2 of a Resistor.
LED: Two Pin (red)
- cathode connected to GND of the Arduino UNO.
- anode connected to pin2 of a Resistor.
Resistor
pin1 connected to D6 of the Arduino UNO.
pin2 connected to anode of a green LED.
pin1 connected to D5 of the Arduino UNO.
pin2 connected to anode of a red LED.
pin1 connected to D4 of the Arduino UNO.
pin2 connected to anode of a red LED.
pin1 connected to D3 of the Arduino UNO.
pin2 connected to anode of a green LED.
pin1 connected to D2 of the Arduino UNO.
pin2 connected to anode of a red LED.
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:
}
Documentation (documentation.txt)
This document provides a comprehensive overview of the circuit, including the components used, their wiring details, and the code running on the Arduino UNO microcontroller.