SlideShare a Scribd company logo
WELCOME
To
One Day Workshop
On
IoT and Hands on session on Embedded System
Date:29/01/2020-30/01/2020 Venue :511
What is IoT?
The Internet of Things (IoT) is the network of physical objects—devices, vehicles,
buildings and other items embedded with electronics, software, sensors, and network
connectivity—that enables these objects to collect and exchange data.
Where is IoT?
It’s everywhere!
Wearable Tech
Healthcare
Smart Appliances
Applications of IoT in Industry, Home & Smart Cities
 Building and Home automation
 Manufacturing
 Medical and Healthcare systems
 Media
 Environmental monitoring
 Infrastructure management
 Energy management
 Transportation
 Better quality of life for elderly
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
In the world of IoT, even the cows will be connected and monitored. Sensors are implanted in
the ears of cattle. This allows farmers to monitor cows’ health and track their movements,
ensuring a healthier, more plentiful supply of milk and meat for people to consume. On average,
each cow generates about 200 MB of information per year.
Sensors in even the holy cow!
IoT Basics with few Embedded System Connections for sensors
IoT Basics with few Embedded System Connections for sensors
What is Arduino?
 An Arduino is an open-source microcontroller
development board.
 Arduino can be used to read sensors and
control things like motors and lights.
 Can upload programs to this board which can
then interact with things in the real world.
 With this, you can make devices which respond
and react to the world at large.
Introduction to Arduino
What is MICRO CONTROLLER?
 A Microcontroller is a single chip devices or
Single chip computers in a small size that its
resources are far more limited than those of a
desktop personal computer
 It is designed for standalone operations
 It includes:
Processing unit
RAM & ROM
I/O
Types of Microcontroller
What is MICRO PROCESSOR?
 The Microporcessor incarporates the functions
of a computer Central processing Unit(CPU) on
a single integrated Circuit(IC),or atleast few
integrated circuits
What is Arduino?
 An Arduino is an open-source microcontroller
development board.
 Arduino can be used to read sensors and
control things like motors and lights.
 Can upload programs to this board which can
then interact with things in the real world.
 With this, you can make devices which respond
and react to the world at large.
IoT Basics with few Embedded System Connections for sensors
 Reset Button – This will restart any code that is
loaded to the Arduino board
 AREF – Stands for “Analog Reference” and is
used to set an external reference voltage
 Ground Pin – There are a few ground pins on
the Arduino and they all work the same
 Digital Input/Output – Pins 0-13 can be used
for digital input or output
 PWM – The pins marked with the (~) symbol
can simulate analog output
 USB Connection – Used for powering up your
Arduino and uploading sketches
 TX/RX – Transmit and receive data indication
LEDs
 ATmega Microcontroller – This is the brains
and is where the programs are stored
 Power LED Indicator – This LED lights up
anytime the board is plugged in a power source
 Voltage Regulator – This controls the amount of
voltage going into the Arduino board
 DC Power Barrel Jack – This is used for
powering your Arduino with a power supply
 3.3V Pin – This pin supplies 3.3 volts of power
to your projects
 5V Pin – This pin supplies 5 volts of power to
your projects
 Ground Pins – There are a few ground pins on
the Arduino and they all work the same
 Analog Pins – These pins can read the signal
rom an analog sensor and convert it to digital
Why Arduino?
 It is flexible, easy-to-use hardware and software
 Arduino Uno uses a different USB chip which
makes installation of the Arduino software lot
easier.
 Has higher speeds of communication with the
computer.
 Comes equipped with the ATmega328
Microcontroller, which has more memory.
 The processor can be easily replaced if
damaged.
LM35 Temperature Sensor
 TLM35 is a temperature measuring device
having an analog output voltage proportional to
the temperature.
 It provides output voltage in Centigrade
(Celsius). It does not require any external
calibration circuitry.
 The sensitivity of LM35 is 10 mV/degree
