Cirkit Designer LogoCirkit DesignerYour all-in-one circuit design IDE Launch Cirkit Designer App

Arduino UNO LED Blinker with Resistor

View and Edit Project In Cirkit DesignerImage of Arduino UNO LED Blinker with Resistor

Circuit Documentation

Summary

This circuit consists of an Arduino UNO microcontroller, a red LED, and a resistor. The LED is connected to the Arduino UNO through a resistor to limit the current. The Arduino UNO is programmed to blink the LED on and off at one-second intervals.

Component List

Arduino UNO

LED: Two Pin (red)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

Code Documentation

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:

}

documentation.txt

#define LED_PIN 2

void setup() {
  pinMode(LED_PIN, OUTPUT); // Set digital pin 13 (D13) as an output
}

void loop() {
  digitalWrite(LED_PIN, HIGH); // Turn the LED on (HIGH is the voltage level)
  delay(1000);            // Wait for a second (1000 milliseconds)
  digitalWrite(LED_PIN, LOW);  // Turn the LED off by making the voltage LOW
  delay(1000);            // Wait for a second
}

This code sets up the Arduino UNO to blink the LED connected to pin D2. The LED turns on for one second and then turns off for one second, repeatedly.