SlideShare a Scribd company logo
Internet of Things(IoT)
workshop through wifi chip
บริษัท เรียลไอที จำกัด Mr. Pairoch Julratroiet.io
FACULTY OF INFORMATICS
MAHASARAKHAM UNIVERSITY
17 February 2017
1
Agenda
roiet.io
What is IoT
Impact
Workshop
Apply
2
What is Internet of Things
Source: OpenSAP
Internet of Things (IoT) or Internet of Everything (IoE) refers to devices or objects that are connected to the Internet, like your smartwatch,
lamp, or even your refrigerator. These devices are able to collect and transmit data via the Internet, contributing to our big data world.
roiet.io
3
Evolution of IoT
roiet.io
4
Trend
Source: OpenSAP
Source: Gartnerroiet.io
5
Note: Gartner Hype Cycle
Source: thailibrary.in.th
1
2
3
4
5
roiet.io
6
How Big is the IoT?
Some analysts estimate the number of connected
devices by 2020.
Gartner — 20 billion
Cisco — 50 billion
Intel — 200 billion
World Population: 7.5 Billion (2017)
roiet.io
7
Economic Impact
McKinsey believes that the
market for IoT could reach
$11.1 trillion by 2025roiet.io
8
IP Address Needs
• IPv4, handle a maximum 4.3 billion 

unique IP addresses
• IPv6, expands from 32 bits (IPv4) to 128 bits
• IPv6, we will have
340,282,366,920,938,463,463,374,607,431,768,211,456
unique IP addresses.
Source: Cisco
roiet.io
9
Make things connected
Wireless Wire
roiet.io
10
Wireless Wire
Make things connected
roiet.io
11
Make things connected
Wifi Chip
10101101
roiet.io
12
Wifi chip
ESP Photon
roiet.io
13
Wifi chip
ESP Photon
roiet.io
14
ESP8266 wifi chip
Hardware:
1. CPU
2. Memory (RAM/ROM)
3. General Purpose I/O (GPIO)
1 2
3
ESP-01
roiet.io
15
ESP8266 Models
roiet.io
16
ESP8266 Models
Flash = 512KB
Flash = 4MB
roiet.io
17
ESP-01
Pinout
roiet.io
18
ESP-01
GPIO
roiet.io
19
ESP-01
How to program/flashing that chip.
roiet.io
20
ESP-01
Breakout Board
roiet.io
21
ESP-12
Pinout
roiet.io
22
ESP-12
GPIO
roiet.io
23
ESP-12
Breakout Board
EspressoLite NodeMCU WeMos
(ESP-WROOM-02)
roiet.io
24
Programing Platform
AT command Arduino (C) MicroPython
roiet.io
25
Work Shop!
26
Set Environment
Download then Install ArduinoIDE (www.arduino.cc)
Start Arduino and open Preferences window.
• Enter http://arduino.esp8266.com/stable/
package_esp8266com_index.json into Additional
Board Manager URLs field.
• Open Board Manager from Tools > Board > Board
Manager and then install esp8266 by ESP8266
Community
roiet.io
27
Set Environment
Install dependency libraries
• Open Library Manager (menu Sketch > Include
Library > Manage Libraries…) then install
libraries you want.
DHT sensor library by Adafruit
Adafruit GFX Library by Adafruit
ESP8266 Oled Driver for SSD1306 display by Daniel Eichborn
HttpClient by Adrian McEwen
PubSubClient by Nick O'Leary
roiet.io
28
Set Environment
USB-Serial communication
Most microcontrollers these days have built in UARTs (universally asynchronous receiver/transmitter) that can be used to
receive and transmit data serially. UARTs transmit one bit at a time at a specified data rate (i.e. 9600bps, 115200bps, etc.).
This method of serial communication is sometimes referred to as TTL serial (transistor-transistor logic). Serial communication
at a TTL level will always remain between the limits of 0V and Vcc, which is often 5V or 3.3V.
The RS-232 standard a logic high ('1') is represented by a negative voltage from -3 to -25V, while a logic low ('0') transmits a
positive voltage that can be anywhere from +3 to +25V. On most PCs these signals swing from -13 to +13V.
Source: sparkfun.com
TTL / UART
RS-232
Sending 0b01010101
roiet.io
29
Set Environment
USB-TTL chip (ie. FTDI, CH340, CP2102 )
roiet.io
30
Set Environment
Install driver for USB-TTL chip
Mac / Linux:
Download: http://www.realitlimited.com/training/
msu/2017-02-17/IoT101/CH340_Mac.zip
roiet.io
31
Set Environment
Install driver for USB-TTL chip
Windows: 



