SlideShare a Scribd company logo
Practicals
BLINKING OF LED USING
ARDUINO.
REQUIREMENTS:
• 1 Arduino UNO Board, Wire
Interfaces, LEDs
• THEORY:
In this we have perform a practical
of blinking of LED using Arduino
using the following steps-
• Step1: Connect the LED with 13
and ground off arduino.
• Step2: Connect the arduino with
the system.
• Step3: Open arduino software and
Blinking Code.
• Step4: Verify and upload the
program in the arduino and get the
output.
Checking the Voltage Variation of
Arduino UNO in IoT Platform
Ubidots
REQUIREMENTS:
• Arduino UNO Board, Ethernet
Shield, Interfacing Wires.
THEORY:
• In this we check the voltage
variation of arduino on IoT
Platform (ubidots.com)
Open ubidots.com
Login
Create new widget
Copy variable number and paste it in the
program
Copy token number and paste it in the program
Checking the Voltage
Variation of Arduino UNO in
IoT Platform(ThingSpeak)
REQUIREMENTS:
Arduino UNO Board, Ethernet Shield, Interfacing
Wires.
THEORY:
In this we check the voltage variation of
arduino on IoT Platform (thinkspeak.com)
Fig1: open arduino and include library
thinkspeak.
Fig 3: Open thinkspeak.com
Fig 4: Login
Fig 5: Create new channel
Fig 6: Copy Channel ID and API Key
and paste it in the program
Fig 7: Open Public View
Fig 8: Verify and Upload the program
Fig 9: Final Output
Code-
#include <ThingSpeak.h>
/*
WriteVoltage
Reads an analog voltage from pin 0, and writes it to a channel on
ThingSpeak every 20 seconds.
ThingSpeak ( https://www.thingspeak.com ) is a free IoT service for
prototyping
systems that collect, analyze, and react to their environments.
Copyright 2015, The MathWorks, Inc.
Documentation for the ThingSpeak Communication Library for Arduino is in
the extras/documentation folder where the library was installed.
See the accompaning licence file for licensing information.
*/
#ifdef SPARK
#include "ThingSpeak/ThingSpeak.h"
#else
#include "ThingSpeak.h"
#endif
///
*************************************************************************************************
**********
// This example selects the correct library to use based on the board selected under the
Tools menu in the IDE.
// Yun, Wired Ethernet shield, wi-fi shield, esp8266, and Spark are all supported.
// With Uno and Mega, the default is that you're using a wired ethernet shield
(http://www.arduino.cc/en/Main/ArduinoEthernetShield)
// If you're using a wi-fi shield (http://www.arduino.cc/en/Main/ArduinoWiFiShield),
uncomment the line below
//
*************************************************************************************************
**********
//#define USE_WIFI_SHIELD
#ifdef ARDUINO_ARCH_AVR
#ifdef ARDUINO_AVR_YUN
#include "YunClient.h"
YunClient client;
#else
#ifdef USE_WIFI_SHIELD
#include <SPI.h>
// ESP8266 USERS -- YOU MUST COMMENT OUT THE LINE BELOW. There's a
bug in the Arduino IDE that causes it to not respect #ifdef when it comes to #includes
// If you get "multiple definition of `WiFi'" -- comment out the line below.
#include <WiFi.h>
char ssid[] = "<YOURNETWORK>"; // your network SSID (name)
char pass[] = "<YOURPASSWORD>"; // your network password
int status = WL_IDLE_STATUS;
WiFiClient client;
#else
// Use wired ethernet shield
#include <SPI.h>
#include <Ethernet.h>
byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED};
EthernetClient client;
#endif
#endif
// On Arduino: 0 - 1023 maps to 0 - 5 volts
#define VOLTAGE_MAX 5.0
#define VOLTAGE_MAXCOUNTS 1023.0
#endif
#ifdef ARDUINO_ARCH_ESP8266
#include <ESP8266WiFi.h>
char ssid[] = "<YOURNETWORK>"; // your network SSID (name)
char pass[] = "<YOURPASSWORD>"; // your network password
int status = WL_IDLE_STATUS;
WiFiClient client;
// On ESP8266: 0 - 1023 maps to 0 - 1 volts
#define VOLTAGE_MAX 1.0
#define VOLTAGE_MAXCOUNTS 1023.0
#endif
#ifdef SPARK
TCPClient client;
// On Particle: 0 - 4095 maps to 0 - 3.3 volts
#define VOLTAGE_MAX 3.3
#define VOLTAGE_MAXCOUNTS 4095.0
#endif
/*
*****************************************************************************************
**** Visit https://www.thingspeak.com to sign up for a free account and create
**** a channel. The video tutorial http://community.thingspeak.com/tutorials/thingspeak-
channels/
**** has more information. You need to change this to your channel, and your write API
key
**** IF YOU SHARE YOUR CODE WITH OTHERS, MAKE SURE YOU REMOVE YOUR
WRITE API KEY!!
*****************************************************************************************/
unsigned long myChannelNumber = 124278;
const char * myWriteAPIKey = "04377LL7I54LVCNZ";
void setup() {
#if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_ESP8266)
#ifdef ARDUINO_AVR_YUN
Bridge.begin();
#else
#if defined(USE_WIFI_SHIELD) || defined(ARDUINO_ARCH_ESP8266)
WiFi.begin(ssid, pass);
#else
Ethernet.begin(mac);
#endif
#endif
#endif
ThingSpeak.begin(client);
}
void loop() {
// read the input on analog pin 0:
int sensorValue = analogRead(A0);
// Convert the analog reading
// On Arduino: 0 - 1023 maps to 0 - 5 volts
// On ESP8266: 0 - 1023 maps to 0 - 1 volts
// On Particle: 0 - 4095 maps to 0 - 3.3 volts
float voltage = sensorValue * (VOLTAGE_MAX / VOLTAGE_MAXCOUNTS);
// Write to ThingSpeak. There are up to 8 fields in a channel, allowing you to store up to 8
different
// pieces of information in a channel. Here, we write to field 1.
ThingSpeak.writeField(myChannelNumber, 1, voltage, myWriteAPIKey);
delay(20000); // ThingSpeak will only accept updates every 15 seconds.
}
Glowing Of LED Using I/R
Sensor.
REQUIREMENTS:
Arduino UNO Board, Breadboard, LED, I/R Sensor,
Wire Interfaces.
THEORY:
Here we glow the LED using I/R sensor. In this when
our hand come closer towards the I/R sensor the
LED glows.
Step1: Connect the LED with arduino board and
breadboard.
Step2: Make the connection of wire between
arduino and breadboard.
Step3: Connect the LED with one pin of Arduino.
Step4: Connect the I/R sensor with arduino and
breadboard.
Step5: Connect the arduino with system.
Step6: Open the program in the arduino software.
Step7: Verify and upload the program and get the
output by placing your hand near the I/R Sensor.
Code-
int a=12;
int b=5;
void setup() {
// put your setup code here, to run once:
pinMode(a, INPUT);
pinMode(b, OUTPUT);
}
void loop() {
// put your main code here, to run repeatedly:
int readsen=digitalRead(a);
if(readsen==HIGH)
{
digitalWrite(b, HIGH);
}
else
{
digitalWrite(b, !HIGH);
}
delay(1);
}
• Now its your turn do the same
practical with the use of any IOT
Platform.
Tasks to do-
• Make a system that sends mail to you
when the value of the sensor exceeds
the limit.(Hint-Explore Ubidots)
• Make a system that sends message
on your phone when the IR sensor
detects any presence.(Hint-Explore
Ubidots)
Thank You and Keep
Exploring

