SlideShare a Scribd company logo
1 of 44
Download to read offline
IOT for Smart Agriculture
Knowledge Centric Co., Ltd.
Internet of Things
The Internet of Things (IoT) is a system of
interrelated computing devices,
mechanical and digital machines, objects,
animals or people that are provided with
unique identifiers (UIDs) and the ability
to transfer data over a network without
requiring human-to-human or human-to-
computer interaction.
SOURCE: https://en.wikipedia.org/wiki/Internet_of_things
Microprocessor
WHAT IS MICROCONTROLLER?
• A micro-controller is basically a small-scale computer with
generalised (and programable) input and output
• The input and outputs can be manipulated by and can manipulate the
physical world.
• Programmers work in the virtual world.
• Machinery work in the physical world.
WHAT IS MICROCONTROLLER?
Massimo Banzi,Tinker.it & Arduino Co-Founder
``Physical Computing is about prototyping with electronics, turning
sensors, actuators and microcontrollers into materials for designers
and artists.’’
``It involves the design of interactive objects that can communicate
with humans using sensors and actuators controlled by a behaviour
implemented as software running inside a microcontroller.’’
Arduino

A Prototype Platform
Single-board microcontroller, intended
to make the application of interactive
objects or environments more accessible
Designed to make the process of using
electronics multidisciplinary projects
more accessible
Circuitry which executes instructions in
programmable Integrated Circuit
Arduino Can …
• Sense the environment by receiving input from variety of sensors.
• Affect it surroundings by controlling lights, motors, and other
actuators.
• Support Standalone Applications
• Integrate with Computer / other process
Arduino / Microcontrollers a.k.a. Physical Computing
• “Arduino is a tool for making computers that can sense and control
more of the physical world than your desktop computer.”
• A micro-controller is essentially a brain – or, think of a bunch of
programmable “elves…”
• It is the guts of something like Vernier, Pasco, or Fourier
Arduino

A Prototype Platform
Single-board microcontroller, intended
to make the application of interactive
objects or environments more accessible
Designed to make the process of using
electronics multidisciplinary projects
more accessible
Circuitry which executes instructions in
programmable Integrated Circuit
Arduino Workflows
CODE COMPILE FLASH EXECUTE
source_code.ino

+

libraries
source_code.hex source_code.bin
Install the Arduino Software (IDE)
• Download the Arduino Software (IDE)
• https://www.arduino.cc/en/Main/Software
• Proceed with board specific instruction (For ESP8266)
• At Preference, 

add “http://arduino.esp8266.com/stable/package_esp8266com_index.json” 

to Additional Boards Manager URLs:
• At Board manager,

Install “”
Install the Arduino Software (IDE)
Configure ESP8266
• Menu Tools -> Board: … -> Generic ESP8266 Module
• Config parameters
• Upload Speed: “115200”
• Flash Size : 4M (1M SPIFFS)
• Flash Mode: “DIO”
• Reset Mode: “nodemcu”

Arduino

Minimum Code
setup : It is called only when the
Arduino is powered on or reset. It is
used to initialize variables and pin
modes
loop : The loop functions runs
continuously till the device is
powered off. The main logic of the
code goes here. Similar to while (1)
for micro-controller programming.
void setup() {
}
void loop() {
}
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
Hello World!!! (blink.ino)
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
void setup() {
pinMode(LED_BUILTIN, OUTPUT);
}
void loop() {
digitalWrite(LED_BUILTIN, LOW);
delay(1000);
digitalWrite(LED_BUILTIN, HIGH);
delay(2000);
}
MENU -> File -> Examples -> ESP8266 -> Blink
OFFEETIM
VARIABLE, TYPE AND VALUE
VARIABLE
VALUE
TYPE
VARIABLE
VALUE
TYPE
TYPE_NAME VARIABLE_NAME = VALUE;
int counter = 0;
String label =“mySensor”;
PIN MODES
• A pin on arduino can be set as input or output by using pinMode
function.
• pinMode(13, OUTPUT); // sets pin 13 as output pin
• pinMode(13, INPUT); // sets pin 13 as input pin
PIN MODES
PIN5
PIN4
5V
GND
GND5V
PIN16
PIN14
SERIAL

