03 / Templates · beginner
LED BLINK (NANO)
Open in PlaygroundThe 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
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);
}- Arduino Nano01
- LED (red)02
- Resistor 220Ω03
| Component Pin | Arduino Pin |
|---|---|
| Resistor Pin 1 | Pin 13 |
| LED Anode (+) | Resistor Pin 2 |
| LED Cathode (−) | GND |