Circuit Documentation
Summary
This circuit involves an Arduino UNO microcontroller, a servo motor, a pushbutton, two LEDs (red and green), and two resistors. The Arduino UNO controls the LEDs and the servo motor, while the pushbutton is used as an input device. The resistors are 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
Servo
- Description: A servo motor used for precise control of angular position.
- Pins: GND, VCC, PWM
Pushbutton
- Description: A simple pushbutton used as an input device.
- Pins: Pin 2, Pin 1, Pin 3, Pin 4
LED: Two Pin (red)
- Description: A red LED.
- Pins: cathode, anode
LED: Two Pin (green)
- Description: A green LED.
- Pins: cathode, anode
Resistor (200 Ohms)
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
Wiring Details
Arduino UNO
GND is connected to:
- Resistor (200 Ohms) pin1
- Resistor (200 Ohms) pin1
- Pushbutton Pin 3
- Servo GND
D2 is connected to:
- Pushbutton Pin 1
D3 is connected to:
- LED: Two Pin (red) anode
D4 is connected to:
- LED: Two Pin (green) anode
5V is connected to:
- Servo VCC
D9 is connected to:
- Servo PWM
Servo
VCC is connected to:
- Arduino UNO 5V
GND is connected to:
- Arduino UNO GND
PWM is connected to:
- Arduino UNO D9
Pushbutton
Pin 1 is connected to:
- Arduino UNO D2
Pin 3 is connected to:
- Arduino UNO GND
- Resistor (200 Ohms) pin1
- Resistor (200 Ohms) pin1
LED: Two Pin (red)
anode is connected to:
- Arduino UNO D3
cathode is connected to:
- Resistor (200 Ohms) pin2
LED: Two Pin (green)
anode is connected to:
- Arduino UNO D4
cathode is connected to:
- Resistor (200 Ohms) pin2
Resistor (200 Ohms)
pin1 is connected to:
- Arduino UNO GND
- Pushbutton Pin 3
pin2 is connected to:
- LED: Two Pin (red) cathode
- LED: Two Pin (green) cathode
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
