SlideShare a Scribd company logo
1 of 32
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

37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificacionesIVAN GAVILAN
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Hafid Moujane
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2Sudar Muthu
 
Arduino Interface LM35 MQTT Using UART
Arduino Interface LM35 MQTT Using UARTArduino Interface LM35 MQTT Using UART
Arduino Interface LM35 MQTT Using UARTSanjay Kumar
 
Touch Switch (Smart Switches) by arduino Project report file
Touch Switch (Smart Switches) by arduino  Project  report fileTouch Switch (Smart Switches) by arduino  Project  report file
Touch Switch (Smart Switches) by arduino Project report fileimkanhaiyalal
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYVishnu
 
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Elaf A.Saeed
 
Wireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleWireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleSunil Kumar Shesma
 
report on mini project Bicycle lock
 report on mini project Bicycle lock  report on mini project Bicycle lock
report on mini project Bicycle lock Omkar Rane
 
برمجة الأردوينو - اليوم الأول
برمجة الأردوينو - اليوم الأولبرمجة الأردوينو - اليوم الأول
برمجة الأردوينو - اليوم الأولAhmed Sakr
 
Arduino UNO R3 Projects - Robomart
Arduino UNO R3 Projects - RobomartArduino UNO R3 Projects - Robomart
Arduino UNO R3 Projects - RobomartRavi Kant Pal
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line reportRavi Phadtare
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Future Insights
 
Arduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArpit Sharma
 

What's hot (20)

37 en-1-especificaciones
37 en-1-especificaciones37 en-1-especificaciones
37 en-1-especificaciones
 
Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015Arduino projects-pdf-download-list-jan-2015
Arduino projects-pdf-download-list-jan-2015
 
Report on arduino
Report on arduinoReport on arduino
Report on arduino
 
Arduino Robotics workshop day2
Arduino Robotics workshop day2Arduino Robotics workshop day2
Arduino Robotics workshop day2
 
Arduino Interface LM35 MQTT Using UART
Arduino Interface LM35 MQTT Using UARTArduino Interface LM35 MQTT Using UART
Arduino Interface LM35 MQTT Using UART
 
MPU-6050_RF24L01
MPU-6050_RF24L01MPU-6050_RF24L01
MPU-6050_RF24L01
 
Touch Switch (Smart Switches) by arduino Project report file
Touch Switch (Smart Switches) by arduino  Project  report fileTouch Switch (Smart Switches) by arduino  Project  report file
Touch Switch (Smart Switches) by arduino Project report file
 
Anti theft & Automation using Arduino
Anti theft & Automation using ArduinoAnti theft & Automation using Arduino
Anti theft & Automation using Arduino
 
Arduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIYArduino Workshop Day 2 - Advance Arduino & DIY
Arduino Workshop Day 2 - Advance Arduino & DIY
 
Obstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic VehicleObstacle Avoidance Robotic Vehicle
Obstacle Avoidance Robotic Vehicle
 
Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)Lesson 9- NodeMCU with Arduino UNO (UART)
Lesson 9- NodeMCU with Arduino UNO (UART)
 
Wireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 moduleWireless transmission of voice signal using nRF24L01 module
Wireless transmission of voice signal using nRF24L01 module
 
report on mini project Bicycle lock
 report on mini project Bicycle lock  report on mini project Bicycle lock
report on mini project Bicycle lock
 
برمجة الأردوينو - اليوم الأول
برمجة الأردوينو - اليوم الأولبرمجة الأردوينو - اليوم الأول
برمجة الأردوينو - اليوم الأول
 
Arduino UNO R3 Projects - Robomart
Arduino UNO R3 Projects - RobomartArduino UNO R3 Projects - Robomart
Arduino UNO R3 Projects - Robomart
 
protection on lineman while working on transmission line report
 protection on lineman while working on transmission line report protection on lineman while working on transmission line report
protection on lineman while working on transmission line report
 
Home Automation System
Home Automation SystemHome Automation System
Home Automation System
 
Arduino based Applications-part 5
Arduino based Applications-part 5Arduino based Applications-part 5
Arduino based Applications-part 5
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
Arduino Information by Arpit Sharma
Arduino Information by Arpit SharmaArduino Information by Arpit Sharma
Arduino Information by Arpit Sharma
 

Similar to IoT Platform

Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slidesmkarlin14
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266Home Automation Using Arduino and ESP8266
Home Automation Using Arduino and ESP8266INFOGAIN PUBLICATION
 
Arduino frequency counter
Arduino frequency counterArduino frequency counter
Arduino frequency counternasyith_hananur
 
