+21622886281
Arduino LED

Blink two LEDs with Arduino

Purpose of this tutorial:

In this tutorial we will flash two LEDs (red and green) with the Arduino board every two seconds.

Necessary components

  • Arduino UNO
  • 1 LED board red
  • 1 LED green
  • 2 resistors 220Ω
  • connecting wires

Mounting

  • Connect the digital pin 0 of the Arduino board to the resistance leg.
  • Then, connect the second anode resistance leg (terminal +) of the red LED.
  • Connect the red LED cathode (terminal -) to the Arduino GND.
  • Connect the digital pin 1 of the Arduino board to the second resistor leg.
  • Then, connect the second anode resistance leg (terminal +) of the green LED.
  • Finally, the green LED cathode (terminal -) is connected to the Arduino GND.

Program

Here is the program that allows to flash 2 LEDs.




0 commentaire


Leave a comment

Votre adresse e-mail ne sera pas publiée. Les champs obligatoires sont indiqués avec *

Scroll to Top