Communication
setup : It is called only when the
Arduino is powered on or reset. It is
used to initialize variables and pin
modes
loop : The loop functions runs
continuously till the device is
powered off. The main logic of the
code goes here. Similar to while (1)
for micro-controller programming.
SERIAL COMMUNICATION
Hello World Again!!! (serial.ino)
01:
02:
03:
04:
05:
06:
07:
08:
09:
10:
11:
12:
void setup()
{
Serial.begin(9600);
Serial.println("Hello world!");
}
void loop()
{
}
Serial.ino
Serial Communication
Open the Serial Monitor and 

Upload the Program
DELAY
• Delays are essential in
embedded systems, unlike
high-performance systems
where we want the program
to execute as fast as possible
• Delays are used to
synchronize events, or read
inputs with a specific
sampling freqency (more on
Bus/Wait I/O)
• Arduino example:
delay(int milliseconds)
//creates a delay in ms
delayMicroseconds(int microseconds)
//creates a delay in µs
delay(1000); //one second delay
delayMicroseconds(10); //10 µs delay
LET’s Play
CONDITION STATEMENT
if(condition_expression){
// do stuff if the condition is true
} else {
// do stuff if the condition is true
}
LET’s Play
WHILE LOOP
while(condition_expression){
statement;
}
LET’s Play
Function Declartion
if(condition_expression){
// do stuff if the condition is true
} else {
// do stuff if the condition is true
}
LET’s Play
OFFEETIM
INPUT vs. OUTPUT
Inputs is a signal / information going
into the board.

Examples: Buttons Switches, Light
Sensors, Flex Sensors, Humidity
Sensors, Temperature Sensors…
Output is any signal exiting the board.

Examples: LEDs, DC motor, servo
motor, a piezo buzzer, relay, an RGB
LED
Input and Output
A Sensor is a converter that measures
a physical quantity and converts it into
a signal which can be read by an
observer or by an (today mostly
electronic) instrument.

An Actuator is a type of motor for
moving or controlling a mechanism or
system. It is operated by a source of
energy, typically electric current,
hydraulic fluid pressure, or pneumatic
pressure, and converts that energy
into motion. An actuator is the
mechanism by which a control system
acts upon an environment.
Sensor Calibration
• Resolution: The smallest change it can detect
in the quantity that it is measuring. The
followig formula may be used (where S is the
measurment span, e.g., 0-100deg.C):

• Accuracy: How close the measured value is
the the actual/real value, eg., ±0.1 %
• Calibration: A comparison between measurements. One of known magnitude
or correctness made or set with one device and another measurement made in
as similar a way as possible with a second device. The device with the known
or assigned correctness is called the standard. The second device is the unit
under test, test instrument, or any of several other names for the device being
calibrated.
Digital Sensor
Digital sensors are more straight forward than
Analog
No matter what the sensor there are only two
settings: On and Off
Signal is always either HIGH (On) or LOW (Off)
Voltage signal for HIGH will be a little less than 3.3V
on your ESP
Voltage signal for LOW will be 0V on most systems
void loop()
{
int buttonState = digitalRead(5);
if(buttonState == LOW)
{ // do something
}
else
{ // do something else
}
}
Relay Control
KC-TH-280
Digital interface I2C (up to 3.4MHz)
Supply voltage 1.71 to 3.6V
Current consumption 3.6 μA @ 1 Hz humidity, pressure and temperature
Operating range -40...+85 °C, 0...100 % rel. humidity, 300...1100 hPa
Response time1 1 s
Accuracy tolerance1 ±3 % relative humidity
Hysteresis 1 ±1% relative humidity
RMS Noise2 0.2 Pa, equiv. to 1.7 cm
Offset temperature coefficient2 ±1.5 Pa/K, equiv. to ±12.6 cm at 1 °C temperature change
1 parameters for humidity sensor
2 parameters for pressure sensor
Red wire -- Power Supply
Black wire -- GND
Green wire – SCL
Blue wire --- SDA
GND
VDD
SCL
SDA KC-TH-280MCU
DIGITAL HUMIDITY, PRESSURE

AND TEMPERATURE SENSOR
https://github.com/adafruit/Adafruit_BME280_Library
I2C Scanner
OFFEETIM

More Related Content

What's hot

Io t based smart irrigation system
Io t based smart irrigation systemIo t based smart irrigation system
Io t based smart irrigation systemKrishna Vala
 
Application of IOT in Smart Agriculture
Application of IOT in Smart AgricultureApplication of IOT in Smart Agriculture
Application of IOT in Smart Agriculturenazimshaikh29
 
