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

Arduino UNO LED Blinker with Adjustable Delay

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

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

LED: Two Pin (red)

Resistor

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

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.