top of page

Lesson-03 : Introduction to LED Interfacing with Arduino Uno

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

Register for IoT course provided by Nation innovation.


3 views0 comments

Comentarios

Obtuvo 0 de 5 estrellas.
Aún no hay calificaciones

Agrega una calificación