SlideShare a Scribd company logo
First-year Physical Geography Taster Sessions
Dr Thomas Smith
INTELLIGENT TWEETING SENSORS:
INTRODUCING ARDUINO MICROCONTROLLERS
THE BASICS OF ARDUINO MICROCONTROLLERS
• Open source hardware
• Open source development kit
• User community driven
WHAT DO THEY DO?
• Digital I/O (LEDs, switches)
• Analogue I/O (resistive sensor data)
• Serial connection (sensors, GPS, etc.)
• Programmable from your PC/Mac/Linux
• Your limit is only your creativity!!
TERMINOLOGY
• I/O Board – main microcontroller
• Shield – add-on boards
• Sketch – the program
• Sensor – components (thermistors, etc.)
• Modules – serial data (GPS module, etc.)
14 current boards
ARDUINO I/O BOARDS
SHIELDS
SHIELDS
Touchscreen Shield
Wave Shield
Datalogging Shield
COMMUNICATION SHIELDS
Ethernet Shield GSM Shield Wifi Shield
Gas Sensor Temp & Humidity
Flex Sensor
Fingerprint Scanner
Geiger Counter
SENSORS
Photo/thermistor, infared, force sensitive resistor, Hall effect,
Piezo, tilt sensor..
SENSORS
SKETCHES
Includes
Globals
void setup()
void loop()
HANDLING THE ARDUINO – HOW NOT TO DO IT!
Improper Handling - NEVER!!!
HANDLING THE ARDUINO – THE PROPER WAY
Proper Handling - by the edges!!!
TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM
int ledpin = 13;
int del = 2000;
void setup()
{
pinMode(ledpin, OUTPUT);
}
void loop()
{
digitalWrite(ledpin, HIGH);
delay(del);
digitalWrite(ledpin, LOW);
delay(del);
}
TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM
int ledpin = 13;
int del = 2000;
void setup()
{
pinMode(ledpin, OUTPUT);
}
void loop()
{
digitalWrite(ledpin, HIGH);
delay(del);
digitalWrite(ledpin, LOW);
delay(del);
}
Global variables
Tells the Arduino that the LED is on pin 13
Delay between blinks as 2000 milliseconds
Setup
Tells the Arduino that pin 13 should be set as
an output
Loop
Sets pin 13 to provide 5 volts (HIGH)
Delays for specified length of time (del)
Sets pin 13 to provide 0 volts (LOW)
Delays for specified length of time (del)
TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM
int ledpin = 13;
int del = 2000;
void setup()
{
pinMode(ledpin, OUTPUT);
}
void loop()
{
digitalWrite(ledpin, HIGH);
delay(del);
digitalWrite(ledpin, LOW);
delay(del);
}
TRY IT OUT 2: LIGHT DEPENDENT RESISTOR & LED
int LDR_Pin = A0;
void setup(){
Serial.begin(9600);
}
void loop(){
int LDRReading = analogRead(LDR_Pin);
Serial.println(LDRReading);
delay(500);
}
Serial
This is a way by which your Arduino can “speak”
with a computer
Serial.begin opens the communications channel
Serial.print/Serial.println will “print” a message
ADDING “IF” STATEMENTS
If/else
Try to make your LED turn on when the light drops below a
certain level… add this code to your sketch
if (LDRReading < 500)
{
digitalWrite(ledpin, HIGH);
}
else
{
digitalWrite(ledpin, LOW);
}
TWEETING SENSORS 1: “SOMEONE’S RAIDING THE FRIDGE!”
WEATHER SENSOR NETWORKS
SENSOR NETWORK EXAMPLE: BIRMINGHAM
• The primary focus of the Birmingham Urban Climate project is to
provide a series of demonstration sensor networks to measure air
temperature
• The design is a nested network of sensors:
• ~30 full weather stations [coarse array]
• 131 air temperature sensors located in schools [wide array]
• ~100 air temperature sensors in the CBD (approx 50 sensors
per square km) [fine array]
• Birmingham will become the most densely instrumented urban area
in the world.
• The coarse array consists
of ~30 full weather stations
located across Birmingham.
• Urban equipment will be
located in secure primary
electricity substations (schools
in areas without substations)
• Further 4 in
the surrounding rural areas
to record background
conditions (i.e. Sandwell park,
rural schools)
• Average spacing: 3km
N
COARSE ARRAY NETWORK
• A full suite of weather variables will be
measured (air temperature, humidity,
wind speed, wind direction,
barometric pressure, precipitation,
solar radiation).
• Data loggers (CR1000),
communications and mountings
(Campbell Scientific)
• Vaisala WXT520 – precipitation,
wind speed, wind direction,
temperature, relative humidity,
pressure
• SKYE SKS1110 pyranometer
• Data Communication: GSM/GPRS
EQUIPMENT: WEATHER STATIONS
WIDE AREA ARRAY NETWORK
• The wide area array consists
of 131 air temperature
sensors located in schools
• Plus a few in ‘rural’ schools
/parks/farms outside
conurbation
• One per ONS medium super
output area (MSOA)
• Average spacing: 1.5 km
• Data communication: WiFi
via BGfL
EQUIPMENT: AIR TEMPERATURE SENSORS
• The air temperature sensors
(thermistor) and radiation shield are
a bespoke design from Aginova,
USA.
• Small and inexpensive (approx. £87)
• Data is relayed via existing WiFi
networks
• Battery life is estimated at 3 years
(checked annually)
Aginova Micro
• ‘Low-Cost’ Thermistor Temperature
probe (-30 to 70 °C)
• Precision 0.1 °C
• Accuracy ± 0.3 °C (20 °C)
• Stores data when |ΔTt – ΔTt-1| ≥ 0.1 °C
• Ability to store approx. 10 days data
• Secure Wifi data transmission back to
server through school wireless network
• Server hosted software collects data
from whole network and stores in
database
TRY IT OUT 3: MINI WEATHER STATION
Open the “WeatherStation” sketch
Upload to the Arduino
Check out the “Serial Monitor”
TWEETING SENSORS 2: TEMPERATURE RECORDS
How could you use an “if” statement
and some extra variables to record
maximum and minimum
temperatures
How about printing these as
messages?
We could then tweet the messages
(to cheat, look at
weatherstation_minmax)
SOIL MOISTURE AND DROUGHT MONITORING NETWORKS
COMPONENTS OF A FAMINE EARLY WARNING SYSTEM
• Rainfall
• Soil moisture
• Crop condition
• Socio-economics
FEWS: RAINFALL
Global Telecommunication System
Rain-Gauge Network in Africa
-40
-20
0
20
40
-20 0 20 40 60
Longitude (deg)
Latitude(deg)
FEWS: RAINFALL
Spatial
Temporal
FEWS: VEGETATION CONDITION
FEWS: VEGETATION CONDITION
Spatial
Temporal
COMBINED DATASETS TO PREDICT FAMINE
Found at http://www.fews.net
SOIL MOISTURE FROM SPACE
TRY IT OUT 4: SOIL MOISTURE SENSOR
int delaySecs = 5;
void setup() {
Serial.begin(9600);
Serial.println("values: 0-1024 ");
}
void loop() {
int raw_value = analogRead(A0);
Serial.print(" ");
Serial.println(raw_value);
delay(1000*delaySecs);
}
TRY IT OUT 5: CALIBRATED SOIL MOISTURE
Convert raw output to voltage:
volt_value = raw_value/1024*5
Convert voltage into moisture:
moisture = (volt_value*4.44–0.5)/8.4*100
(to cheat, look at
thetaprobe_calibrated)
TWEETING SENSORS 3: “WATER ME!”
How could you use
an “if” statement
and some extra
variables to send a
message when the
soil is too dry?
THANK YOU
thomas.smith@kcl.ac.uk
@DrTELS
@KCLGEOGRAPHY
facebook.com/KCLGeography
K7.47
Office Hours:
Mondays 16:00–17:00
Fridays 15:00–16:00