iot based low cost smart irrigation system
iot based low cost smart irrigation systemiot based low cost smart irrigation system
iot based low cost smart irrigation systemCloudTechnologies
 
IRJET- Smart Irrigation System using IoT and Raspberry PI
IRJET- Smart Irrigation System using IoT and Raspberry PIIRJET- Smart Irrigation System using IoT and Raspberry PI
IRJET- Smart Irrigation System using IoT and Raspberry PIIRJET Journal
 
@Smart farming using io t
@Smart farming using io t@Smart farming using io t
@Smart farming using io tArun Singh
 
Automatic Irrigation System using IoT. 
Automatic Irrigation System using IoT. Automatic Irrigation System using IoT. 
Automatic Irrigation System using IoT. IRJET Journal
 
Internet of things and wireless sensor networks
Internet of things and wireless sensor networksInternet of things and wireless sensor networks
Internet of things and wireless sensor networksRonald Mutezo
 
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...DevClub_lv
 
IRJET- Cloud based Intelligent Plant Monitoring Device
IRJET- Cloud based Intelligent Plant Monitoring DeviceIRJET- Cloud based Intelligent Plant Monitoring Device
IRJET- Cloud based Intelligent Plant Monitoring DeviceIRJET Journal
 
Smart automated irrigation system ppt
Smart automated irrigation system pptSmart automated irrigation system ppt
Smart automated irrigation system pptAutoNextAutoHub
 
Modern agriculture with Internet Of Things
Modern agriculture with Internet Of ThingsModern agriculture with Internet Of Things
Modern agriculture with Internet Of ThingsMKMK40
 
IRJET- Smart Agriculture Solution using Lora and IoT
IRJET- Smart Agriculture Solution using Lora and IoTIRJET- Smart Agriculture Solution using Lora and IoT
IRJET- Smart Agriculture Solution using Lora and IoTIRJET Journal
 
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI IAEME Publication
 
Smart irrigation system using internet of things
Smart irrigation system using internet of thingsSmart irrigation system using internet of things
Smart irrigation system using internet of thingsBasavaraj Galagi
 

What's hot (20)

Smart irrigation ppt
Smart irrigation pptSmart irrigation ppt
Smart irrigation ppt
 
Smart irrigation system
Smart irrigation systemSmart irrigation system
Smart irrigation system
 
Io t based smart irrigation system
Io t based smart irrigation systemIo t based smart irrigation system
Io t based smart irrigation system
 
Application of IOT in Smart Agriculture
Application of IOT in Smart AgricultureApplication of IOT in Smart Agriculture
Application of IOT in Smart Agriculture
 
iot based low cost smart irrigation system
iot based low cost smart irrigation systemiot based low cost smart irrigation system
iot based low cost smart irrigation system
 
Smart Irrigation System
Smart Irrigation SystemSmart Irrigation System
Smart Irrigation System
 
IRJET- Smart Irrigation System using IoT and Raspberry PI
IRJET- Smart Irrigation System using IoT and Raspberry PIIRJET- Smart Irrigation System using IoT and Raspberry PI
IRJET- Smart Irrigation System using IoT and Raspberry PI
 
@Smart farming using io t
@Smart farming using io t@Smart farming using io t
@Smart farming using io t
 
Automatic Irrigation System using IoT. 
Automatic Irrigation System using IoT. Automatic Irrigation System using IoT. 
Automatic Irrigation System using IoT. 
 
Internet of things and wireless sensor networks
Internet of things and wireless sensor networksInternet of things and wireless sensor networks
Internet of things and wireless sensor networks
 
Smart Irrigation System
Smart Irrigation SystemSmart Irrigation System
Smart Irrigation System
 
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...
Emergence of IOT & Cloud – Azure by Narendra Sharma at Cloud focused 76th Dev...
 
Smart irrigation system
Smart irrigation systemSmart irrigation system
Smart irrigation system
 
IRJET- Cloud based Intelligent Plant Monitoring Device
IRJET- Cloud based Intelligent Plant Monitoring DeviceIRJET- Cloud based Intelligent Plant Monitoring Device
IRJET- Cloud based Intelligent Plant Monitoring Device
 
Smart automated irrigation system ppt
Smart automated irrigation system pptSmart automated irrigation system ppt
Smart automated irrigation system ppt
 
Modern agriculture with Internet Of Things
Modern agriculture with Internet Of ThingsModern agriculture with Internet Of Things
Modern agriculture with Internet Of Things
 
