CNAP
03 / Templates · beginner

LED BLINK (NANO)

Open in Playground

The classic LED Blink, rebuilt on an Arduino Nano — a board-swap variant showing the Nano works exactly like the Uno since it's the same ATmega328p chip.

beginnerLEDdigital outputArduino Nanoboard swap
Circuit
Code
sketch.inoArduino C++
17 lines
// LED Blink on Arduino Nano — same ATmega328p chip as the Uno,
// just a smaller board. Wire a red LED + 220Ω resistor to pin 13 and GND.

const int LED_PIN = 13;

void setup() {
  pinMode(LED_PIN, OUTPUT);
  Serial.begin(9600);
  Serial.println("Blink started on Nano!");
}

void loop() {
  digitalWrite(LED_PIN, HIGH);
  delay(1000);
  digitalWrite(LED_PIN, LOW);
  delay(1000);
}
Components
  • Arduino Nano
    01
  • LED (red)
    02
  • Resistor 220Ω
    03
Wiring
Component PinArduino Pin
Resistor Pin 1Pin 13
LED Anode (+)Resistor Pin 2
LED Cathode (−)GND