TPL-24Templates/LED Blink (Nano)
LED Blink (Nano)
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.
Open in Playgroundbeginner · LED · digital output · Arduino Nano · board swap
FIG. 1LED Blink (Nano) · circuitTPL-24
02Sketch
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);
}03Components
- 01Arduino Nano
- 02LED (red)
- 03Resistor 220Ω
04Wiring
| Component pin | Arduino pin |
|---|---|
| Resistor Pin 1 | Pin 13 |
| LED Anode (+) | Resistor Pin 2 |
| LED Cathode (−) | GND |
Ready when you are
Have a circuit in mind?
No hardware, no installs — a browser is enough.