More Related Content

What's hot

Arduino to Control Bulbs using Web App
Arduino to Control Bulbs using Web AppArduino to Control Bulbs using Web App
Arduino to Control Bulbs using Web App
Sanjay Kumar
 
Domotics: New Arduino components
Domotics: New Arduino componentsDomotics: New Arduino components
Domotics: New Arduino components
Nestor Benavides
 
IoT support for .NET Core
IoT support for .NET CoreIoT support for .NET Core
IoT support for .NET Core
Mirco Vanini
 
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik EnterprisesTektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Indian Market Place
 
Solar tracker
Solar trackerSolar tracker
Solar tracker
Shafiul Alam
 
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik EnterprisesVeritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Indian Market Place
 
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik EnterprisesVeritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Indian Market Place
 
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik EnterprisesTektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Indian Market Place
 
Fluke products Supplier In Pune | Swastik Enterprises
Fluke products Supplier In Pune | Swastik EnterprisesFluke products Supplier In Pune | Swastik Enterprises
Fluke products Supplier In Pune | Swastik Enterprises
Indian Market Place
 
IoT Home project by MADHAV
IoT Home project by MADHAVIoT Home project by MADHAV
IoT Home project by MADHAV
K.V. SAI MADHAV
 
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITEXBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
Supremegamegear
 
