Circuit Documentation
Summary
This circuit consists of an Arduino UNO microcontroller, a red LED, and a 200 Ohm resistor. The LED is connected to the Arduino UNO and is controlled by a simple Arduino sketch that makes the LED blink on and off with a delay.
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
LED: Two Pin (red)
- Description: A red light-emitting diode.
- Pins: cathode, anode
Resistor
- Description: A resistor with a resistance of 200 Ohms.
- Pins: pin1, pin2
- Properties:
- Resistance: 200 Ohms
Wiring Details
Arduino UNO
- GND: Connected to pin2 of the Resistor.
- D11: Connected to the cathode of the LED.
LED: Two Pin (red)
- cathode: Connected to pin D11 of the Arduino UNO.
- anode: Connected to pin1 of the Resistor.
Resistor
- pin1: Connected to the anode of the LED.
- pin2: Connected to GND of the Arduino UNO.
Code
/*
* This Arduino Sketch controls an LED connected to pin D11.
* The LED will blink on and off with a delay of 1 second.
*/
void setup() {
// Initialize digital pin D11 as an output.
pinMode(11, OUTPUT);
}
void loop() {
// Turn the LED on (HIGH is the voltage level)
digitalWrite(11, HIGH);
// Wait for a second
delay(3000);
// Turn the LED off by making the voltage LOW
digitalWrite(11, LOW);
// Wait for a second
delay(500);
}
This code initializes pin D11 as an output and then enters a loop where it turns the LED on and off with a delay of 3 seconds and 0.5 seconds, respectively.