Celsius. As temperature increases, output
voltage also increases.
E.g. 250 mV means 25°C.
MQ2 Sensor
 The Grove - Gas Sensor(MQ2) module is
useful for gas leakage detection (home and
industry).
 It is suitable for detecting H2, LPG, CH4, CO,
Alcohol, Smoke or Propane.
 Due to its high sensitivity and fast response
time, measurement can be taken as soon as
possible
Breadboard
Breadboard
 This device allows you to prototype your
Arduino project without having to permanently
solder the circuit together.
 Using a breadboard allows you to create
temporary prototypes and experiment with
different circuit designs.
 Inside the holes (tie points) of the plastic
housing, are metal clips which are connected to
each other by strips of conductive material.
Jumper Wires
 Jumper wires are simply wires that have connector pins at each
end, allowing them to be used to connect two points to each
other without soldering.
Programming with Arduino
A basic sketch consists of 3 parts
1. Declaration of Variables
2. Initialization: It is written in the setup () function.
3. Control code: It is written in the loop () function.
void setup() {
// put your setup code here, to run once:
}
void loop() {
// put your main code here, to run repeatedly:
}
Sample code for LED Blink
void setup() {
// initialize digital pin LED_BUILTIN as an output.
pinMode(LED_BUILTIN, OUTPUT);
}
// the loop function runs over and over again forever
void loop() {
digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage
level) delay(1000); // wait for a second
digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage
LOW
delay(1000); // wait for a second
}
LM35
const int lm35_pin = A1; /* LM35 O/P pin */
void setup() {
Serial.begin(9600);
}
void loop() {
int temp_adc_val;
float temp_val;
temp_adc_val = analogRead(lm35_pin);
temp_val = (temp_adc_val * 4.88); /* Convert adc
value to equivalent voltage */
temp_val = (temp_val/10); /* LM35 gives output
of 10mv/°C */
Serial.print("Temperature = ");
Serial.print(temp_val);
Serial.print(" Degree Celsiusn");
delay(1000);
}
LM 35 with Buzzer
const int lm35_pin = A1; /* LM35 O/P pin */
void setup() {
Serial.begin(9600);
pinMode(8, OUTPUT);
}
void loop() {
int temp_adc_val;
float temp_val;
temp_adc_val = analogRead(lm35_pin); /* Read
Temperature */
temp_val = (temp_adc_val * 4.88); /* Convert adc value
to equivalent voltage */
temp_val = (temp_val/10); /* LM35 gives output of
10mv/°C */
Serial.print("Temperature = ");
Serial.print(temp_val);
Serial.print(" Degree Celsiusn");
delay(1000);
if(temp_val>30)
{
digitalWrite(8, HIGH); // turn the LED on (HIGH
is the voltage level)
delay(1005); // wait for a second
digitalWrite(8, LOW); // turn the LED off by
making the voltage LOW
delay(1005);
}
}
MQ2Sensor
int redLed = 12;
int greenLed = 11;
int buzzer = 10;
int smokeA0 = A5;
// Your threshold value
int sensorThres = 400;
void setup() {
pinMode(redLed, OUTPUT);
pinMode(greenLed, OUTPUT);
pinMode(buzzer, OUTPUT);
pinMode(smokeA0, INPUT);
Serial.begin(9600);
}}
void loop() {
int analogSensor = analogRead(smokeA0);
Serial.print("Pin A0: ");
Serial.println(analogSensor);
// Checks if it has reached the threshold value
if (analogSensor > sensorThres)
{ digitalWrite(redLed, HIGH);
digitalWrite(greenLed, LOW);
tone(buzzer, 1000, 200);
} else {
digitalWrite(redLed, LOW);
digitalWrite(greenLed, HIGH);
noTone(buzzer);
} delay(100);
}
Thank You

More Related Content

Similar to IoT Basics with few Embedded System Connections for sensors (20)

Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
salih mahmod
 