Capstonetech1 v002
Capstonetech1 v002Capstonetech1 v002
Capstonetech1 v002
Gimun Eom
 
53211830
5321183053211830
53211830
Bu Bank
 
Astrobot session 4
Astrobot session 4Astrobot session 4
Astrobot session 4
osos_a215
 
GAS sensor report
GAS sensor reportGAS sensor report
GAS sensor report
Saroj kumar
 
Day 11 eigrp
Day 11 eigrpDay 11 eigrp
Day 11 eigrp
CYBERINTELLIGENTS
 
Safe House
Safe HouseSafe House
Safe House
Hassan Raza
 

What's hot (17)

Arduino to Control Bulbs using Web App
Arduino to Control Bulbs using Web AppArduino to Control Bulbs using Web App
Arduino to Control Bulbs using Web App
 
Domotics: New Arduino components
Domotics: New Arduino componentsDomotics: New Arduino components
Domotics: New Arduino components
 
IoT support for .NET Core
IoT support for .NET CoreIoT support for .NET Core
IoT support for .NET Core
 
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik EnterprisesTektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
 
Solar tracker
Solar trackerSolar tracker
Solar tracker
 
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik EnterprisesVeritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
 
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik EnterprisesVeritek Product Gallery | Supplier In Pune | Swastik Enterprises
Veritek Product Gallery | Supplier In Pune | Swastik Enterprises
 
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik EnterprisesTektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
Tektronix | TBS 1102B & 1072B Supplier In Pune | Swastik Enterprises
 
Fluke products Supplier In Pune | Swastik Enterprises
Fluke products Supplier In Pune | Swastik EnterprisesFluke products Supplier In Pune | Swastik Enterprises
Fluke products Supplier In Pune | Swastik Enterprises
 
IoT Home project by MADHAV
IoT Home project by MADHAVIoT Home project by MADHAV
IoT Home project by MADHAV
 
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITEXBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
XBOX 360 WIRELESS GAMING RECEIVER FOR WINDOWS WHITE
 
Capstonetech1 v002
Capstonetech1 v002Capstonetech1 v002
Capstonetech1 v002
 
53211830
5321183053211830
53211830
 
Astrobot session 4
Astrobot session 4Astrobot session 4
Astrobot session 4
 
GAS sensor report
GAS sensor reportGAS sensor report
GAS sensor report
 
Day 11 eigrp
Day 11 eigrpDay 11 eigrp
Day 11 eigrp
 
Safe House
Safe HouseSafe House
Safe House
 

Similar to IoT Platform

Arduino slides
Arduino slidesArduino slides
Arduino slides
sdcharle
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
mkarlin14
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
AditiBhushan3
 
Arduino
ArduinoArduino
Arduino
Geet Patel
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
sdcharle
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266
INFOGAIN PUBLICATION
 
Arduino frequency counter
Arduino frequency counterArduino frequency counter
Arduino frequency counter
nasyith_hananur
 
Arduino projects &amp; tutorials
Arduino projects &amp; tutorialsArduino projects &amp; tutorials
Arduino projects &amp; tutorials
Anshu Pandey
 
Arduino workshop sensors
Arduino workshop sensorsArduino workshop sensors
Arduino workshop sensors
Jhonny Wladimir Peñaloza Cabello
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
RebekahSamuel2
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
Ravikumar Tiwari
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduino
Ashfaqul Haque John
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
avikdhupar
 