More Related Content

What's hot

Smart Meter Reader
Smart Meter ReaderSmart Meter Reader
Smart Meter Reader
cvs7865
 
Iot based fire alarm system
Iot based fire alarm systemIot based fire alarm system
Iot based fire alarm system
oluwatobiomotayo2
 
Connectivity for Smart Home IoT - Brad Kayton
Connectivity for Smart Home IoT - Brad KaytonConnectivity for Smart Home IoT - Brad Kayton
Connectivity for Smart Home IoT - Brad Kayton
WithTheBest
 
Fire detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino
UT-028
 
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
Track 4   session 3 - st dev con 2016 - pedestrian dead reckoningTrack 4   session 3 - st dev con 2016 - pedestrian dead reckoning
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
ST_World
 
GSM Based SMS fire alert system
GSM Based SMS fire alert systemGSM Based SMS fire alert system
GSM Based SMS fire alert system
Soumyadeep Kal
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring System
Saumya Tiwari
 
SMART WIRELESS SENSOR
SMART WIRELESS SENSORSMART WIRELESS SENSOR
SMART WIRELESS SENSOR
Smart Binary Technology LLC
 
Iot based fire department alerting system
Iot based fire department alerting systemIot based fire department alerting system
Iot based fire department alerting system
Vivek Bhakta
 