Digital home automation with arduino bluetooth
Digital home automation with arduino bluetoothDigital home automation with arduino bluetooth
Digital home automation with arduino bluetooth
Shishupal03012015
 
introduction of arduino and node mcu
introduction of arduino and node mcuintroduction of arduino and node mcu
introduction of arduino and node mcu
6305HASANBASARI
 
arduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptxarduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptx
SruSru1
 
Embedded system application
Embedded system applicationEmbedded system application
Embedded system application
Dhruwank Vankawala
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
RaJYadav196733
 
Robotics Session day 1
Robotics Session day 1Robotics Session day 1
Robotics Session day 1
Afzal Ahmad
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
Felipe Belarmino
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
VilayatAli5
 
Arduino: Arduino starter kit
Arduino: Arduino starter kitArduino: Arduino starter kit
Arduino: Arduino starter kit
SANTIAGO PABLO ALBERTO
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
DhirajPatel58
 
Mechatronics material . Mechanical engineering
Mechatronics material . Mechanical engineeringMechatronics material . Mechanical engineering
Mechatronics material . Mechanical engineering
sachin chaurasia
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
HebaEng
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Arduino presentation.pptx it's made up by Mrs electron
Arduino  presentation.pptx  it's made up by Mrs electronArduino  presentation.pptx  it's made up by Mrs electron
Arduino presentation.pptx it's made up by Mrs electron
avnish27jankumar2010
 
Arduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro MateseArduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro Matese
Alfonso Crisci
 
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptxLecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
itsmepulkitsharma
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
Annamaria Lisotti
 
Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011Arduino Comic-Jody Culkin-2011
Arduino Comic-Jody Culkin-2011
ΚΔΑΠ Δήμου Θέρμης
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004
DO!MAKERS
 
Arduino اردوينو
Arduino اردوينوArduino اردوينو
Arduino اردوينو
salih mahmod
 
Digital home automation with arduino bluetooth
Digital home automation with arduino bluetoothDigital home automation with arduino bluetooth
Digital home automation with arduino bluetooth
Shishupal03012015
 
introduction of arduino and node mcu
introduction of arduino and node mcuintroduction of arduino and node mcu
introduction of arduino and node mcu
6305HASANBASARI
 
arduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptxarduino and its introduction deep dive ppt.pptx
arduino and its introduction deep dive ppt.pptx
SruSru1
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
RaJYadav196733
 
Robotics Session day 1
Robotics Session day 1Robotics Session day 1
Robotics Session day 1
Afzal Ahmad
 
Arduino electronics cookbook
Arduino electronics cookbookArduino electronics cookbook
Arduino electronics cookbook
Felipe Belarmino
 
Arduino windows remote control
Arduino windows remote controlArduino windows remote control
Arduino windows remote control
VilayatAli5
 
Mechatronics material . Mechanical engineering
Mechatronics material . Mechanical engineeringMechatronics material . Mechanical engineering
Mechatronics material . Mechanical engineering
sachin chaurasia
 
Arduino Workshop (3).pptx
Arduino Workshop (3).pptxArduino Workshop (3).pptx
Arduino Workshop (3).pptx
HebaEng
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
Emmanuel Obot
 
Arduino presentation.pptx it's made up by Mrs electron
Arduino  presentation.pptx  it's made up by Mrs electronArduino  presentation.pptx  it's made up by Mrs electron
Arduino presentation.pptx it's made up by Mrs electron
avnish27jankumar2010
 
Arduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro MateseArduino in Agricoltura -Alessandro Matese
Arduino in Agricoltura -Alessandro Matese
Alfonso Crisci
 
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptxLecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
Lecture Notes 2.2.3 (Debouncing-Led-sevengement display) (1).pptx
itsmepulkitsharma
 
Mom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics labMom presentation_monday_arduino in the physics lab
Mom presentation_monday_arduino in the physics lab
Annamaria Lisotti
 
