Circuit Documentation
Summary of the Circuit
This circuit consists of an Arduino UNO microcontroller, a red two-pin LED, and a resistor. The purpose of the circuit is to control the LED using one of the digital pins of the Arduino UNO. The LED is connected to the Arduino with a series resistor to limit the current flowing through the LED.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins Used:
D8: Digital pin used to control the LED.GND: Ground pin used to complete the circuit for the LED.
LED: Two Pin (red)
- Description: A basic red light-emitting diode.
- Pins:
anode: Positive pin of the LED.cathode: Negative pin of the LED.
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Resistance: 200 Ohms
- Pins:
pin1: One terminal of the resistor.pin2: The other terminal of the resistor.
Wiring Details
Arduino UNO
- Digital Pin 8 (D8) is connected to one terminal of the resistor (
pin2). - Ground (GND) is connected to the cathode of the LED.
LED: Two Pin (red)
- Anode is connected to one terminal of the resistor (
pin1). - Cathode is connected to the Ground (GND) of the Arduino UNO.
Resistor
- Pin1 is connected to the anode of the LED.
- Pin2 is connected to Digital Pin 8 (D8) of the Arduino UNO.
Documented Code
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:
}
Additional Notes
- The provided code for the Arduino UNO is a template and does not contain any functionality. To control the LED, the digital pin D8 should be set as an output in the
setup()function and then toggled or set toHIGHorLOWin theloop()function to turn the LED on or off. - The
documentation.txtfile is empty and does not contain any additional information about the circuit or code.
