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

Arduino UNO LED Blinker with Serial Output

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

Circuit Documentation

Summary

This document describes a simple circuit involving an Arduino UNO, a red LED, and a resistor. The LED is connected to the Arduino UNO and is programmed to blink with a delay of 1000 milliseconds (1 second) between turning on and off.

Component List

  1. 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
  2. LED: Two Pin (red)

    • Description: A red light-emitting diode with two pins: cathode and anode.
    • Pins: cathode, anode
  3. Resistor

    • Description: A resistor with a resistance of 220 Ohms.
    • Pins: pin1, pin2
    • Properties:
      • Resistance: 220 Ohms

Wiring Details

Arduino UNO

LED: Two Pin (red)

Resistor

Code

/*
 * This Arduino sketch is designed to control a simple circuit where an LED is
 * connected to pin D8 of an Arduino UNO. The LED will blink with a delay of
 * 1000 milliseconds (1 second) between turning on and off.
 */

void setup() {
  // Initialize digital pin D8 as an output.
  pinMode(8, OUTPUT);
  Serial.begin(9600);
}

void loop() {
  // Turn the LED on (HIGH is the voltage level)
  digitalWrite(8, HIGH);
  // Wait for a second
  delay(1000);
  Serial.println("LED is in ON state");
  // Turn the LED off by making the voltage LOW
  digitalWrite(8, LOW);
  // Wait for a second
  delay(1000);
  Serial.println("LED is in OFF state");
}

This code initializes pin D8 as an output and toggles the LED state with a 1-second delay between each toggle. The state of the LED is also printed to the serial monitor.