Download: http://www.realitlimited.com/training/
msu/2017-02-17/IoT101/CH34x_Windows.zip

or http://www.wch.cn/download/CH341SER_EXE.html
roiet.io
32
Flashing Firmware
1. Download Firmware (.bin)
www.realitlimited.com/training/msu/2017-02-17/
IoT101/Firmware.zip
roiet.io
33
Flashing Firmware
2. Download Flasher

2.1 Mac / Linux:
#pull the source code from git repository
$git clone https://github.com/themadinventor/
esptool.git
$cd esptool
$sudo python setup.py install
2.2 Windows:
www.realitlimited.com/training/msu/2017-02-17/
IoT101/Flasher.zip
or https://github.com/nodemcu/nodemcu-flasher
roiet.io
34
Flashing Firmware
3. Upload Firmware into Chip
3.1 Mac / Linux:
esptool.py -b [baud-rate] -p [device] write_flash [address] [firmware-file-name]
Example:
esptool.py -p /dev/ttyUSB0 erase_flash
esptool.py -b 115200 -p /dev/ttyUSB0 write_flash 0x00000 Official-
v1.3.0.2_AT_Firmware.bin
roiet.io
35
Flashing Firmware
3. Upload Firmware into Chip
3.2 Windows:
roiet.io
36
First Test
Open Arduino IDE. Select Board & Port
roiet.io
37
First Test
Select Baud Rate (Upload Speed): 115200
roiet.io
38
Serial Monitor
Talking with Chip
roiet.io
39
AT Command
Talking with Chip
roiet.io
AT



AT+GMR (version firmware)



AT+CWMODE? (Check mode)

1=Client

2=Server(AP)

3=AP+Client



AT+CWMODE=1



AT+CWLAP (list the Access Point nearly)



AT+CWJAP=“ชื่อ AP”,”ระบุ password”



AT+CIFSR (list the obtained IP & Mac address)
40
1.1 Coding Structure
Lab1: Hello World
roiet.io
41
1.1 Wiring
Lab1: Hello World
roiet.io
Breadboard
LED
Resister
42
Pin Identification
WeMos Pin Mapping with Arduino / MicroPython
roiet.io
>Digital pins 6—11 are not shown on this diagram because they are used to connect flash memory chip on most modules. Trying to use these pins as IOs will likely cause the program to
crash.
>Note that some boards and modules (ESP-12ED, NodeMCU 1.0) also break out pins 9 and 11. These may be used as IO if flash chip works in DIO mode (as opposed to QIO, which is the
default one).

>Pin interrupts are supported through attachInterrupt, detachInterrupt functions. Interrupts may be attached to any GPIO pin, except GPIO16. Standard Arduino interrupt types are
supported: CHANGE, RISING, FALLING.
43
2.1 Analog read
Lab2: Analog
roiet.io
44
2.1 Wiring
Lab2: Analog
roiet.io
Breadboard
Joy Stick
LED
Resister
45
2.2 Analog read condition to turn on LED
Lab2: Analog
roiet.io
46
2.3 Analog Write to dimming LED
Lab2: Analog
roiet.io
47
3.1 Hello World same as Lab1
Lab3: Arduino
roiet.io
48
3.1 Hello World same as lab01-Blink
Lab3: Hello Arduino
roiet.io
49
I2C Wiring Master and Slave
Lab4: I2C
roiet.io
50
Pin Identification
Arduino Nano Pin Mapping
roiet.io
51
Pin Identification
Arduino UNO Pin Mapping
roiet.io
52
4.1 OLED (lab04.1-OLED-I2C-Polygon)
4.2 OLED (lab04.2-OLED-My-Name)
Lab4: I2C
roiet.io
53
5.1 Connect to internet as Wifi Client.
(lab05.1-Go-Internet)
Lab5: Go Internet
roiet.io
54
http://www.blynk.cc/getting-started
Blynk is an Internet of Things platform with a drag-n-drop mobile application builder that
allows to visualize sensor data and control electronics remotely.
Lab6: Blynk
roiet.io
55
Authentication by Token.
Lab6: Blynk
roiet.io
56
6.1 Wiring
Lab6: Blynk
roiet.io
Breadboard
LED
Resister
57
6.1 Wiring Enhance with Relay
Lab6: Blynk
roiet.io
Breadboard
LED
Resister Relay
58
6.1 Wiring Enhance with Relay
Lab6: Blynk
roiet.io
59
Temperature & Humidity Sensor
Lab7: DHT
roiet.io
Breadboard
DTH11/22
LED
Resister
60
8.1 Send DHT data to Thingspeak
Lab8: Thingspeak
roiet.io
61
• A machine-to-machine (M2M)/ IoT protocol.
• Lightweight publish/subscribe messaging.
• Small sensors and mobile devices.
• mqtt.org
roiet.io
MQTT
62
roiet.io
IFTTT
Source: IFTTT.COM
63
Real World Applications
Wireless Emergency Whistle
roiet.io
64
Real World Applications
Smart Socks for Diabetics
roiet.io
65
End
ATMs are considered some of the first IoT objects,
and went online as far back as 1974.
roiet.io
66
THANK YOU
pairoch.julrat
pairoch.julrat@gmail.com
realitlimited.com
095-931-4050
roiet.io
67
68