Digital home automation with arduino bluetooth
Digital home automation with arduino bluetoothDigital home automation with arduino bluetooth
Digital home automation with arduino bluetooth
Shishupal03012015
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
HebaEng
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptx
yosikit826
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
MayuRana1
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
salih mahmod
 
Smart Home Automation using Wi-Fi
Smart Home Automation using Wi-FiSmart Home Automation using Wi-Fi
Smart Home Automation using Wi-Fi
ijtsrd
 

Similar to IoT Platform (20)

Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
 
Neno Project.docx
Neno Project.docxNeno Project.docx
Neno Project.docx
 
Arduino
ArduinoArduino
Arduino
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266
 
Arduino frequency counter
Arduino frequency counterArduino frequency counter
Arduino frequency counter
 
Arduino projects &amp; tutorials
Arduino projects &amp; tutorialsArduino projects &amp; tutorials
Arduino projects &amp; tutorials
 
Arduino workshop sensors
Arduino workshop sensorsArduino workshop sensors
Arduino workshop sensors
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter Reading
 
Fun with arduino
Fun with arduinoFun with arduino
Fun with arduino
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduino
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduino
 
Digital home automation with arduino bluetooth
Digital home automation with arduino bluetoothDigital home automation with arduino bluetooth
Digital home automation with arduino bluetooth
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptx
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdf
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
 
Smart Home Automation using Wi-Fi
Smart Home Automation using Wi-FiSmart Home Automation using Wi-Fi
Smart Home Automation using Wi-Fi
 

Recently uploaded

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
tarandeep35
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
Celine George
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Fajar Baskoro
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
amberjdewit93
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
National Information Standards Organization (NISO)
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
Dr. Shivangi Singh Parihar
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
mulvey2
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
Priyankaranawat4
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
History of Stoke Newington
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
adhitya5119
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
Katrina Pritchard
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
TechSoup
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Akanksha trivedi rama nursing college kanpur.
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
Dr. Mulla Adam Ali
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
chanes7
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Dr. Vinod Kumar Kanvaria
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
taiba qazi
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Excellence Foundation for South Sudan
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
Priyankaranawat4
 

Recently uploaded (20)

S1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptxS1-Introduction-Biopesticides in ICM.pptx
S1-Introduction-Biopesticides in ICM.pptx
 
How to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP ModuleHow to Add Chatter in the odoo 17 ERP Module
How to Add Chatter in the odoo 17 ERP Module
 
Pengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptxPengantar Penggunaan Flutter - Dart programming language1.pptx
Pengantar Penggunaan Flutter - Dart programming language1.pptx
 
Digital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental DesignDigital Artefact 1 - Tiny Home Environmental Design
Digital Artefact 1 - Tiny Home Environmental Design
 
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
Pollock and Snow "DEIA in the Scholarly Landscape, Session One: Setting Expec...
 
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptxChapter 4 - Islamic Financial Institutions in Malaysia.pptx
Chapter 4 - Islamic Financial Institutions in Malaysia.pptx
 
PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.PCOS corelations and management through Ayurveda.
PCOS corelations and management through Ayurveda.
 
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptxC1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
C1 Rubenstein AP HuG xxxxxxxxxxxxxx.pptx
 
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdfANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
ANATOMY AND BIOMECHANICS OF HIP JOINT.pdf
 
The History of Stoke Newington Street Names
The History of Stoke Newington Street NamesThe History of Stoke Newington Street Names
The History of Stoke Newington Street Names
 
Main Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docxMain Java[All of the Base Concepts}.docx
Main Java[All of the Base Concepts}.docx
 
BBR 2024 Summer Sessions Interview Training
BBR  2024 Summer Sessions Interview TrainingBBR  2024 Summer Sessions Interview Training
BBR 2024 Summer Sessions Interview Training
 
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat  Leveraging AI for Diversity, Equity, and InclusionExecutive Directors Chat  Leveraging AI for Diversity, Equity, and Inclusion
Executive Directors Chat Leveraging AI for Diversity, Equity, and Inclusion
 
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama UniversityNatural birth techniques - Mrs.Akanksha Trivedi Rama University
Natural birth techniques - Mrs.Akanksha Trivedi Rama University
 
Hindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdfHindi varnamala | hindi alphabet PPT.pdf
Hindi varnamala | hindi alphabet PPT.pdf
 