Smart garden
Smart gardenSmart garden
Smart garden
 
IRJET- Smart Agriculture Solution using Lora and IoT
IRJET- Smart Agriculture Solution using Lora and IoTIRJET- Smart Agriculture Solution using Lora and IoT
IRJET- Smart Agriculture Solution using Lora and IoT
 
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI
WEB BASED SMART IRRIGATION SYSTEM USING RASPBERRY PI
 
Smart irrigation system using internet of things
Smart irrigation system using internet of thingsSmart irrigation system using internet of things
Smart irrigation system using internet of things
 

Similar to IoT for Smart Agriculture - IOT Devices for Farm Monitoring

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.pptxJayashreeSelvam5
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfssusere5db05
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingEmmanuel Obot
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixelssdcharle
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slidesmkarlin14
 
Arduino slides
Arduino slidesArduino slides
Arduino slidessdcharle
 
Week2 fundamental of IoT
Week2 fundamental of IoTWeek2 fundamental of IoT
Week2 fundamental of IoTsomphongt
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Future Insights
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseElaf A.Saeed
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming FamiliarizationAmit Kumer Podder
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programmingPunit Goswami
 
EMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfEMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfNadiSarj2
 

Similar to IoT for Smart Agriculture - IOT Devices for Farm Monitoring (20)

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
 
arduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdfarduinocourse-180308074529 (1).pdf
arduinocourse-180308074529 (1).pdf
 
Arduino course
Arduino courseArduino course
Arduino course
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
IOT beginnners
IOT beginnnersIOT beginnners
IOT beginnners
 
Introduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and ProgrammingIntroduction to Arduino Hardware and Programming
Introduction to Arduino Hardware and Programming
 
Arduino Slides With Neopixels
Arduino Slides With NeopixelsArduino Slides With Neopixels
Arduino Slides With Neopixels
 
ARDUINO Presentation1.pptx
ARDUINO Presentation1.pptxARDUINO Presentation1.pptx
ARDUINO Presentation1.pptx
 
Arduino Workshop Slides
Arduino Workshop SlidesArduino Workshop Slides
Arduino Workshop Slides
 
Arduino slides
Arduino slidesArduino slides
Arduino slides
 
Week2 fundamental of IoT
Week2 fundamental of IoTWeek2 fundamental of IoT
Week2 fundamental of IoT
 
The arduino and iot
The arduino and iotThe arduino and iot
The arduino and iot
 
Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)Microcontrollers (Rex St. John)
Microcontrollers (Rex St. John)
 
Embedded system introduction - Arduino Course
Embedded system introduction - Arduino CourseEmbedded system introduction - Arduino Course
Embedded system introduction - Arduino Course
 
Introduction of Arduino Uno
Introduction of Arduino UnoIntroduction of Arduino Uno
Introduction of Arduino Uno
 
Arduino Programming Familiarization
Arduino Programming FamiliarizationArduino Programming Familiarization
Arduino Programming Familiarization
 
Arduino and c programming
Arduino and c programmingArduino and c programming
Arduino and c programming
 
arduino4.ppt
arduino4.pptarduino4.ppt
arduino4.ppt
 
EMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdfEMBEDDED_SYSTEM_INTRODUCTION.pdf
EMBEDDED_SYSTEM_INTRODUCTION.pdf
 
Iot Workshop NITT 2015
Iot Workshop NITT 2015Iot Workshop NITT 2015
Iot Workshop NITT 2015
 

More from Atit Patumvan

An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)Atit Patumvan
 
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตแบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตAtit Patumvan
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics toolsAtit Patumvan
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics toolsAtit Patumvan
 
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556Atit Patumvan
 
Chapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationChapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationAtit Patumvan
 
Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6Atit Patumvan
 
Computer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsComputer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsAtit Patumvan
 
Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Atit Patumvan
 
Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2Atit Patumvan
 
Computer Programming: Chapter 1
Computer Programming: Chapter 1Computer Programming: Chapter 1
Computer Programming: Chapter 1Atit Patumvan
 
การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1Atit Patumvan
 

More from Atit Patumvan (20)

An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)An Overview of eZee Burrp! (Philus Limited)
An Overview of eZee Burrp! (Philus Limited)
 
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ตแบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
แบบฝึกหัดวิชา Theory of Computation ชุดที่ 1 เซ็ต
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics tools
 
