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 120 Ohm resistor. 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

void setup() {
  // Initialize the digital pin as an output.
  pinMode(13, OUTPUT);
}

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

This code initializes pin 13 of the Arduino UNO as an output in the setup() function. In the loop() function, it turns the LED on by setting pin 13 to HIGH, waits for one second, then turns the LED off by setting pin 13 to LOW, and waits for another second. This cycle repeats indefinitely, causing the LED to blink on and off at one-second intervals.