Interfacing LED with Arduino
Let’s learn the basics of Arduino……….
LED Interfacing is a good start for Arduino beginners. Here, lets learn a simple LED blinking circuit/ code with Arduino in our development board MEP_ROBO.
A LED is a two-terminal semiconductor light source. This simple P-N junction diode emits light when it gets activated and usually requires a small voltage for its operation. When voltage is applied, the electrons will recombine with the holes and will release energy in the form of light.
Figure 1: LED
Since, LEDs require only a small voltage, interfacing it with MEP_ROBO development board will be easy (as the board requires only 5V power supply). MEP_ROBO is a better choice among the other controller boards as it does not require any external interfacing aids.
- MEP_ROBO Board with ATMEGA 328 IC.
- USB Cable.
- Computer with Arduino software.
Figure 2: Components Required
Step1: Download Arduino UNO IDE software and Install it to the computer.
Step2: Now open Arduino. File- Examples-Basics-Blink.
Step3: If you are using Arduino UNO board, then the 13th pin of the board has an inbuilt LED. Now if you upload the program to the board, the LED will be turning ON/OFF with 1sec delay.
Figure 3: Connection Diagram
Step4: If you are using MEP_ROBO development board, pin 2, 3, 4 has an inbuilt LED. Give power supply to the board. Upload the program. The LED will be blinking.
In the program, we are using pin2 for connecting LED. Place the jumper to the LED position.