Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a red LED, and a 200 Ohm resistor. The Arduino UNO is programmed to blink the LED on and off with a 1-second interval.
Component List
LED: Two Pin (red)
- Description: A standard red LED with two pins.
- Pins:
- Cathode
- Anode
Arduino UNO
- Description: A popular 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
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins:
- Pin1
- Pin2
- Properties:
- Resistance: 200 Ohms
Wiring Details
LED: Two Pin (red)
- Cathode: Connected to GND of Arduino UNO
- Anode: Connected to Pin1 of Resistor
Arduino UNO
- D13: Connected to Pin2 of Resistor
- GND: Connected to Cathode of LED
Resistor
- Pin1: Connected to Anode of LED
- Pin2: Connected to D13 of Arduino UNO
Code Documentation
Arduino UNO Code
// C++ code
//
void setup()
{
pinMode(13, OUTPUT);
}
void loop()
{
digitalWrite(13, HIGH);
delay(1000); // Wait for 1000 millisecond(s)
digitalWrite(13, LOW);
delay(1000); // Wait for 1000 millisecond(s)
}
This code sets up pin 13 of the Arduino UNO as an output. In the main loop, it turns the LED on for 1 second and then off for 1 second, creating a blinking effect.
