top of page

Lesson-03 : Introduction to LED Interfacing with Arduino Uno

Pankaj Maurya

In last lesson we learned the importance and some features of Arduino Uno. Now we will discuss how we can use this Arduino Uno for different applications. To use the Arduino Uno as per the user commands, it need to be programed using an Arduino IDE software. You can download this software here. This is the link for Arduino official website.

You just need to click on downloads then scroll down you will find Window installer option(it's size is around 85MB). After this click on the installer and Accept the license agreement and make the options as default. After this installation is done you will be able to see the Arduino icon on your desktop.


Now we are ready to start with the coding part.

We will start with LED interfacing with Arduino Uno. You may all used the LEDs or may seen them in your day today life.


LED interfacing with Arduino Uno
LED interfacing with Arduino Uno

Coding Area

Steps: -

  1. Open the Arduino IDE and click on File and the click on New to create a new empty file

  2. Click on files and go examples

  3. Go to basics and then

  4. Go to Blink

  5. Upload this code your board by selecting the proper board and port

  6. Define the Pin Mode in the void Setup

  7. Define the logic in the void Loop

Functions used in this example:

  1. Serial.begin(); to start the serial monitor

  2. Serial.println() /Serial.print() to print the values on the serial monitor

  3. delay(microseconds) to put a time delay between two instructions. For example delay(1000) i.e. 1 sec delay

Check out our Latest Training & Internship, Courses, and NI Jobs Alert.


Check out our DIY Kits & Sensors, Electronics Projects & Assistance Plan.


4 views0 comments

Comments

Rated 0 out of 5 stars.
No ratings yet

Add a rating
bottom of page