Chapter 1 mathmatics tools
Chapter 1 mathmatics toolsChapter 1 mathmatics tools
Chapter 1 mathmatics tools
 
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
รายงานการประเมินคุณภาพภายใน ปีงบประมาณ 2556
 
Chapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computationChapter 0 introduction to theory of computation
Chapter 0 introduction to theory of computation
 
Media literacy
Media literacyMedia literacy
Media literacy
 
Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)Chapter 01 mathmatics tools (slide)
Chapter 01 mathmatics tools (slide)
 
การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8การบริหารเชิงคุณภาพ ชุดที่ 8
การบริหารเชิงคุณภาพ ชุดที่ 8
 
การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7การบริหารเชิงคุณภาพ ชุดที่ 7
การบริหารเชิงคุณภาพ ชุดที่ 7
 
การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6การบริหารเชิงคุณภาพ ชุดที่ 6
การบริหารเชิงคุณภาพ ชุดที่ 6
 
Computer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : MethodsComputer Programming Chapter 5 : Methods
Computer Programming Chapter 5 : Methods
 
Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops Computer Programming Chapter 4 : Loops
Computer Programming Chapter 4 : Loops
 
Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)Introduction to Java EE (J2EE)
Introduction to Java EE (J2EE)
 
การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5การบริหารเชิงคุณภาพ ชุดที่ 5
การบริหารเชิงคุณภาพ ชุดที่ 5
 
การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4การบริหารเชิงคุณภาพ ชุดที่ 4
การบริหารเชิงคุณภาพ ชุดที่ 4
 
การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3การบริหารเชิงคุณภาพ ชุดที่ 3
การบริหารเชิงคุณภาพ ชุดที่ 3
 
การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2การบริหารเชิงคุณภาพ ชุดที่ 2
การบริหารเชิงคุณภาพ ชุดที่ 2
 
Computer Programming: Chapter 1
Computer Programming: Chapter 1Computer Programming: Chapter 1
Computer Programming: Chapter 1
 
การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1การบริหารเชิงคุณภาพ ชุดที่ 1
การบริหารเชิงคุณภาพ ชุดที่ 1
 

Recently uploaded

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersThousandEyes
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDGMarianaLemus7
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsRizwan Syed
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Alan Dix
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Enterprise Knowledge
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 3652toLead Limited
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksSoftradix Technologies
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsAndrey Dotsenko
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024BookNet Canada
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Mattias Andersson
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticscarlostorres15106
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfjimielynbastida
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...shyamraj55
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphNeo4j
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationRidwan Fadjar
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Wonjun Hwang
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024The Digital Insurer
 

Recently uploaded (20)

Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for PartnersEnhancing Worker Digital Experience: A Hands-on Workshop for Partners
Enhancing Worker Digital Experience: A Hands-on Workshop for Partners
 
APIForce Zurich 5 April Automation LPDG
APIForce Zurich 5 April  Automation LPDGAPIForce Zurich 5 April  Automation LPDG
APIForce Zurich 5 April Automation LPDG
 
Scanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL CertsScanning the Internet for External Cloud Exposures via SSL Certs
Scanning the Internet for External Cloud Exposures via SSL Certs
 
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...Swan(sea) Song – personal research during my six years at Swansea ... and bey...
Swan(sea) Song – personal research during my six years at Swansea ... and bey...
 
Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024Designing IA for AI - Information Architecture Conference 2024
Designing IA for AI - Information Architecture Conference 2024
 
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
Tech-Forward - Achieving Business Readiness For Copilot in Microsoft 365
 
Benefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other FrameworksBenefits Of Flutter Compared To Other Frameworks
Benefits Of Flutter Compared To Other Frameworks
 
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptxE-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
E-Vehicle_Hacking_by_Parul Sharma_null_owasp.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
DMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special EditionDMCC Future of Trade Web3 - Special Edition
DMCC Future of Trade Web3 - Special Edition
 
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
New from BookNet Canada for 2024: BNC BiblioShare - Tech Forum 2024
 
Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?Are Multi-Cloud and Serverless Good or Bad?
Are Multi-Cloud and Serverless Good or Bad?
 
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptxVulnerability_Management_GRC_by Sohang Sengupta.pptx
Vulnerability_Management_GRC_by Sohang Sengupta.pptx
 
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmaticsKotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
Kotlin Multiplatform & Compose Multiplatform - Starter kit for pragmatics
 
