Understanding an Arduino Board with an LED

Nickson Joram
2 min readJul 5, 2019

--

Is lighting up an LED trouble? Can anybody say so?

Possibly a person who didn’t use toys can say “hey! I’m here”.

Yeah?

Lighting an LED is the very first thing almost all kids are doing when they start to deal with broken toys.

Why should I speak about lighting up an LED in Arduino?

Why we are using an Arduino? it empowers the user to build independent and eventually adaptable processes.

So how comes the LED in Arduino? Well, it is the very basic step that we are commonly using to introduce how we can generate things using the board.

Simply, if you can make an LED glow, you can make a motor that perform various tasks with accordance with the need of the Arduino programmer, you can make various circuits and so on and so forth.

How to make an LED glow using Arduino?

For that you have to generate power at the Digital I/O pins. There is a pin (Pin Number 13) having a small LED very nearby that pin. You can test the things using that inbuilt LED.

But how?

Check these lines of codes.

void setup()

{

pinMode(13,OUTPUT); //Configures the specified pin to behave either as an input or an output, here it configures pin number 13 as output.

}

void loop()

{

digitalWrite(13,HIGH); //If the pin has been configured as an OUTPUT with pinMode(), its voltage will be set to the corresponding value: 5V (or 3.3V on 3.3V boards) for HIGH, 0V (ground) for LOW.

}

Now try by yourself to make changes in the pin numbers and establish the colorful small circuits. 😉

--

--

Nickson Joram
Nickson Joram

Written by Nickson Joram

MSc | UK | Ex - Virtusan | Learner

No responses yet