Internet of the land
Internet of the landInternet of the land
Internet of the land
Stephen Dawes
 
DATA ACQUISITION (DAQ) IN LABVIEW
DATA  ACQUISITION (DAQ) IN LABVIEWDATA  ACQUISITION (DAQ) IN LABVIEW
DATA ACQUISITION (DAQ) IN LABVIEW
Abhishek Sur
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
chetan kadiwal
 
Design and Construction of GSM Based Fire Alarm System using PIC Microcontroller
Design and Construction of GSM Based Fire Alarm System using PIC MicrocontrollerDesign and Construction of GSM Based Fire Alarm System using PIC Microcontroller
Design and Construction of GSM Based Fire Alarm System using PIC Microcontroller
ijtsrd
 
Analog vs digital
Analog vs digitalAnalog vs digital
Analog vs digital
Rojoni Akter
 
Nimble Wireless Inc. Company Overview
Nimble Wireless Inc. Company OverviewNimble Wireless Inc. Company Overview
Nimble Wireless Inc. Company Overview
Nimble Wireless Inc
 
How physical sensors in IoT work, what they can do and what they cannot.
How physical sensors in IoT work, what they can do and what they cannot.How physical sensors in IoT work, what they can do and what they cannot.
How physical sensors in IoT work, what they can do and what they cannot.
Simple Hardware
 
Internet of Things Technology for Fire Monitoring System
Internet of Things Technology  for Fire Monitoring SystemInternet of Things Technology  for Fire Monitoring System
Internet of Things Technology for Fire Monitoring System
IRJET Journal
 
IoT Introduction
IoT Introduction IoT Introduction
IoT Introduction
Citharthan Durairaj
 
IOT based Intelligence for Fire Emergency Response
IOT based Intelligence for Fire Emergency ResponseIOT based Intelligence for Fire Emergency Response
IOT based Intelligence for Fire Emergency Response
iramvaseem
 
Presentation group 1
Presentation group 1Presentation group 1
Presentation group 1
anteneh nebyu
 

What's hot (20)

Smart Meter Reader
Smart Meter ReaderSmart Meter Reader
Smart Meter Reader
 
Iot based fire alarm system
Iot based fire alarm systemIot based fire alarm system
Iot based fire alarm system
 
Connectivity for Smart Home IoT - Brad Kayton
Connectivity for Smart Home IoT - Brad KaytonConnectivity for Smart Home IoT - Brad Kayton
Connectivity for Smart Home IoT - Brad Kayton
 
Fire detection system using arduino
Fire detection system using arduino Fire detection system using arduino
Fire detection system using arduino
 
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
Track 4   session 3 - st dev con 2016 - pedestrian dead reckoningTrack 4   session 3 - st dev con 2016 - pedestrian dead reckoning
Track 4 session 3 - st dev con 2016 - pedestrian dead reckoning
 
GSM Based SMS fire alert system
GSM Based SMS fire alert systemGSM Based SMS fire alert system
GSM Based SMS fire alert system
 
IoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring SystemIoT Based Fire Alarm and Monitoring System
IoT Based Fire Alarm and Monitoring System
 
SMART WIRELESS SENSOR
SMART WIRELESS SENSORSMART WIRELESS SENSOR
SMART WIRELESS SENSOR
 
Iot based fire department alerting system
Iot based fire department alerting systemIot based fire department alerting system
Iot based fire department alerting system
 
Internet of the land
Internet of the landInternet of the land
Internet of the land
 
DATA ACQUISITION (DAQ) IN LABVIEW
DATA  ACQUISITION (DAQ) IN LABVIEWDATA  ACQUISITION (DAQ) IN LABVIEW
DATA ACQUISITION (DAQ) IN LABVIEW
 
PIR sensing with arduino
PIR sensing  with  arduinoPIR sensing  with  arduino
PIR sensing with arduino
 
Design and Construction of GSM Based Fire Alarm System using PIC Microcontroller
Design and Construction of GSM Based Fire Alarm System using PIC MicrocontrollerDesign and Construction of GSM Based Fire Alarm System using PIC Microcontroller
Design and Construction of GSM Based Fire Alarm System using PIC Microcontroller
 
Analog vs digital
Analog vs digitalAnalog vs digital
Analog vs digital
 
Nimble Wireless Inc. Company Overview
Nimble Wireless Inc. Company OverviewNimble Wireless Inc. Company Overview
Nimble Wireless Inc. Company Overview
 
How physical sensors in IoT work, what they can do and what they cannot.
How physical sensors in IoT work, what they can do and what they cannot.How physical sensors in IoT work, what they can do and what they cannot.
How physical sensors in IoT work, what they can do and what they cannot.
 
Internet of Things Technology for Fire Monitoring System
Internet of Things Technology  for Fire Monitoring SystemInternet of Things Technology  for Fire Monitoring System
Internet of Things Technology for Fire Monitoring System
 
IoT Introduction
IoT Introduction IoT Introduction
IoT Introduction
 
IOT based Intelligence for Fire Emergency Response
IOT based Intelligence for Fire Emergency ResponseIOT based Intelligence for Fire Emergency Response
IOT based Intelligence for Fire Emergency Response
 
Presentation group 1
Presentation group 1Presentation group 1
Presentation group 1
 

Viewers also liked

Safe heart
Safe heartSafe heart
Safe heart
kirtichoudhary30
 
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
Syeduzzaman Sohag
 
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
Redwan Islam
 
Smart Health & Arduino
Smart Health & ArduinoSmart Health & Arduino
Smart Health & Arduino
Lorenzo Travagliati
 
GSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEMGSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEM
sivananda sidharda
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
Yousuf Shaikh
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technology
thamil arasan
 
Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...
Engr. Md. Siddiqur Rahman Tanveer
 
Heart beat detector using arduino
Heart beat detector using arduinoHeart beat detector using arduino
Heart beat detector using arduino
Varshaa Khandagale
 
Gsm based home automation
Gsm based home automationGsm based home automation
Gsm based home automation
RAJNEESH KUMAR SALGOTRA
 
Biomedical engineering (BME)
Biomedical engineering (BME)Biomedical engineering (BME)
Biomedical engineering (BME)
Tapeshwar Yadav
 
Biomedical instrumentation PPT
Biomedical instrumentation PPTBiomedical instrumentation PPT
Biomedical instrumentation PPT
abhi1802verma
 
Gsm based lcd notice board display
Gsm based lcd notice board displayGsm based lcd notice board display
Gsm based lcd notice board displayRavi M
 
Heart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontrollerHeart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontroller
Sushil Mishra
 
Full gsm overview (modified)
Full gsm overview  (modified)Full gsm overview  (modified)
Full gsm overview (modified)
Advanced group of Institutions
 

Viewers also liked (17)

Safe heart
Safe heartSafe heart
Safe heart
 
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
Building of heart beat rate monitor &amp; object detector by md syeduzzaman s...
 
HEART RATE MONITOR
HEART RATE MONITORHEART RATE MONITOR
HEART RATE MONITOR
 
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
Biomedical Instrumentation Presentation on Infrared Emitter-Detector and Ardu...
 
