0
Item
0
Item

HOW TO BLINK AN LED IN ARDUINO UNO IN LINUX?

YOUTUBE: This vedio not related this project, it will be updated with in two days. please pation it.


COMPONENTS REQUIRED:

S.No. Item Type Detail Brand Unit Image Price Qty/Cart
1 Red LED RED HP Pcs RED 1.00

2 220Ω (Ohm) 1/4 watt carbon film resistor. 220Ohm 220Ohm resistor 1/4 watt carbon film it is resistor which is used to drop down the voltage for led and some other electronics devices. It used in all electronics circuits. Pcs 220Ohm 0.50

3 Jumper wire male to male pink color Pink Pcs Pink 5.00

4 Jumper wire male to male black color Black-ClrWr Pcs Black-ClrWr 5.00

5 USB cable for Arduino UNO Arduino Pcs Arduino 55.00

6 Breadboard standard type Breadboard 840 points Pcs Breadboard 840 points 80.00

7 Arduino UNO Board Arduino UNO CN Pcs Arduino UNO 475.00

Total 621.50 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.