More Related Content

PDF
20180204 wf iot tutorial - small
PPTX
Internet of things
PPTX
IOT - internet of Things - August 2017
PPTX
Internet of things
PPTX
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
PPTX
Internet of things
PPTX
Internet of Things(IoT) - Introduction and Research Areas for Thesis
PPTX
Internet of things(IOT)
20180204 wf iot tutorial - small
Internet of things
IOT - internet of Things - August 2017
Internet of things
Internet-of-things- (IOT) - a-seminar - ppt - by- mohan-kumar-g
Internet of things
Internet of Things(IoT) - Introduction and Research Areas for Thesis
Internet of things(IOT)

What's hot (19)

PPTX
IOT and Application Performance Monitoring
PPTX
Iot - Internet of Things
PPTX
IOT- information Technology
PPTX
Internet of Things
PPTX
Internet of Things
PPTX
NIEC DELHI IoT Guest Lecture
PPTX
[AIIM17] Knowledge Management and the Internet of Things - Katrina Pugh
PDF
Internet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
PPTX
Internet of things (IOT)
PPTX
Internet of things - challenges scopes and solutions
PPTX
INTERNET OF THING PRESENTATION ON PUBLIC SPEAKING
PDF
FUTURE OF IOT
DOCX
The future of IoT paper
PDF
The Internet of Things (IoT) PDF
PDF
The Current and Future State of Internet of Things: Unveiling the Opportunities
PPTX
Internet of-thing
PPTX
Internet of Things, An Introduction
PPTX
Internet of Things Connectivity for Embedded Devices
PPTX
iot seminar topic
IOT and Application Performance Monitoring
Iot - Internet of Things
IOT- information Technology
Internet of Things
Internet of Things
NIEC DELHI IoT Guest Lecture
[AIIM17] Knowledge Management and the Internet of Things - Katrina Pugh
Internet of Things(IOT)_Seminar_Dr.G.Rajeshkumar
Internet of things (IOT)
Internet of things - challenges scopes and solutions
INTERNET OF THING PRESENTATION ON PUBLIC SPEAKING
FUTURE OF IOT
The future of IoT paper
The Internet of Things (IoT) PDF
The Current and Future State of Internet of Things: Unveiling the Opportunities
Internet of-thing
Internet of Things, An Introduction
Internet of Things Connectivity for Embedded Devices
iot seminar topic
Ad

Viewers also liked (18)

PPTX
"All about rfid" Internet of Things Workshop
PPT
Intrenet lessons
PPTX
The Internet (Nursing Informatics)
PPT
Implementing telehealth powerpoint.33
PPTX
Introduction to Telemedicine
PPTX
All about telemedicine
PPTX
Telemedicine
PPTX
Telemedicine: An opportunity in Healthcare in India
PPT
Telemedicine
PDF
Internet of Things Workshop
PPTX
TELEMEDICINE our vision to future
PDF
101 Use Cases for IoT
PPTX
Telemedicine presentation feb. 2014
PPTX
Telemedicine ppt
PPTX
The Internet of Things: Exploring revenue generating use cases
PDF
What exactly is the "Internet of Things"?
PDF
Introduction to Development for the Internet
"All about rfid" Internet of Things Workshop
Intrenet lessons
The Internet (Nursing Informatics)
Implementing telehealth powerpoint.33
Introduction to Telemedicine
All about telemedicine
Telemedicine
Telemedicine: An opportunity in Healthcare in India
Telemedicine
Internet of Things Workshop
TELEMEDICINE our vision to future
101 Use Cases for IoT
Telemedicine presentation feb. 2014
Telemedicine ppt
The Internet of Things: Exploring revenue generating use cases
What exactly is the "Internet of Things"?
Introduction to Development for the Internet
Ad