Smart Health & Arduino
Smart Health & ArduinoSmart Health & Arduino
Smart Health & Arduino
 
ICIECA 2014 Paper 03
ICIECA 2014 Paper 03ICIECA 2014 Paper 03
ICIECA 2014 Paper 03
 
GSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEMGSM BASED FIRE ALARM SYSTEM
GSM BASED FIRE ALARM SYSTEM
 
Arduino based health monitoring system
Arduino based health monitoring systemArduino based health monitoring system
Arduino based health monitoring system
 
automatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technologyautomatic plant irrigation using aurdino and gsm technology
automatic plant irrigation using aurdino and gsm technology
 
Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...Continuous heart rate and body temperature monitoring system using arduino un...
Continuous heart rate and body temperature monitoring system using arduino un...
 
Heart beat detector using arduino
Heart beat detector using arduinoHeart beat detector using arduino
Heart beat detector using arduino
 
Gsm based home automation
Gsm based home automationGsm based home automation
Gsm based home automation
 
Biomedical engineering (BME)
Biomedical engineering (BME)Biomedical engineering (BME)
Biomedical engineering (BME)
 
Biomedical instrumentation PPT
Biomedical instrumentation PPTBiomedical instrumentation PPT
Biomedical instrumentation PPT
 
Gsm based lcd notice board display
Gsm based lcd notice board displayGsm based lcd notice board display
Gsm based lcd notice board display
 
Heart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontrollerHeart beat monitor using AT89S52 microcontroller
Heart beat monitor using AT89S52 microcontroller
 
Full gsm overview (modified)
Full gsm overview  (modified)Full gsm overview  (modified)
Full gsm overview (modified)
 

Similar to Introduction to Arduinos for Environmental Applications

weather monitoiring system.pptx
weather monitoiring system.pptxweather monitoiring system.pptx
weather monitoiring system.pptx
PranayBathini1
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
udhayakumarc1
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
Amit Kumer Podder
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
Future Insights
 
Tinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptxTinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptx
JayashreeSelvam5
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
Atit Patumvan
 
arduino introduction for vocational students
arduino introduction for vocational studentsarduino introduction for vocational students
arduino introduction for vocational students
anggalima5
 
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
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggersSwara Dave
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
inventionjournals
 
Study and Development of Temperature & Humidity monitoring system through Wir...
Study and Development of Temperature & Humidity monitoring system through Wir...Study and Development of Temperature & Humidity monitoring system through Wir...
Study and Development of Temperature & Humidity monitoring system through Wir...
IJERA Editor
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
DhirajPatel58
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
DeepakK547422
 
Oop2018 tutorial-stal-mo2-io t-arduino-en
Oop2018 tutorial-stal-mo2-io t-arduino-enOop2018 tutorial-stal-mo2-io t-arduino-en
Oop2018 tutorial-stal-mo2-io t-arduino-en
Michael Stal
 
Data acquisition system
Data acquisition systemData acquisition system
Data acquisition system
SANTOSH A M S
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
RaJYadav196733
 
Wireless sensors
Wireless sensorsWireless sensors
Wireless sensors
Hirtiek Sudan
 

Similar to Introduction to Arduinos for Environmental Applications (20)

weather monitoiring system.pptx
weather monitoiring system.pptxweather monitoiring system.pptx
weather monitoiring system.pptx
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
Tinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptxTinkercad Workshop PPT, Dept. of ECE.pptx
Tinkercad Workshop PPT, Dept. of ECE.pptx
 
Iot for smart agriculture
Iot for smart agricultureIot for smart agriculture
Iot for smart agriculture
 
arduino introduction for vocational students
arduino introduction for vocational studentsarduino introduction for vocational students
arduino introduction for vocational students
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Data Acquisition System and Data loggers
Data Acquisition System and Data loggersData Acquisition System and Data loggers
Data Acquisition System and Data loggers
 
WiTS Final Poster
WiTS Final PosterWiTS Final Poster
WiTS Final Poster
 
International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)International Journal of Engineering and Science Invention (IJESI)
International Journal of Engineering and Science Invention (IJESI)
 
