Arduino led


Arduino led

This Project is Great for someone first Project.  In this project, you will learn how to make a Led Flash on and off.

You will need:

  • An Arduino
  • Led
  • 220 ohms resistance

First,  let us connect The led, the 220 ohms resistance. Used the Diagram below to help you.

Arduino led wiring diagram

Next, Connect the Arduino to your computer and start the Arduino IDE.

Add this code, compile it and send it to the Arduino.

void setup() {
// initialize digital pin LED_BUILTIN as an output.

// boucle pour toujours

void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level)
delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW
delay(1000); // wait for a second

Now try to make the LED send an SOS!

Show Buttons
Hide Buttons