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

Arduino UNO Controlled Blinking LED Circuit

View and Edit Project In Cirkit DesignerImage of Arduino UNO Controlled Blinking LED Circuit

Circuit Documentation

Summary

This document provides a detailed overview of a simple circuit that consists of an Arduino UNO microcontroller, a red two-pin LED, and a 9V battery. The circuit is designed to power the Arduino UNO with the 9V battery and to control the LED using one of the digital pins on the Arduino. The LED is set to blink with a period of 2 seconds, alternating between on and off states.

Component List

Arduino UNO

LED: Two Pin (red)

9V Battery

Wiring Details

Arduino UNO

LED: Two Pin (red)

9V Battery

Documented Code

The following code is written for the Arduino UNO microcontroller to control the blinking of the LED:

// The setup function runs once when you press reset or power the board
void setup() {
  // Initialize digital pin 13 as an output.
  pinMode(13, OUTPUT);
}

// The loop function runs over and over again forever
void loop() {
  digitalWrite(13, HIGH);   // Turn the LED on (HIGH is the voltage level)
  delay(1000);              // Wait for a second (1000 ms)
  digitalWrite(13, LOW);    // Turn the LED off by making the voltage LOW
  delay(1000);              // Wait for a second
}