How to create a blinking LED’s using Arduino Uno with Step- by-step procedure

in #engineering7 years ago

26803914_1560616337340493_295438424_n.jpg

Good day Steemians! Here’s my second tutorial post about engineering . In this tutorial I will show you how to make multiple LED’s (Light –emitting Diode) blink using Arduino Uno. Arduino Uno is a microcontroller based on ATmega328.

LED’s are small, powerful lights that are used in many different applications. We will work on blinking an LED’s, the Hello World of Microcontrollers. Its is simple as turning a light on and off. It might not seem like much, but establishing this important baseline will give you a solid foundation as we work toward more complex experiments. I hope it will be useful to you.

In this tutorial I will give a step by step procedure on doing this project and before we start we will be needed this following materials.

Materials:
• Arduino Uno Board
• 8x LED’s
• 8x Resistors (330 ohms)
• Connecting wires
• Breadboard
• Computer with Arduino Software
• USB Cable

Arduino Uno Board

26803914_1560616337340493_295438424_n.jpg

LED's

26803553_1560603500675110_1315494924_n.jpg

Resistors

26803970_1560603544008439_1638385196_n.jpg

Connecting wire

26696599_1560603484008445_16287823_n.jpg

Breadboard
26855672_1560603474008446_1668566275_n.jpg

Now, lets get started!

Step-by- step Procedure

  1. First, Attached the LED’s on the breadboard. LED’s are polarized, meaning they have a certain way that they need to be connected

26754835_1560603687341758_51960462_n.jpg

     Polarity of LED

26754858_1560621500673310_1540856699_n.jpg

Note: You can also cut the legs shorter to make them easier to work with on the breadboard.

  1. Connect the positive lead (long leg) of the LED to the resistor

26803604_1560603917341735_1375572092_n.jpg

and run a wire from the ground lead to GND pin on the Arduino. Be warned that it will not do anything until you have uploaded the code to the board which is done at a later stage.

26857456_1560606430674817_487166153_n.jpg

  1. Open up your Arduino software on your computer. Coding in the Arduino language will control your circuit.

26755526_1560607404008053_989656850_n (1).jpg

Copy the following code into the Arduino IDE below.

26755348_1560606970674763_1855025759_n.jpg

26755189_1560607097341417_1002366893_n.jpg

  1. After we encode our program we can now verify the program. See the arrow

26793965_1560607167341410_1741553464_n.jpg

  1. We can now upload the program to Arduino board by using USB cable and connect it the computer and by uploading the program click this arrow button.

26754916_1560607700674690_1107876790_n.jpg

  1. Once the code is uploaded, if you have done everything right, the LED’s should flash. You should see your LED Blink on and off. If it isn’t, make sure you have assembled the circuit correctly and verified and uploaded the code to your board. It will do that for as long as the device is plugged in.

26856022_1560606854008108_1756917478_n.jpg

Note: if the Arduino is unplugged, then plugged in again, it will still work.

Thank you for reading! Hope it will be useful to you :).

-@jsoul

Coin Marketplace

STEEM 0.26
TRX 0.20
JST 0.038
BTC 95804.23
ETH 3607.03
USDT 1.00
SBD 3.79