Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an Ultrasonic Sensor, and a DC Motor. The Arduino UNO serves as the central control unit, interfacing with the Ultrasonic Sensor to measure distance and controlling the DC Motor based on the sensor's readings.
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
Ultrasonic Sensor
- Description: A sensor used to measure distance by using ultrasonic waves.
- Pins: +VCC, Trigger, Echo, GND
DC Motor
- Description: A motor that runs on direct current (DC) electricity.
- Pins: pin 1, pin 2
Wiring Details
Arduino UNO
- 5V: Connected to +VCC of the Ultrasonic Sensor
- GND: Connected to GND of the Ultrasonic Sensor
- Vin: Connected to pin 1 of the DC Motor
- D11: Connected to pin 2 of the DC Motor
- D10: Connected to Echo of the Ultrasonic Sensor
- D9: Connected to Trigger of the Ultrasonic Sensor
Ultrasonic Sensor
- +VCC: Connected to 5V of the Arduino UNO
- GND: Connected to GND of the Arduino UNO
- Echo: Connected to D10 of the Arduino UNO
- Trigger: Connected to D9 of the Arduino UNO
DC Motor
- pin 1: Connected to Vin of the Arduino UNO
- pin 2: Connected to D11 of the Arduino UNO
Code Documentation
Arduino UNO Code
sketch.ino
void setup() {
}
void loop() {
}
documentation.txt
This documentation provides a comprehensive overview of the circuit, including a summary, detailed component descriptions, wiring details, and the code used in the Arduino UNO.