Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, an IR sensor, and a servo motor. The IR sensor detects an object and sends a signal to the Arduino, which then controls the servo motor based on the received signal.
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
IR Sensor
- Description: An infrared sensor used to detect objects.
- Pins: out, gnd, vcc
Servo (Wokwi Compatible)
- Description: A servo motor compatible with Wokwi simulation.
- Pins: GND, V+, PWM
Wiring Details
Arduino UNO
- 5V: Connected to the V+ pin of the Servo and the vcc pin of the IR sensor.
- GND: Connected to the GND pin of the Servo and the gnd pin of the IR sensor.
- D9: Connected to the PWM pin of the Servo.
- D2: Connected to the out pin of the IR sensor.
IR Sensor
- vcc: Connected to the 5V pin of the Arduino UNO.
- gnd: Connected to the GND pin of the Arduino UNO.
- out: Connected to the D2 pin of the Arduino UNO.
Servo (Wokwi Compatible)
- V+: Connected to the 5V pin of the Arduino UNO.
- GND: Connected to the GND pin of the Arduino UNO.
- PWM: Connected to the D9 pin of the Arduino UNO.
Code Documentation
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.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.