Digital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments UnitDigital Artifact 1 - 10VCD Environments Unit
Digital Artifact 1 - 10VCD Environments Unit
 
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
Exploiting Artificial Intelligence for Empowering Researchers and Faculty, In...
 
DRUGS AND ITS classification slide share
DRUGS AND ITS classification slide shareDRUGS AND ITS classification slide share
DRUGS AND ITS classification slide share
 
Your Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective UpskillingYour Skill Boost Masterclass: Strategies for Effective Upskilling
Your Skill Boost Masterclass: Strategies for Effective Upskilling
 
clinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdfclinical examination of hip joint (1).pdf
clinical examination of hip joint (1).pdf
 

IoT Platform

  • 2. BLINKING OF LED USING ARDUINO. REQUIREMENTS: • 1 Arduino UNO Board, Wire Interfaces, LEDs • THEORY: In this we have perform a practical of blinking of LED using Arduino using the following steps-
  • 3. • Step1: Connect the LED with 13 and ground off arduino. • Step2: Connect the arduino with the system. • Step3: Open arduino software and Blinking Code. • Step4: Verify and upload the program in the arduino and get the output.
  • 4. Checking the Voltage Variation of Arduino UNO in IoT Platform Ubidots REQUIREMENTS: • Arduino UNO Board, Ethernet Shield, Interfacing Wires. THEORY: • In this we check the voltage variation of arduino on IoT Platform (ubidots.com)
  • 5.
  • 9. Copy variable number and paste it in the program
  • 10. Copy token number and paste it in the program
  • 11. Checking the Voltage Variation of Arduino UNO in IoT Platform(ThingSpeak) REQUIREMENTS: Arduino UNO Board, Ethernet Shield, Interfacing Wires.
  • 12. THEORY: In this we check the voltage variation of arduino on IoT Platform (thinkspeak.com)
  • 13. Fig1: open arduino and include library thinkspeak.
  • 14. Fig 3: Open thinkspeak.com
  • 16. Fig 5: Create new channel
  • 17. Fig 6: Copy Channel ID and API Key and paste it in the program
  • 18. Fig 7: Open Public View
  • 19. Fig 8: Verify and Upload the program
  • 20. Fig 9: Final Output
  • 21. Code- #include <ThingSpeak.h> /* WriteVoltage Reads an analog voltage from pin 0, and writes it to a channel on ThingSpeak every 20 seconds. ThingSpeak ( https://www.thingspeak.com ) is a free IoT service for prototyping systems that collect, analyze, and react to their environments. Copyright 2015, The MathWorks, Inc. Documentation for the ThingSpeak Communication Library for Arduino is in the extras/documentation folder where the library was installed. See the accompaning licence file for licensing information. */
  • 22. #ifdef SPARK #include "ThingSpeak/ThingSpeak.h" #else #include "ThingSpeak.h" #endif /// ************************************************************************************************* ********** // This example selects the correct library to use based on the board selected under the Tools menu in the IDE. // Yun, Wired Ethernet shield, wi-fi shield, esp8266, and Spark are all supported. // With Uno and Mega, the default is that you're using a wired ethernet shield (http://www.arduino.cc/en/Main/ArduinoEthernetShield) // If you're using a wi-fi shield (http://www.arduino.cc/en/Main/ArduinoWiFiShield), uncomment the line below // ************************************************************************************************* ********** //#define USE_WIFI_SHIELD #ifdef ARDUINO_ARCH_AVR #ifdef ARDUINO_AVR_YUN #include "YunClient.h"
  • 23. YunClient client; #else #ifdef USE_WIFI_SHIELD #include <SPI.h> // ESP8266 USERS -- YOU MUST COMMENT OUT THE LINE BELOW. There's a bug in the Arduino IDE that causes it to not respect #ifdef when it comes to #includes // If you get "multiple definition of `WiFi'" -- comment out the line below. #include <WiFi.h> char ssid[] = "<YOURNETWORK>"; // your network SSID (name) char pass[] = "<YOURPASSWORD>"; // your network password int status = WL_IDLE_STATUS; WiFiClient client; #else // Use wired ethernet shield #include <SPI.h> #include <Ethernet.h> byte mac[] = { 0xDE, 0xAD, 0xBE, 0xEF, 0xFE, 0xED}; EthernetClient client; #endif #endif // On Arduino: 0 - 1023 maps to 0 - 5 volts #define VOLTAGE_MAX 5.0
  • 24. #define VOLTAGE_MAXCOUNTS 1023.0 #endif #ifdef ARDUINO_ARCH_ESP8266 #include <ESP8266WiFi.h> char ssid[] = "<YOURNETWORK>"; // your network SSID (name) char pass[] = "<YOURPASSWORD>"; // your network password int status = WL_IDLE_STATUS; WiFiClient client; // On ESP8266: 0 - 1023 maps to 0 - 1 volts #define VOLTAGE_MAX 1.0 #define VOLTAGE_MAXCOUNTS 1023.0 #endif #ifdef SPARK TCPClient client; // On Particle: 0 - 4095 maps to 0 - 3.3 volts #define VOLTAGE_MAX 3.3 #define VOLTAGE_MAXCOUNTS 4095.0 #endif /* *****************************************************************************************
  • 25. **** Visit https://www.thingspeak.com to sign up for a free account and create **** a channel. The video tutorial http://community.thingspeak.com/tutorials/thingspeak- channels/ **** has more information. You need to change this to your channel, and your write API key **** IF YOU SHARE YOUR CODE WITH OTHERS, MAKE SURE YOU REMOVE YOUR WRITE API KEY!! *****************************************************************************************/ unsigned long myChannelNumber = 124278; const char * myWriteAPIKey = "04377LL7I54LVCNZ"; void setup() { #if defined(ARDUINO_ARCH_AVR) || defined(ARDUINO_ARCH_ESP8266) #ifdef ARDUINO_AVR_YUN Bridge.begin(); #else #if defined(USE_WIFI_SHIELD) || defined(ARDUINO_ARCH_ESP8266) WiFi.begin(ssid, pass); #else Ethernet.begin(mac); #endif
  • 26. #endif #endif ThingSpeak.begin(client); } void loop() { // read the input on analog pin 0: int sensorValue = analogRead(A0); // Convert the analog reading // On Arduino: 0 - 1023 maps to 0 - 5 volts // On ESP8266: 0 - 1023 maps to 0 - 1 volts // On Particle: 0 - 4095 maps to 0 - 3.3 volts float voltage = sensorValue * (VOLTAGE_MAX / VOLTAGE_MAXCOUNTS); // Write to ThingSpeak. There are up to 8 fields in a channel, allowing you to store up to 8 different // pieces of information in a channel. Here, we write to field 1. ThingSpeak.writeField(myChannelNumber, 1, voltage, myWriteAPIKey); delay(20000); // ThingSpeak will only accept updates every 15 seconds. }
  • 27. Glowing Of LED Using I/R Sensor. REQUIREMENTS: Arduino UNO Board, Breadboard, LED, I/R Sensor, Wire Interfaces. THEORY: Here we glow the LED using I/R sensor. In this when our hand come closer towards the I/R sensor the LED glows.
  • 28. Step1: Connect the LED with arduino board and breadboard. Step2: Make the connection of wire between arduino and breadboard. Step3: Connect the LED with one pin of Arduino. Step4: Connect the I/R sensor with arduino and breadboard. Step5: Connect the arduino with system. Step6: Open the program in the arduino software. Step7: Verify and upload the program and get the output by placing your hand near the I/R Sensor.
  • 29. Code- int a=12; int b=5; void setup() { // put your setup code here, to run once: pinMode(a, INPUT); pinMode(b, OUTPUT); } void loop() { // put your main code here, to run repeatedly: int readsen=digitalRead(a); if(readsen==HIGH) { digitalWrite(b, HIGH); } else { digitalWrite(b, !HIGH); } delay(1); }
  • 30. • Now its your turn do the same practical with the use of any IOT Platform.
  • 31. Tasks to do- • Make a system that sends mail to you when the value of the sensor exceeds the limit.(Hint-Explore Ubidots) • Make a system that sends message on your phone when the IR sensor detects any presence.(Hint-Explore Ubidots)
  • 32. Thank You and Keep Exploring