Arduino comic v0004
Arduino comic v0004Arduino comic v0004
Arduino comic v0004
DO!MAKERS
 

Recently uploaded (20)

FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.
maldonadocesarmanuel
 
cloud Lecture_2025 cloud architecture.ppt
cloud Lecture_2025 cloud architecture.pptcloud Lecture_2025 cloud architecture.ppt
cloud Lecture_2025 cloud architecture.ppt
viratkohli82222
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
ijccmsjournal
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Forecasting Road Accidents Using Deep Learning Approach: Policies to Improve ...
Forecasting Road Accidents Using Deep Learning Approach: Policies to Improve ...Forecasting Road Accidents Using Deep Learning Approach: Policies to Improve ...
Forecasting Road Accidents Using Deep Learning Approach: Policies to Improve ...
Journal of Soft Computing in Civil Engineering
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
ANFIS Models with Subtractive Clustering and Fuzzy C-Mean Clustering Techniqu...
Journal of Soft Computing in Civil Engineering
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Mohamed905031
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 
Research_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptxResearch_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptx
niranjancse
 
introduction to Digital Signature basics
introduction to Digital Signature basicsintroduction to Digital Signature basics
introduction to Digital Signature basics
DhavalPatel171802
 
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptxFINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
FINAL 2013 Module 20 Corrosion Control and Sequestering PPT Slides.pptx
kippcam
 
FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.FISICA ESTATICA DESING LOADS CAPITULO 2.
FISICA ESTATICA DESING LOADS CAPITULO 2.
maldonadocesarmanuel
 
cloud Lecture_2025 cloud architecture.ppt
cloud Lecture_2025 cloud architecture.pptcloud Lecture_2025 cloud architecture.ppt
cloud Lecture_2025 cloud architecture.ppt
viratkohli82222
 
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
Direct Current circuitsDirect Current circuitsDirect Current circuitsDirect C...
BeHappy728244
 
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
PREDICTION OF ROOM TEMPERATURE SIDEEFFECT DUE TOFAST DEMAND RESPONSEFOR BUILD...
ijccmsjournal
 
Class-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdfClass-Symbols for vessels ships shipyards.pdf
Class-Symbols for vessels ships shipyards.pdf
takisvlastos
 
Software Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance OptimizationSoftware Developer Portfolio: Backend Architecture & Performance Optimization
Software Developer Portfolio: Backend Architecture & Performance Optimization
kiwoong (daniel) kim
 
Structural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptxStructural Health and Factors affecting.pptx
Structural Health and Factors affecting.pptx
gunjalsachin
 
Introduction to AI agent development with MCP
Introduction to AI agent development with MCPIntroduction to AI agent development with MCP
Introduction to AI agent development with MCP
Dori Waldman
 
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdfIrja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus - Beyond Pass and Fail - DevTalks.pdf
Irja Straus
 
New Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docxNew Microsoft Office Word Documentfrf.docx
New Microsoft Office Word Documentfrf.docx
misheetasah
 
Artificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowyArtificial Power 2025 raport krajobrazowy
Artificial Power 2025 raport krajobrazowy
dominikamizerska1
 
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Numerical Investigation of the Aerodynamic Characteristics for a Darrieus H-t...
Mohamed905031
 
First Review PPT gfinal gyft ftu liu yrfut go
First Review PPT gfinal gyft  ftu liu yrfut goFirst Review PPT gfinal gyft  ftu liu yrfut go
First Review PPT gfinal gyft ftu liu yrfut go
Sowndarya6
 
Software Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha TasnuvaSoftware Engineering Project Presentation Tanisha Tasnuva
Software Engineering Project Presentation Tanisha Tasnuva
tanishatasnuva76
 
Presentación Tomografía Axial Computarizada
Presentación Tomografía Axial ComputarizadaPresentación Tomografía Axial Computarizada
Presentación Tomografía Axial Computarizada
Juliana Ovalle Jiménez
 
