0
Item
0
Item

HOW TO BLINK AN LED IN ARDUINO UNO IN LINUX?

YOUTUBE:

 

 

COMPONENTS REQUIRED:

 

S.No. Item Detail Unit Image Price Qty/Cart
1 Red LED 5mm Diffused 🛈 Pcs Red LED 5mm Diffused 1.50

2 220 Ohm 1/4 Watt 🛈 Pcs 220 Ohm 1/4 Watt 1.50

3 Jumper Wire Pink Male To Male 20cm 🛈 Pcs Jumper Wire Pink Male To Male 20cm 5.00

4 Jumper Wire Black Male To Male 20cm 🛈 Pcs Jumper Wire Black Male To Male 20cm 5.00

5 USB cable for Arduino UNO 1 Feet 🛈 Pcs USB cable for Arduino UNO 1 Feet 130.00

6 Breadboard (Full Size) 840 Tie Points 🛈 Pcs Breadboard (Full Size) 840 Tie Points 90.00

7 Arduino UNO R3 Board with DIP ATmega328P 🛈 Pcs Arduino UNO R3 Board with DIP ATmega328P 550.00

Total 783.00 7


PREREQUISITES:

  • Computer (or) Laptop
  • Arduino IDE software
  • List of components

 


LED:

anode and cathode of the  LED

STEP 1:
Connect the GND pin (14th pin) in Arduino to the common ground on the breadboard.

Connect GND pin (14th pin) in Arduino to the common ground on the breadboard.

STEP 2:
Connect Anode and Cathode of the LED as shown in the figure given below.

Connection of  Anode and Cathode of the  LED  on the breadboard

STEP 3:
Connect Resistor’s one end to the anode of the LED as shown in the figure given below

Connection of  Resistor to the anode of the LED on the breadboard

STEP 4:
Another end of the resistor is connected to the pin1 in Arduino UNO board via wire as shown in the figure given below

Resistor is connected to pin1 via wire  in Arduino UNO

STEP 5:
There are two procedures to open the code in Arduino IDE;

Procedure 1:
Copy the given code and paste in your new sketch in Arduino IDE.

Procedure 2:
Download the given code and open it in Arduino IDE.

CODING [c++]:

 


STEP 6:
Create new sketch by clicking File>>New in the menu bar in Arduino IDE

Create new sketch in Arduino IDE

STEP 7:
After opening the download file or paste the copied file it seems to be like the below figure in Arduino IDE code Editor.after opening the file

LED blink CPlusPlus code appearance in Arduino IDE

STEP 8:
Connect your Arduino UNO to computer or laptop via USB cable. The corresponding Port will be displayed only after connecting of Arduino UNO to Laptop or Computer.

Arduino UNO is connected to the laptop via USB cable

STEP 9:
The board selection in LINUX in Arduino IDE is shown below

The board selection in LINUX inArduino IDE

STEP 10:
The Port selection in LINUX in from Arduino IDE after connection of Arduino UNO to Laptop or Computer is shown below

The Port selection in LINUX in Arduino IDE

STEP 11:
Compile the code by clicking the compile button in Arduino IDE as shown in the diagram.
Code compile in Arduino IDE
The message window will display as shown below after compiling the code without error successfully.

The successful compilation message window in Arduino IDE

STEP 12:
Upload the code by clicking the upload button in Arduino IDE. Now the compiled code is uploaded via a selected port from Arduino IDE to the Arduino UNO board.
upload button in Arduino IDE

RESULT:
Finally, the LED is turned ON and OFF(blinking).

 



AUDIENCE:
You don’t need any programming skills to do this project.But you should have the basic knowledge in C,C++ or any other computer language to do any further changes in this project.Arduino IDE supports in all platforms (Operating system)

ISSUES:
If it is not working,read the article once again and try it.

WARNING:
Don't connect directly to the AC supply but it can be used with 5v -12v adapter(1Amp- 2Amp)
Arduino UNO can be used with also 9v battery with appropriate connector wire Earthing connection is necessary ,otherwise you could get an electric shock from electric leakage or electricity.
It is advised to do make a project in front of your parents, people who have experience in electrical knowledge.