
Blinking LED — Your First Arduino Project
The classic first electronics project! Build a blinking LED circuit using an Arduino, a breadboard, a resistor, and a single LED. Perfect for absolute beginners — no soldering required.
Istruzioni
Gather Your Components
Gather Your Components
Materiali per questo passaggio:
SparkFun Inventor's Kit - V3.21 kit
Arduino Uno R31 piece
5mm LED (any color)1 piece
220 ohm Resistor (1/4W)1 piece
Breadboard1 piece
Jumper Wires (Male-to-Male)2 piecess
USB-B Cable1 pieceStrumenti necessari:
Circuit Schematic
Circuit Schematic
Materiali per questo passaggio:
Arduino Uno R31 piece
5mm LED (any color)1 piece
220 ohm Resistor (1/4W)1 pieceWire It Up
Wire It Up
- Insert the LED into the breadboard — long leg (anode +) in one row, short leg (cathode −) in the next.
- Insert one leg of the 220Ω resistor into the same row as the LED cathode. Other leg in a separate row.
- Jumper wire from LED anode row → Arduino Pin 13.
- Jumper wire from resistor free row → Arduino GND.
Materiali per questo passaggio:
5mm LED (any color)1 piece
220 ohm Resistor (1/4W)1 piece
Breadboard1 piece
Jumper Wires (Male-to-Male)2 piecessUpload the Blink Code
Upload the Blink Code
// Blinking LED — Your First Arduino Project
// Turns an LED on for one second, then off for one second, repeatedly.
const int LED_PIN = 13; // Pin connected to the LED
void setup() {
pinMode(LED_PIN, OUTPUT); // Set pin 13 as an output
}
void loop() {
digitalWrite(LED_PIN, HIGH); // Turn LED ON
delay(1000); // Wait 1 second
digitalWrite(LED_PIN, LOW); // Turn LED OFF
delay(1000); // Wait 1 second
}
// EXPERIMENT IDEAS:
// - Change delay(1000) to delay(100) for fast blinking
// - Change delay(1000) to delay(2000) for slow blinking
// - Try delay(50) for a strobe effect
// - Use different values for ON and OFF times:
// delay(200) ON, delay(800) OFF = short flash
// delay(800) ON, delay(200) OFF = long flash
Materiali per questo passaggio:
Arduino Uno R31 piece
USB-B Cable1 pieceStrumenti necessari:
PCB Layout (Reference)
PCB Layout (Reference)
Test and Experiment
Test and Experiment
Troubleshooting:
- LED does not light up? Flip the LED — long leg toward Pin 13.
- LED stays on? Check code uploaded successfully.
- Nothing happens? Verify wiring matches the schematic in Step 2.
Next experiments:
- Change
delay()values to control blink speed - Add a second LED on Pin 12
- Replace with an RGB LED (see SIK Circuit 3)
Materiali
7- €90.00
- 1 pieceSegnaposto
- Segnaposto
- Segnaposto
- 1 pieceSegnaposto
- Segnaposto
- 1 pieceSegnaposto
Strumenti richiesti
2- Computer with Arduino IDE
- Segnaposto
CC0 Pubblico dominio
Questo progetto è rilasciato sotto CC0. Sei libero di copiare, modificare, distribuire e utilizzare quest'opera per qualsiasi scopo, senza chiedere permesso.
Supporta il Maker acquistando prodotti tramite il suo progetto dove guadagna una Commissione Maker stabilita dai venditori, oppure crea una nuova iterazione di questo progetto e includilo come collegamento nel tuo progetto per condividere i ricavi.