Similar to Internet of Things (IoT) - workshop with wifi chip (20)

PDF
Road to RIoT 2017 Medan
PPTX
Arduino interfacing with bluetooth.
PDF
IoT Workshop in Macao
PDF
IoT Workshop in Macao
PDF
IoT Intro and Demo
PPTX
Internet of Things (IoT) reference architecture using Azure -MIC - Lahore
PPTX
Microsoft's view of the Internet of Things (IoT) by Imran Shafqat
PPTX
IOT beginnners
PPTX
IOT beginnners
PPT
IoT with Arduino
PDF
manual Internet of ThingsArduino_IOTArdu
PPTX
M.Tech Internet of Things Unit - III.pptx
PDF
IoT Physical Devices and End Points.pdf
PPTX
Internet of Things
PPTX
Oop2018 tutorial-stal-mo2-io t-arduino-en
PDF
Internet of thing workshop presentation.
PDF
Iot for smart agriculture
PPTX
Using arduino and raspberry pi for internet of things
PPTX
A Globally controlled Embedded Switch node for Electrical Devices at Home by...
PPTX
A Globally controlled Embedded Switch node for Electrical Devices at Home by...
Road to RIoT 2017 Medan
Arduino interfacing with bluetooth.
IoT Workshop in Macao
IoT Workshop in Macao
IoT Intro and Demo
Internet of Things (IoT) reference architecture using Azure -MIC - Lahore
Microsoft's view of the Internet of Things (IoT) by Imran Shafqat
IOT beginnners
IOT beginnners
IoT with Arduino
manual Internet of ThingsArduino_IOTArdu
M.Tech Internet of Things Unit - III.pptx
IoT Physical Devices and End Points.pdf
Internet of Things
Oop2018 tutorial-stal-mo2-io t-arduino-en
Internet of thing workshop presentation.
Iot for smart agriculture
Using arduino and raspberry pi for internet of things
A Globally controlled Embedded Switch node for Electrical Devices at Home by...
A Globally controlled Embedded Switch node for Electrical Devices at Home by...

Recently uploaded (20)

PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Spectroscopy.pptx food analysis technology
PDF
Machine learning based COVID-19 study performance prediction
PDF
Accuracy of neural networks in brain wave diagnosis of schizophrenia
PDF
A comparative analysis of optical character recognition models for extracting...
PDF
Encapsulation_ Review paper, used for researhc scholars
PPT
Teaching material agriculture food technology
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Univ-Connecticut-ChatGPT-Presentaion.pdf
PDF
Advanced methodologies resolving dimensionality complications for autism neur...
PDF
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
PPTX
1. Introduction to Computer Programming.pptx
PDF
gpt5_lecture_notes_comprehensive_20250812015547.pdf
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PPTX
A Presentation on Artificial Intelligence
PPTX
SOPHOS-XG Firewall Administrator PPT.pptx
PDF
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
PPTX
Programs and apps: productivity, graphics, security and other tools
PPTX
OMC Textile Division Presentation 2021.pptx
PDF
August Patch Tuesday
Network Security Unit 5.pdf for BCA BBA.
Spectroscopy.pptx food analysis technology
Machine learning based COVID-19 study performance prediction
Accuracy of neural networks in brain wave diagnosis of schizophrenia
A comparative analysis of optical character recognition models for extracting...
Encapsulation_ Review paper, used for researhc scholars
Teaching material agriculture food technology
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Univ-Connecticut-ChatGPT-Presentaion.pdf
Advanced methodologies resolving dimensionality complications for autism neur...
Build a system with the filesystem maintained by OSTree @ COSCUP 2025
1. Introduction to Computer Programming.pptx
gpt5_lecture_notes_comprehensive_20250812015547.pdf
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
A Presentation on Artificial Intelligence
SOPHOS-XG Firewall Administrator PPT.pptx
TokAI - TikTok AI Agent : The First AI Application That Analyzes 10,000+ Vira...
Programs and apps: productivity, graphics, security and other tools
OMC Textile Division Presentation 2021.pptx
August Patch Tuesday

Internet of Things (IoT) - workshop with wifi chip