Arduino projects &amp; tutorials
Arduino projects &amp; tutorialsArduino projects &amp; tutorials
Arduino projects &amp; tutorialsAnshu Pandey
 
Proposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingProposal Report on Auto Meter Reading
Proposal Report on Auto Meter ReadingRebekahSamuel2
 
Office automation system using arduino
Office automation system using arduinoOffice automation system using arduino
Office automation system using arduinoAshfaqul Haque John
 
Intro to Arduino
Intro to ArduinoIntro to Arduino
Intro to Arduinoavikdhupar
 
Digital home automation with arduino bluetooth
Digital home automation with arduino bluetoothDigital home automation with arduino bluetooth
Digital home automation with arduino bluetoothShishupal03012015
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptxHebaEng
 
Ch_2_8,9,10.pptx
Ch_2_8,9,10.pptxCh_2_8,9,10.pptx
Ch_2_8,9,10.pptxyosikit826
 
IOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfIOT WORKSHEET 1.4.pdf
IOT WORKSHEET 1.4.pdfMayuRana1
 
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-Fiijtsrd
 

Similar to IoT Platform (20)

Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Arduino slides
Arduino slidesArduino slides
Arduino 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

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introductionMaksud Ahmed
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTiammrhaywood
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...M56BOOKSTORE PRODUCT/SERVICE
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformChameera Dedduwage
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application ) Sakshi Ghasle
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfakmcokerachita
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfUmakantAnnand
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentInMediaRes1
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Krashi Coaching
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxheathfieldcps1
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...EduSkills OECD
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppCeline George
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxGaneshChakor2
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdfSoniaTolstoy
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon AUnboundStockton
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsanshu789521
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionSafetyChain Software
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17Celine George
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactdawncurless
 

Recently uploaded (20)

microwave assisted reaction. General introduction
microwave assisted reaction. General introductionmicrowave assisted reaction. General introduction
microwave assisted reaction. General introduction
 
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdfTataKelola dan KamSiber Kecerdasan Buatan v022.pdf
TataKelola dan KamSiber Kecerdasan Buatan v022.pdf
 
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPTECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
ECONOMIC CONTEXT - LONG FORM TV DRAMA - PPT
 
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
KSHARA STURA .pptx---KSHARA KARMA THERAPY (CAUSTIC THERAPY)————IMP.OF KSHARA ...
 
A Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy ReformA Critique of the Proposed National Education Policy Reform
A Critique of the Proposed National Education Policy Reform
 
Hybridoma Technology ( Production , Purification , and Application )
Hybridoma Technology  ( Production , Purification , and Application  ) Hybridoma Technology  ( Production , Purification , and Application  )
Hybridoma Technology ( Production , Purification , and Application )
 
Class 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdfClass 11 Legal Studies Ch-1 Concept of State .pdf
Class 11 Legal Studies Ch-1 Concept of State .pdf
 
Concept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.CompdfConcept of Vouching. B.Com(Hons) /B.Compdf
Concept of Vouching. B.Com(Hons) /B.Compdf
 
Alper Gobel In Media Res Media Component
Alper Gobel In Media Res Media ComponentAlper Gobel In Media Res Media Component
Alper Gobel In Media Res Media Component
 
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
Kisan Call Centre - To harness potential of ICT in Agriculture by answer farm...
 
The basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptxThe basics of sentences session 2pptx copy.pptx
The basics of sentences session 2pptx copy.pptx
 
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
Presentation by Andreas Schleicher Tackling the School Absenteeism Crisis 30 ...
 
URLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website AppURLs and Routing in the Odoo 17 Website App
URLs and Routing in the Odoo 17 Website App
 
CARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptxCARE OF CHILD IN INCUBATOR..........pptx
CARE OF CHILD IN INCUBATOR..........pptx
 
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdfBASLIQ CURRENT LOOKBOOK  LOOKBOOK(1) (1).pdf
BASLIQ CURRENT LOOKBOOK LOOKBOOK(1) (1).pdf
 
Crayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon ACrayon Activity Handout For the Crayon A
Crayon Activity Handout For the Crayon A
 
Presiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha electionsPresiding Officer Training module 2024 lok sabha elections
Presiding Officer Training module 2024 lok sabha elections
 
Mastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory InspectionMastering the Unannounced Regulatory Inspection
Mastering the Unannounced Regulatory Inspection
 
How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17How to Configure Email Server in Odoo 17
How to Configure Email Server in Odoo 17
 
Accessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impactAccessible design: Minimum effort, maximum impact
Accessible design: Minimum effort, maximum impact
 

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