Circuit Documentation
Summary of the Circuit
This circuit consists of an Arduino UNO microcontroller, a red two-pin LED, and a resistor. The Arduino UNO is programmed to control the LED, turning it on and off at one-second intervals. The resistor is used to limit the current flowing through the LED to prevent damage.
Component List
Arduino UNO
- Description: A microcontroller board based on the ATmega328P.
- Pins Used: GND, D13.
- Purpose: Acts as the control unit for the LED, providing power and signal.
LED: Two Pin (red)
- Description: A basic red light-emitting diode.
- Pins Used: Anode, Cathode.
- Purpose: Emits light when powered.
Resistor
- Description: A passive two-terminal electrical component that implements electrical resistance as a circuit element.
- Properties: 200 Ohms resistance.
- Purpose: Limits the current flowing through the LED to prevent it from burning out.
Wiring Details
Arduino UNO
- GND: Connected to one pin of the resistor.
- D13: Connected to the anode of the LED.
LED: Two Pin (red)
- Anode: Connected to digital pin D13 on the Arduino UNO.
- Cathode: Connected to one pin of the resistor.
Resistor
- Pin1: Connected to the GND pin on the Arduino UNO.
- Pin2: Connected to the cathode of the LED.
Documented Code
Arduino UNO Code (sketch.ino)
void setup() {
pinMode(13, OUTPUT); // Set digital pin 13 (D13) as an output
}
void loop() {
digitalWrite(13, HIGH); // Turn the LED on (HIGH is the voltage level)
delay(1000); // Wait for a second (1000 milliseconds)
digitalWrite(13, LOW); // Turn the LED off by making the voltage LOW
delay(1000); // Wait for a second
}
Description: This code configures pin 13 of the Arduino UNO as an output to control the LED. In the loop function, it turns the LED on and off every second, creating a blinking effect.
