Circuit Documentation
Summary of the Circuit
This circuit is designed around an Arduino UNO microcontroller and includes three red two-pin LEDs, each with a corresponding 220-ohm resistor to limit the current through the LEDs. The LEDs are connected to digital pins D2, D3, and D4 of the Arduino UNO, allowing for individual control of each LED. The ground pins of the LEDs are connected to the ground (GND) of the Arduino through their respective resistors, completing the circuit for each LED.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins Used: GND, D2, D3, D4.
LED: Two Pin (red)
- Description: A standard red light-emitting diode.
- Pins: cathode, anode.
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Value: 220 Ohms.
Wiring Details
Arduino UNO
- GND: Connected to the pin1 of all three resistors.
- D2: Connected to the anode of one LED.
- D3: Connected to the anode of another LED.
- D4: Connected to the anode of the third LED.
LED: Two Pin (red)
- Anode: Connected to a digital pin (D2, D3, or D4) on the Arduino UNO.
- Cathode: Connected to pin2 of its corresponding resistor.
Resistor (220 Ohms)
- pin1: Connected to the GND of the Arduino UNO.
- pin2: Connected to the cathode of its corresponding LED.
Documented Code
Arduino UNO Microcontroller Code (sketch.ino)
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Note: The provided code is a template and does not include specific instructions for controlling the LEDs. To control the LEDs, the digital pins D2, D3, and D4 should be set as outputs in the setup() function, and then turned on or off using digitalWrite() in the loop() function.
Additional Documentation (documentation.txt)
No additional documentation code was provided.