Study and Development of Temperature & Humidity monitoring system through Wir...
Study and Development of Temperature & Humidity monitoring system through Wir...Study and Development of Temperature & Humidity monitoring system through Wir...
Study and Development of Temperature & Humidity monitoring system through Wir...
 
B1_25Jan21.pptx
B1_25Jan21.pptxB1_25Jan21.pptx
B1_25Jan21.pptx
 
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
IOT BASED AIR QUALITY INDEX MONITORING SYSTEM – MONITOR PM2.5, PM10, AND CO U...
 
B41012015
B41012015B41012015
B41012015
 
Oop2018 tutorial-stal-mo2-io t-arduino-en
Oop2018 tutorial-stal-mo2-io t-arduino-enOop2018 tutorial-stal-mo2-io t-arduino-en
Oop2018 tutorial-stal-mo2-io t-arduino-en
 
Data acquisition system
Data acquisition systemData acquisition system
Data acquisition system
 
FIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptxFIRE ALARM SYSTEM PPT.pptx
FIRE ALARM SYSTEM PPT.pptx
 
Wireless sensors
Wireless sensorsWireless sensors
Wireless sensors
 

Recently uploaded

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
Atul Kumar Singh
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
EugeneSaldivar
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
camakaiclarkmusic
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
Sandy Millin
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
kimdan468
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
Vivekanand Anglo Vedic Academy
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
SACHIN R KONDAGURI
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
Mohammed Sikander
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
JosvitaDsouza2
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
Mohd Adib Abd Muin, Senior Lecturer at Universiti Utara Malaysia
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
EduSkills OECD
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
vaibhavrinwa19
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Thiyagu K
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
Scholarhat
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
Wasim Ak
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
Atul Kumar Singh
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
Jisc
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
Nguyen Thanh Tu Collection
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
ArianaBusciglio
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
Jisc
 

Recently uploaded (20)

Guidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th SemesterGuidance_and_Counselling.pdf B.Ed. 4th Semester
Guidance_and_Counselling.pdf B.Ed. 4th Semester
 
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...TESDA TM1 REVIEWER  FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
TESDA TM1 REVIEWER FOR NATIONAL ASSESSMENT WRITTEN AND ORAL QUESTIONS WITH A...
 
CACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdfCACJapan - GROUP Presentation 1- Wk 4.pdf
CACJapan - GROUP Presentation 1- Wk 4.pdf
 
2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...2024.06.01 Introducing a competency framework for languag learning materials ...
2024.06.01 Introducing a competency framework for languag learning materials ...
 
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBCSTRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
STRAND 3 HYGIENIC PRACTICES.pptx GRADE 7 CBC
 
The French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free downloadThe French Revolution Class 9 Study Material pdf free download
The French Revolution Class 9 Study Material pdf free download
 
"Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe..."Protectable subject matters, Protection in biotechnology, Protection of othe...
"Protectable subject matters, Protection in biotechnology, Protection of othe...
 
Multithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race conditionMultithreading_in_C++ - std::thread, race condition
Multithreading_in_C++ - std::thread, race condition
 
1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx1.4 modern child centered education - mahatma gandhi-2.pptx
1.4 modern child centered education - mahatma gandhi-2.pptx
 
Chapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptxChapter 3 - Islamic Banking Products and Services.pptx
Chapter 3 - Islamic Banking Products and Services.pptx
 
Francesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptxFrancesca Gottschalk - How can education support child empowerment.pptx
Francesca Gottschalk - How can education support child empowerment.pptx
 
Acetabularia Information For Class 9 .docx
Acetabularia Information For Class 9  .docxAcetabularia Information For Class 9  .docx
Acetabularia Information For Class 9 .docx
 
Unit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdfUnit 2- Research Aptitude (UGC NET Paper I).pdf
Unit 2- Research Aptitude (UGC NET Paper I).pdf
 
Azure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHatAzure Interview Questions and Answers PDF By ScholarHat
Azure Interview Questions and Answers PDF By ScholarHat
 
