IOT Practical File
IOT Practical File
The new major release of the Arduino IDE is faster and even more powerful! In
addition to a more modern editor and a more responsive interface it features
autocompletion, code navigation, and even a live debugger.
FEATURES OF ARDUINO
Microcontroller Board:
The heart of the Arduino platform is its microcontroller board. The most
commonly used microcontroller in Arduino boards is the Atmel AVR series,
though some newer boards use ARM-based microcontrollers.
Arduino Language:
The programming language used with Arduino is a simplified version of
C/C++ with some specific libraries and functions provided by the Arduino
software.
DOWNLOADING OF ARDUINO
Go to google chrome or any other web browser like Microsoft Edge
Search Arduino in search bar it will take you to the mentioned link
https://www.arduino.cc/en/software
After scrolling down, you see the image shown below
Click on “Run” command, a setup page with terms and conditions will
appear shown in image below
Click on “I Agree” option, a message box will appear again
In this message box you will select Only me option
After this a message box displays you the location path where you want
to install the Arduino software, here you can select the path by yourself
where you want to install it.
After clicking on “Finish” option the Arduino screen will appear as the
image displaying the result below
CODE 2
Write the steps to add libraries in Arduino and setup of Arduino IDE for
programming.
CODE
STEPS FOR ADDING LIBRARY TO ARDIUNO UNO
Open the Arduino application
Click on “Sketch” option from the top
After selecting on “Select Board” option from the top the options will
appear as select other board and ports
After choosing “Select other boards and ports” a new window with search
bar will appear
Choose “Arduino UNO” and click on OK button you see the board is
selected
CODE 3
Write code and show implementation of Arduino Uno for LED blink.
CONNECTION OF SENSOR WITH ARDIUNO UNO AND BREAD
BOARD
STEPS FOR ARDIUNO UNO BOARD, HEADER PINS, BREAD BOARD
AND SENSOR
1. Gather the equipment’s required for performing the task like Ardiuno
Uno Board, Bread Board, Blub and 2 header pins.
2. Connect Ardiuno Uno Board to system using USB cable.
3. Connect the header pins with Ardiuno Uno Board and Bread Board
4. 7 and 8 are the recommended input slots of Ardiuno Uno Board you can
use as preference of task
5. Connecting 1st header pin that is positive side to ground of Ardiuno Uno
Board displayed as GNR on Board.
6. Connecting 2nd header pin that is negative side to 7 for input.
7. Connect Bulb with Bread Board
8. Connect other side of 1st header pin that is negative side with Bread
Board
9. Connect other side of 2nd header pin that is positive side with to Bread
Board
10. Define input button as selected input slot as here 7 is selected so input
button is taken 7 in Ardiuno Uno software before running the code
CIRCUIT DIAGRAM FOR BLINK LED
ARDUINO UNO
0
1
2
3
4
5
6
7
1 2
8
GND
2
3V3 5V Vin
Power D13
RST D12
AREF D11
IO REF D10
N/C D9
D8
D7
D6
D5
A0 D4
A1 D3
A2 D2
Vout
A3 D1
Temp Sensor A4 D0
+vcc A5 SCL
SDA
GNR
GNR
After all the connection and code compilation serial monitor display the output
shown below
OUTPUT
CODE 5
Write a program to shows how to fade an LED on pin 9 using the analog
Write( )function.
CONNECTION OF SENSOR WITH ARDIUNO UNO AND BREAD
BOARD
STEPS FOR ARDIUNO UNO BOARD, HEADER PINS, BREAD BOARD
AND SENSOR
1. Gather the equipment’s required for performing the task like Ardiuno
Uno Board, Bread Board, Blub and 2 header pins.
2. Connect Ardiuno Uno Board to system using USB cable.
3. Connect the header pins with Ardiuno Uno Board and Bread Board
4. Select 9 analog board point as mentioned in task
5. Connecting 1st header pin that is positive side to ground of Ardiuno Uno
Board displayed as GNR on Board.
6. Connecting 2nd header pin that is negative side to 9 for input.
7. Connect Bulb with Bread Board
8. Connect other side of 1st header pin that is negative side with Bread
Board
9. Connect other side of 2nd header pin that is positive side with to Bread
Board
10. Define input button as selected input slot as here 7 is selected so input
button is taken 9 in Ardiuno Uno software before running the code
CIRCUIT DIAGRAM FOR BLINK LED
ARDUINO UNO
0
1
2
3
4
5
6
7
1 2
8
9
1
GND 2
3V3 5V Vin
Power D13
RST D12
AREF D11
IO REF D10
N/C D9
D8
D7
D6
D5
A0 D4
A1 D3
A2 D2
A3 D1
A4 D0 Temp Sensor
A5 SCL
SDA
VCC Trig Echo GNR
GNR
In search option of Library Manager enter Blynk and install the Library.
As you install blynk library
Go to file open examples and you see the blynk examples as shown
below
Steps for Creating Account on IFTTT
Go to the official website of IFTTT https://ifttt.com/
Click on first link it will proceed you to login and signup page of site
Here you can choose any of option continue, sign up or login if
account already exists.
Now if you select signup option it will appear as shown below
3V3 5V Vin
Power D13 Servo Motor Sensor
RST D12
AREF D11
IO REF D10
N/C D9
D8
D7
D6
D5
A0 D4
A1 D3
A2 D2
A3 D1
A4 D0 Temp Sensor
A5 SCL
SDA
VCC Trig Echo GNR
GNR
The Servo Motor Sensor runs the device connected to Servo Motor
Sensor