Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, two HC-SR04 Ultrasonic Sensors, and a Servo motor. The Arduino UNO serves as the central controller, interfacing with the ultrasonic sensors to measure distance and controlling the Servo motor based on the sensor inputs.
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
HC-SR04 Ultrasonic Sensor (Sensor 1)
- Description: An ultrasonic sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
HC-SR04 Ultrasonic Sensor (Sensor 2)
- Description: An ultrasonic sensor used for distance measurement.
- Pins: VCC, TRIG, ECHO, GND
Servo
- Description: A motor that can be controlled to rotate to a specific angle.
- Pins: gnd, vcc, pulse
Wiring Details
Arduino UNO
- 5V: Connected to VCC of Servo, VCC of HC-SR04 Sensor 1, VCC of HC-SR04 Sensor 2
- GND: Connected to gnd of Servo, GND of HC-SR04 Sensor 1, GND of HC-SR04 Sensor 2
- D9: Connected to pulse of Servo
- D7: Connected to TRIG of HC-SR04 Sensor 1
- D6: Connected to ECHO of HC-SR04 Sensor 1
- D5: Connected to TRIG of HC-SR04 Sensor 2
- D4: Connected to ECHO of HC-SR04 Sensor 2
HC-SR04 Ultrasonic Sensor (Sensor 1)
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- TRIG: Connected to D7 of Arduino UNO
- ECHO: Connected to D6 of Arduino UNO
HC-SR04 Ultrasonic Sensor (Sensor 2)
- VCC: Connected to 5V of Arduino UNO
- GND: Connected to GND of Arduino UNO
- TRIG: Connected to D5 of Arduino UNO
- ECHO: Connected to D4 of Arduino UNO
Servo
- vcc: Connected to 5V of Arduino UNO
- gnd: Connected to GND of Arduino UNO
- pulse: Connected to D9 of 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:
}
Additional Documentation (documentation.txt)
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component list, wiring details, and the code used in the Arduino UNO microcontroller.