Normal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of LabourNormal Labour/ Stages of Labour/ Mechanism of Labour
Normal Labour/ Stages of Labour/ Mechanism of Labour
 
Language Across the Curriculm LAC B.Ed.
Language Across the  Curriculm LAC B.Ed.Language Across the  Curriculm LAC B.Ed.
Language Across the Curriculm LAC B.Ed.
 
How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...How libraries can support authors with open access requirements for UKRI fund...
How libraries can support authors with open access requirements for UKRI fund...
 
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
BÀI TẬP BỔ TRỢ TIẾNG ANH GLOBAL SUCCESS LỚP 3 - CẢ NĂM (CÓ FILE NGHE VÀ ĐÁP Á...
 
Group Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana BuscigliopptxGroup Presentation 2 Economics.Ariana Buscigliopptx
Group Presentation 2 Economics.Ariana Buscigliopptx
 
The approach at University of Liverpool.pptx
The approach at University of Liverpool.pptxThe approach at University of Liverpool.pptx
The approach at University of Liverpool.pptx
 

Introduction to Arduinos for Environmental Applications

  • 1. First-year Physical Geography Taster Sessions Dr Thomas Smith INTELLIGENT TWEETING SENSORS: INTRODUCING ARDUINO MICROCONTROLLERS
  • 2.
  • 3. THE BASICS OF ARDUINO MICROCONTROLLERS • Open source hardware • Open source development kit • User community driven
  • 4. WHAT DO THEY DO? • Digital I/O (LEDs, switches) • Analogue I/O (resistive sensor data) • Serial connection (sensors, GPS, etc.) • Programmable from your PC/Mac/Linux • Your limit is only your creativity!!
  • 5. TERMINOLOGY • I/O Board – main microcontroller • Shield – add-on boards • Sketch – the program • Sensor – components (thermistors, etc.) • Modules – serial data (GPS module, etc.)
  • 9. COMMUNICATION SHIELDS Ethernet Shield GSM Shield Wifi Shield
  • 10. Gas Sensor Temp & Humidity Flex Sensor Fingerprint Scanner Geiger Counter SENSORS
  • 11. Photo/thermistor, infared, force sensitive resistor, Hall effect, Piezo, tilt sensor.. SENSORS
  • 13. HANDLING THE ARDUINO – HOW NOT TO DO IT! Improper Handling - NEVER!!!
  • 14. HANDLING THE ARDUINO – THE PROPER WAY Proper Handling - by the edges!!!
  • 15. TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM int ledpin = 13; int del = 2000; void setup() { pinMode(ledpin, OUTPUT); } void loop() { digitalWrite(ledpin, HIGH); delay(del); digitalWrite(ledpin, LOW); delay(del); }
  • 16. TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM int ledpin = 13; int del = 2000; void setup() { pinMode(ledpin, OUTPUT); } void loop() { digitalWrite(ledpin, HIGH); delay(del); digitalWrite(ledpin, LOW); delay(del); } Global variables Tells the Arduino that the LED is on pin 13 Delay between blinks as 2000 milliseconds Setup Tells the Arduino that pin 13 should be set as an output Loop Sets pin 13 to provide 5 volts (HIGH) Delays for specified length of time (del) Sets pin 13 to provide 0 volts (LOW) Delays for specified length of time (del)
  • 17. TRY IT OUT 1: VERY SIMPLE LED BLINKING PROGRAM int ledpin = 13; int del = 2000; void setup() { pinMode(ledpin, OUTPUT); } void loop() { digitalWrite(ledpin, HIGH); delay(del); digitalWrite(ledpin, LOW); delay(del); }
  • 18. TRY IT OUT 2: LIGHT DEPENDENT RESISTOR & LED int LDR_Pin = A0; void setup(){ Serial.begin(9600); } void loop(){ int LDRReading = analogRead(LDR_Pin); Serial.println(LDRReading); delay(500); } Serial This is a way by which your Arduino can “speak” with a computer Serial.begin opens the communications channel Serial.print/Serial.println will “print” a message
  • 19. ADDING “IF” STATEMENTS If/else Try to make your LED turn on when the light drops below a certain level… add this code to your sketch if (LDRReading < 500) { digitalWrite(ledpin, HIGH); } else { digitalWrite(ledpin, LOW); }
  • 20. TWEETING SENSORS 1: “SOMEONE’S RAIDING THE FRIDGE!”
  • 22. SENSOR NETWORK EXAMPLE: BIRMINGHAM • The primary focus of the Birmingham Urban Climate project is to provide a series of demonstration sensor networks to measure air temperature • The design is a nested network of sensors: • ~30 full weather stations [coarse array] • 131 air temperature sensors located in schools [wide array] • ~100 air temperature sensors in the CBD (approx 50 sensors per square km) [fine array] • Birmingham will become the most densely instrumented urban area in the world.
  • 23. • The coarse array consists of ~30 full weather stations located across Birmingham. • Urban equipment will be located in secure primary electricity substations (schools in areas without substations) • Further 4 in the surrounding rural areas to record background conditions (i.e. Sandwell park, rural schools) • Average spacing: 3km N COARSE ARRAY NETWORK
  • 24. • A full suite of weather variables will be measured (air temperature, humidity, wind speed, wind direction, barometric pressure, precipitation, solar radiation). • Data loggers (CR1000), communications and mountings (Campbell Scientific) • Vaisala WXT520 – precipitation, wind speed, wind direction, temperature, relative humidity, pressure • SKYE SKS1110 pyranometer • Data Communication: GSM/GPRS EQUIPMENT: WEATHER STATIONS
  • 25. WIDE AREA ARRAY NETWORK • The wide area array consists of 131 air temperature sensors located in schools • Plus a few in ‘rural’ schools /parks/farms outside conurbation • One per ONS medium super output area (MSOA) • Average spacing: 1.5 km • Data communication: WiFi via BGfL
  • 26. EQUIPMENT: AIR TEMPERATURE SENSORS • The air temperature sensors (thermistor) and radiation shield are a bespoke design from Aginova, USA. • Small and inexpensive (approx. £87) • Data is relayed via existing WiFi networks • Battery life is estimated at 3 years (checked annually) Aginova Micro • ‘Low-Cost’ Thermistor Temperature probe (-30 to 70 °C) • Precision 0.1 °C • Accuracy ± 0.3 °C (20 °C) • Stores data when |ΔTt – ΔTt-1| ≥ 0.1 °C • Ability to store approx. 10 days data • Secure Wifi data transmission back to server through school wireless network • Server hosted software collects data from whole network and stores in database
  • 27. TRY IT OUT 3: MINI WEATHER STATION Open the “WeatherStation” sketch Upload to the Arduino Check out the “Serial Monitor”
  • 28. TWEETING SENSORS 2: TEMPERATURE RECORDS How could you use an “if” statement and some extra variables to record maximum and minimum temperatures How about printing these as messages? We could then tweet the messages (to cheat, look at weatherstation_minmax)
  • 29. SOIL MOISTURE AND DROUGHT MONITORING NETWORKS
  • 30. COMPONENTS OF A FAMINE EARLY WARNING SYSTEM • Rainfall • Soil moisture • Crop condition • Socio-economics
  • 31. FEWS: RAINFALL Global Telecommunication System Rain-Gauge Network in Africa -40 -20 0 20 40 -20 0 20 40 60 Longitude (deg) Latitude(deg)
  • 35. COMBINED DATASETS TO PREDICT FAMINE Found at http://www.fews.net
  • 37. TRY IT OUT 4: SOIL MOISTURE SENSOR int delaySecs = 5; void setup() { Serial.begin(9600); Serial.println("values: 0-1024 "); } void loop() { int raw_value = analogRead(A0); Serial.print(" "); Serial.println(raw_value); delay(1000*delaySecs); }
  • 38. TRY IT OUT 5: CALIBRATED SOIL MOISTURE Convert raw output to voltage: volt_value = raw_value/1024*5 Convert voltage into moisture: moisture = (volt_value*4.44–0.5)/8.4*100 (to cheat, look at thetaprobe_calibrated)
  • 39. TWEETING SENSORS 3: “WATER ME!” How could you use an “if” statement and some extra variables to send a message when the soil is too dry?