Research_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptxResearch_Sensitization_&_Innovative_Project_Development.pptx
Research_Sensitization_&_Innovative_Project_Development.pptx
niranjancse
 
introduction to Digital Signature basics
introduction to Digital Signature basicsintroduction to Digital Signature basics
introduction to Digital Signature basics
DhavalPatel171802
 
Ad

IoT Basics with few Embedded System Connections for sensors

  • 1. WELCOME To One Day Workshop On IoT and Hands on session on Embedded System Date:29/01/2020-30/01/2020 Venue :511
  • 2. What is IoT? The Internet of Things (IoT) is the network of physical objects—devices, vehicles, buildings and other items embedded with electronics, software, sensors, and network connectivity—that enables these objects to collect and exchange data.
  • 3. Where is IoT? It’s everywhere!
  • 5. Applications of IoT in Industry, Home & Smart Cities  Building and Home automation  Manufacturing  Medical and Healthcare systems  Media  Environmental monitoring  Infrastructure management  Energy management  Transportation  Better quality of life for elderly
  • 9. In the world of IoT, even the cows will be connected and monitored. Sensors are implanted in the ears of cattle. This allows farmers to monitor cows’ health and track their movements, ensuring a healthier, more plentiful supply of milk and meat for people to consume. On average, each cow generates about 200 MB of information per year. Sensors in even the holy cow!
  • 12. What is Arduino?  An Arduino is an open-source microcontroller development board.  Arduino can be used to read sensors and control things like motors and lights.  Can upload programs to this board which can then interact with things in the real world.  With this, you can make devices which respond and react to the world at large.
  • 14. What is MICRO CONTROLLER?  A Microcontroller is a single chip devices or Single chip computers in a small size that its resources are far more limited than those of a desktop personal computer  It is designed for standalone operations  It includes: Processing unit RAM & ROM I/O
  • 16. What is MICRO PROCESSOR?  The Microporcessor incarporates the functions of a computer Central processing Unit(CPU) on a single integrated Circuit(IC),or atleast few integrated circuits
  • 17. What is Arduino?  An Arduino is an open-source microcontroller development board.  Arduino can be used to read sensors and control things like motors and lights.  Can upload programs to this board which can then interact with things in the real world.  With this, you can make devices which respond and react to the world at large.
  • 19.  Reset Button – This will restart any code that is loaded to the Arduino board  AREF – Stands for “Analog Reference” and is used to set an external reference voltage  Ground Pin – There are a few ground pins on the Arduino and they all work the same  Digital Input/Output – Pins 0-13 can be used for digital input or output  PWM – The pins marked with the (~) symbol can simulate analog output
  • 20.  USB Connection – Used for powering up your Arduino and uploading sketches  TX/RX – Transmit and receive data indication LEDs  ATmega Microcontroller – This is the brains and is where the programs are stored  Power LED Indicator – This LED lights up anytime the board is plugged in a power source  Voltage Regulator – This controls the amount of voltage going into the Arduino board
  • 21.  DC Power Barrel Jack – This is used for powering your Arduino with a power supply  3.3V Pin – This pin supplies 3.3 volts of power to your projects  5V Pin – This pin supplies 5 volts of power to your projects  Ground Pins – There are a few ground pins on the Arduino and they all work the same  Analog Pins – These pins can read the signal rom an analog sensor and convert it to digital
  • 22. Why Arduino?  It is flexible, easy-to-use hardware and software  Arduino Uno uses a different USB chip which makes installation of the Arduino software lot easier.  Has higher speeds of communication with the computer.  Comes equipped with the ATmega328 Microcontroller, which has more memory.  The processor can be easily replaced if damaged.
  • 23. LM35 Temperature Sensor  TLM35 is a temperature measuring device having an analog output voltage proportional to the temperature.  It provides output voltage in Centigrade (Celsius). It does not require any external calibration circuitry.  The sensitivity of LM35 is 10 mV/degree Celsius. As temperature increases, output voltage also increases. E.g. 250 mV means 25°C.
  • 24. MQ2 Sensor  The Grove - Gas Sensor(MQ2) module is useful for gas leakage detection (home and industry).  It is suitable for detecting H2, LPG, CH4, CO, Alcohol, Smoke or Propane.  Due to its high sensitivity and fast response time, measurement can be taken as soon as possible
  • 26. Breadboard  This device allows you to prototype your Arduino project without having to permanently solder the circuit together.  Using a breadboard allows you to create temporary prototypes and experiment with different circuit designs.  Inside the holes (tie points) of the plastic housing, are metal clips which are connected to each other by strips of conductive material.
  • 27. Jumper Wires  Jumper wires are simply wires that have connector pins at each end, allowing them to be used to connect two points to each other without soldering.
  • 28. Programming with Arduino A basic sketch consists of 3 parts 1. Declaration of Variables 2. Initialization: It is written in the setup () function. 3. Control code: It is written in the loop () function. void setup() { // put your setup code here, to run once: } void loop() { // put your main code here, to run repeatedly: }
  • 29. Sample code for LED Blink void setup() { // initialize digital pin LED_BUILTIN as an output. pinMode(LED_BUILTIN, OUTPUT); } // the loop function runs over and over again forever void loop() { digitalWrite(LED_BUILTIN, HIGH); // turn the LED on (HIGH is the voltage level) delay(1000); // wait for a second digitalWrite(LED_BUILTIN, LOW); // turn the LED off by making the voltage LOW delay(1000); // wait for a second }
  • 30. LM35 const int lm35_pin = A1; /* LM35 O/P pin */ void setup() { Serial.begin(9600); } void loop() { int temp_adc_val; float temp_val; temp_adc_val = analogRead(lm35_pin);
  • 31. temp_val = (temp_adc_val * 4.88); /* Convert adc value to equivalent voltage */ temp_val = (temp_val/10); /* LM35 gives output of 10mv/°C */ Serial.print("Temperature = "); Serial.print(temp_val); Serial.print(" Degree Celsiusn"); delay(1000); }
  • 32. LM 35 with Buzzer const int lm35_pin = A1; /* LM35 O/P pin */ void setup() { Serial.begin(9600); pinMode(8, OUTPUT); }
  • 33. void loop() { int temp_adc_val; float temp_val; temp_adc_val = analogRead(lm35_pin); /* Read Temperature */ temp_val = (temp_adc_val * 4.88); /* Convert adc value to equivalent voltage */ temp_val = (temp_val/10); /* LM35 gives output of 10mv/°C */ Serial.print("Temperature = "); Serial.print(temp_val); Serial.print(" Degree Celsiusn"); delay(1000);
  • 34. if(temp_val>30) { digitalWrite(8, HIGH); // turn the LED on (HIGH is the voltage level) delay(1005); // wait for a second digitalWrite(8, LOW); // turn the LED off by making the voltage LOW delay(1005); } }
  • 35. MQ2Sensor int redLed = 12; int greenLed = 11; int buzzer = 10; int smokeA0 = A5; // Your threshold value int sensorThres = 400; void setup() { pinMode(redLed, OUTPUT); pinMode(greenLed, OUTPUT); pinMode(buzzer, OUTPUT); pinMode(smokeA0, INPUT); Serial.begin(9600); }}
  • 36. void loop() { int analogSensor = analogRead(smokeA0); Serial.print("Pin A0: "); Serial.println(analogSensor); // Checks if it has reached the threshold value if (analogSensor > sensorThres) { digitalWrite(redLed, HIGH); digitalWrite(greenLed, LOW); tone(buzzer, 1000, 200); } else { digitalWrite(redLed, LOW); digitalWrite(greenLed, HIGH); noTone(buzzer); } delay(100); }