Trending Technology Machine Learning, Artificial Intelligent, Block Chain, IoT, DevOps, Data Science

Recent Post

Codecademy Code Foundations

Search This Blog

Introduction of Arduino in IoT

Features of Arduino
  • Open source based electronic programmable board (micro controller) and software (IDE)
  • Accepts analog and digital signal as input and gives desired output
  • No extra hardware required to load a program into the controller board

Types of Arduino Board
  • Arduino boards based on ATMEGA328 microcontroller
  • Arduino boards based on ATMEGA32u4 microcontroller
  • Arduino boards based on ATMEGA2560 microcontroller
  • Arduino boards based on AT91SAM3X8E microcontroller
Arduino UNO





Board Details


  • Power supply : USB or power barrel jack
  • Voltage Regulator
  • LED Power Indicator
  • Tx-Rx LED Indicator
  • Output power, Ground
  • Analog Input Pins
  • Digital I/O Pins


Arduino IDE
  • Arduino IDE is an open source software that is used to program the Arduino controller board
  • Based on variations of the C and C++ programming language
  • It can be downloaded from Arduino's official website and installed into PC
Set Up
  • Power the board by connecting it to a PC via USB cable
  • Launch the Arduino IDE
  • Set the board type and the port for the board
  • TOOLS -> BOARD -> select your board
  • TOOLS -> PORT -> select your port



Arduino IDE Overview

Program coded in Arduino IDE is called a SKETCH





  • Verify : Checks the code for compilation errors
  • Upload : Uploads the final code to the controller board
  • New : Creates a new blank sketch with basic structure
  • Open : Opens an existing sketch
  • Save : Saves the current sketch

Sketch Structure
  • A sketch can be divided into two parts :

       - Setup ( )
       - Loop ( )
  • The function setup( ) is the point where the code starts , just like the main ( ) function in C and C++
  • I/O Variables, pin modes are initialized in the Setup( ) function
  • Loop( ) function, as the name suggests, iterates the specified task in the program

Supported Datatype


  • Arduino supports the following data types -
       void           Long
       Int              Char
       Boolean     Unsigned char
       Byte           Unsigned int
       Word          Unsigned long
       Float          Double
       Array         String-char array
       String-object     Short

Arduino Function Libraries


Input/Output Functions :
  • The Arduino pins can be configured to act as input or output pins using the pinMode( ) function
                    Void setup ( )
                         { 
                          pinMode (pin , mode);
large;">                           }
Pin-pin number on the Arduino board
Mode - INPUT/OUTPUT

For Example, See Video ------




No comments:

Post a Comment

Popular Articles