Science&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdfScience&tech:THE INFORMATION AGE STS.pdf
Science&tech:THE INFORMATION AGE STS.pdf
 
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
Automating Business Process via MuleSoft Composer | Bangalore MuleSoft Meetup...
 
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge GraphSIEMENS: RAPUNZEL – A Tale About Knowledge Graph
SIEMENS: RAPUNZEL – A Tale About Knowledge Graph
 
My Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 PresentationMy Hashitalk Indonesia April 2024 Presentation
My Hashitalk Indonesia April 2024 Presentation
 
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
Bun (KitWorks Team Study 노별마루 발표 2024.4.22)
 
My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024My INSURER PTE LTD - Insurtech Innovation Award 2024
My INSURER PTE LTD - Insurtech Innovation Award 2024
 

IoT for Smart Agriculture - IOT Devices for Farm Monitoring

  • 1. IOT for Smart Agriculture Knowledge Centric Co., Ltd.
  • 2.
  • 3. Internet of Things The Internet of Things (IoT) is a system of interrelated computing devices, mechanical and digital machines, objects, animals or people that are provided with unique identifiers (UIDs) and the ability to transfer data over a network without requiring human-to-human or human-to- computer interaction. SOURCE: https://en.wikipedia.org/wiki/Internet_of_things
  • 5. WHAT IS MICROCONTROLLER? • A micro-controller is basically a small-scale computer with generalised (and programable) input and output • The input and outputs can be manipulated by and can manipulate the physical world. • Programmers work in the virtual world. • Machinery work in the physical world.
  • 7. Massimo Banzi,Tinker.it & Arduino Co-Founder ``Physical Computing is about prototyping with electronics, turning sensors, actuators and microcontrollers into materials for designers and artists.’’ ``It involves the design of interactive objects that can communicate with humans using sensors and actuators controlled by a behaviour implemented as software running inside a microcontroller.’’
  • 8. Arduino
 A Prototype Platform Single-board microcontroller, intended to make the application of interactive objects or environments more accessible Designed to make the process of using electronics multidisciplinary projects more accessible Circuitry which executes instructions in programmable Integrated Circuit
  • 9. Arduino Can … • Sense the environment by receiving input from variety of sensors. • Affect it surroundings by controlling lights, motors, and other actuators. • Support Standalone Applications • Integrate with Computer / other process
  • 10. Arduino / Microcontrollers a.k.a. Physical Computing • “Arduino is a tool for making computers that can sense and control more of the physical world than your desktop computer.” • A micro-controller is essentially a brain – or, think of a bunch of programmable “elves…” • It is the guts of something like Vernier, Pasco, or Fourier
  • 11. Arduino
 A Prototype Platform Single-board microcontroller, intended to make the application of interactive objects or environments more accessible Designed to make the process of using electronics multidisciplinary projects more accessible Circuitry which executes instructions in programmable Integrated Circuit
  • 12. Arduino Workflows CODE COMPILE FLASH EXECUTE source_code.ino
 +
 libraries source_code.hex source_code.bin
  • 13. Install the Arduino Software (IDE) • Download the Arduino Software (IDE) • https://www.arduino.cc/en/Main/Software • Proceed with board specific instruction (For ESP8266) • At Preference, 
 add “http://arduino.esp8266.com/stable/package_esp8266com_index.json” 
 to Additional Boards Manager URLs: • At Board manager,
 Install “”
  • 14. Install the Arduino Software (IDE)
  • 15. Configure ESP8266 • Menu Tools -> Board: … -> Generic ESP8266 Module • Config parameters • Upload Speed: “115200” • Flash Size : 4M (1M SPIFFS) • Flash Mode: “DIO” • Reset Mode: “nodemcu”

  • 16. Arduino
 Minimum Code setup : It is called only when the Arduino is powered on or reset. It is used to initialize variables and pin modes loop : The loop functions runs continuously till the device is powered off. The main logic of the code goes here. Similar to while (1) for micro-controller programming. void setup() { } void loop() { } 01: 02: 03: 04: 05: 06: 07: 08: 09: 10: 11: 12:
  • 17. Hello World!!! (blink.ino) 01: 02: 03: 04: 05: 06: 07: 08: 09: 10: 11: 12: void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, LOW); delay(1000); digitalWrite(LED_BUILTIN, HIGH); delay(2000); } MENU -> File -> Examples -> ESP8266 -> Blink
  • 19. VARIABLE, TYPE AND VALUE VARIABLE VALUE TYPE VARIABLE VALUE TYPE TYPE_NAME VARIABLE_NAME = VALUE; int counter = 0; String label =“mySensor”;
  • 20. PIN MODES • A pin on arduino can be set as input or output by using pinMode function. • pinMode(13, OUTPUT); // sets pin 13 as output pin • pinMode(13, INPUT); // sets pin 13 as input pin
  • 22. SERIAL
 Communication setup : It is called only when the Arduino is powered on or reset. It is used to initialize variables and pin modes loop : The loop functions runs continuously till the device is powered off. The main logic of the code goes here. Similar to while (1) for micro-controller programming.
  • 24. Hello World Again!!! (serial.ino) 01: 02: 03: 04: 05: 06: 07: 08: 09: 10: 11: 12: void setup() { Serial.begin(9600); Serial.println("Hello world!"); } void loop() { } Serial.ino
  • 25. Serial Communication Open the Serial Monitor and 
 Upload the Program
  • 26. DELAY • Delays are essential in embedded systems, unlike high-performance systems where we want the program to execute as fast as possible • Delays are used to synchronize events, or read inputs with a specific sampling freqency (more on Bus/Wait I/O) • Arduino example: delay(int milliseconds) //creates a delay in ms delayMicroseconds(int microseconds) //creates a delay in µs delay(1000); //one second delay delayMicroseconds(10); //10 µs delay
  • 28. CONDITION STATEMENT if(condition_expression){ // do stuff if the condition is true } else { // do stuff if the condition is true }
  • 32. Function Declartion if(condition_expression){ // do stuff if the condition is true } else { // do stuff if the condition is true }
  • 35. INPUT vs. OUTPUT Inputs is a signal / information going into the board. Examples: Buttons Switches, Light Sensors, Flex Sensors, Humidity Sensors, Temperature Sensors… Output is any signal exiting the board. Examples: LEDs, DC motor, servo motor, a piezo buzzer, relay, an RGB LED
  • 36. Input and Output A Sensor is a converter that measures a physical quantity and converts it into a signal which can be read by an observer or by an (today mostly electronic) instrument. An Actuator is a type of motor for moving or controlling a mechanism or system. It is operated by a source of energy, typically electric current, hydraulic fluid pressure, or pneumatic pressure, and converts that energy into motion. An actuator is the mechanism by which a control system acts upon an environment.
  • 37. Sensor Calibration • Resolution: The smallest change it can detect in the quantity that it is measuring. The followig formula may be used (where S is the measurment span, e.g., 0-100deg.C): • Accuracy: How close the measured value is the the actual/real value, eg., ±0.1 % • Calibration: A comparison between measurements. One of known magnitude or correctness made or set with one device and another measurement made in as similar a way as possible with a second device. The device with the known or assigned correctness is called the standard. The second device is the unit under test, test instrument, or any of several other names for the device being calibrated.
  • 38. Digital Sensor Digital sensors are more straight forward than Analog No matter what the sensor there are only two settings: On and Off Signal is always either HIGH (On) or LOW (Off) Voltage signal for HIGH will be a little less than 3.3V on your ESP Voltage signal for LOW will be 0V on most systems void loop() { int buttonState = digitalRead(5); if(buttonState == LOW) { // do something } else { // do something else } }
  • 40. KC-TH-280 Digital interface I2C (up to 3.4MHz) Supply voltage 1.71 to 3.6V Current consumption 3.6 μA @ 1 Hz humidity, pressure and temperature Operating range -40...+85 °C, 0...100 % rel. humidity, 300...1100 hPa Response time1 1 s Accuracy tolerance1 ±3 % relative humidity Hysteresis 1 ±1% relative humidity RMS Noise2 0.2 Pa, equiv. to 1.7 cm Offset temperature coefficient2 ±1.5 Pa/K, equiv. to ±12.6 cm at 1 °C temperature change 1 parameters for humidity sensor 2 parameters for pressure sensor Red wire -- Power Supply Black wire -- GND Green wire – SCL Blue wire --- SDA GND VDD SCL SDA KC-TH-280MCU DIGITAL HUMIDITY, PRESSURE
 AND TEMPERATURE SENSOR https://github.com/adafruit/Adafruit_BME280_Library
  • 42.
  • 43.