Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, three LEDs (red, green, and yellow), a resistor, and a servo motor. The Arduino UNO controls the LEDs and the servo motor. The LEDs are connected to the digital pins of the Arduino, and the servo motor is connected to a PWM pin. The resistor is used to limit the current through the 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
LED: Two Pin (red)
- Description: A red LED with two pins: anode and cathode.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green LED with two pins: anode and cathode.
- Pins: cathode, anode
LED: Two Pin (yellow)
- Description: A yellow LED with two pins: anode and cathode.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
Servo
- Description: A servo motor with three pins: GND, VCC, and PWM.
- Pins: GND, VCC, PWM
Wiring Details
Arduino UNO
- D8: Connected to the anode of the red LED.
- D9: Connected to the anode of the yellow LED.
- D10: Connected to the anode of the green LED.
- D12: Connected to the PWM pin of the servo motor.
- 5V: Connected to the VCC pin of the servo motor.
- GND: Connected to the GND pin of the servo motor and pin2 of the resistor.
LED: Two Pin (red)
- Anode: Connected to D8 of the Arduino UNO.
- Cathode: Connected to pin1 of the resistor.
LED: Two Pin (green)
- Anode: Connected to D10 of the Arduino UNO.
- Cathode: Connected to pin1 of the resistor.
LED: Two Pin (yellow)
- Anode: Connected to D9 of the Arduino UNO.
- Cathode: Connected to pin1 of the resistor.
Resistor
- Pin1: Connected to the cathode of the red, green, and yellow LEDs.
- Pin2: Connected to GND of the Arduino UNO.
Servo
- GND: Connected to GND of the Arduino UNO.
- VCC: Connected to 5V of the Arduino UNO.
- PWM: Connected to D12 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
