SlideShare a Scribd company logo
Road to Republic of IoT - ESP32 Programming and LoRa
RIoT

Hackathon
Technologies:
Programming for
ESP32
RoadToRIoT - Bogor, Jul 15, 2017
fb.com/andri.yadi | a at dycode dot com
http://andriyadi.me | http://dycodex.com
Andri Yadi
makestro.comCEO
ambassador
Things Connectivity People & Processes
Data Data
Internet of Things
Things Connectivity
Let’s focus on these
NatureSmart Farming Smart City EducationSecurity
Smart Living Maritime
RIoT Hackathon Categories
Transportation Healthcare
Industrial IoT DifableEngagement
Fintech &

E-Commerce
Sport
RIoT

Hackathon
Hardware Kits
ESP8266Arduino ESP32
EspruinoParticle.io

Photon, Electron
Arduino 101
Indonesia-made

Bluino
MXChip IoT
DevKit 
Raspberry Pi
and many

more…
Development Boards
ESP32Arduino 101
RIoT Development Board
RIoT Dev Board - ESP32
TOP SECRET :)
*Not really a secret now
RIoT Dev Board - ESP32
RIoT Dev Board - ESP32
RIoT Sensors & Actuators
Ultrasonic
Relay
LEDs
Motor shield
Gas
Motion
NFC
Buzzer
pH
Heart rate
Finger print
OLED Display
Speaker
Motor
VibrationAlora v2
Alora Kit
Alora Kit
RIoT

Hardware
Connectivity
Wireless modulation technology
Physical (PHY) layer for long range
communications
Operates in the license-free ISM bands all
around the world
• 433, 868, 915 Mhz
• Regulated (power, duty-cycle, bandwidth) E.g: EU:
0.1% or 1% per sub-band duty-cycle limitation (per
hour)
Sensitivity: -142 dBm
Link budget (EU): 156 dB
We’ll use LoRa
ISM Regulation ISM worldwide regulation 7
Output Power vs Duty Cycle
Countries Frequency band review Max. output power
EU 868 MHz 14 dBm
USA 915 MHz 20 dBm
Korea 900 MHz
14 dBm
Japan 920 MHz
Malaysia 862 to 875 MHz
20 dBm
Philippines 868 MHz
Vietnam 920 to 925 MHz
India 865 to 867 MHz
Singapore 922 MHz
Thailand 920 to 925 MHz
Indonesia 922 MHz
ANZ 915 to 928 MHz
Taiwan 920 to 925 MHz
China 470 to 510 MHz 17 dBm
919 to 923MHz
Communications protocol & architecture
utilizing the LoRa physical layer
Data rates are from 300bps to 5.5kbps 

Has 2 high-speed channels at 11kbps and 50kbps
(using FSK modulation)
Secure bi-directional communication
What is LoRaWAN
LoRa
LoRaWAN

Gateway Network

Server
Your
Application

Servers
Internet

(IP/UDP)Node
LoRa/LoRaWAN Architecture
MQTT
9B 09 05 24 4B 
1D 18 09 32 1E 
65 A3 00 00 79 
01 FF FF 55 B8 
D2 BB AB 47 4A 
00 C7 02 E5 FE 
D6 FF F6 FF F5 
FF 2B E2 50 00
9B 09 05 24 4B 
1D 18 09 32 1E 
65 A3 00 00 79 
01 FF FF 55 B8 
D2 BB AB 47 4A 
00 C7 02 E5 FE 
D6 FF F6 FF F5 
FF 2B E2 50 00
{
“lux”, 31.21,
“temp”: 23.21,

“lat”: -6.121,

…
}
Node
On-site Backend
LoRa/LoRaWAN Module
RIoT

Hackathon
ESP32
Road to Republic of IoT - ESP32 Programming and LoRa
ESP8266 vs ESP32
CPU: Tensilica Xtensa 32-bit LX6, up to 240
MHz, 600 DMIPS, DUAL cores
3.3V operating voltage
Internal memory: 520Kb RAM, 448Kb
ROM, 8KB RTC slow & fast RAM
External Flash: 512KB to (4 × 16) MiB
WiFi (802.11): b/g/n/e/i
Bluetooth v4.2 BR/EDR & BLE
Peripherals: GPIOs, PWM, ADC, DAC, I2S,
UART, SPI, I2C, CAN, RMII, Cap Touch
ESP32 Specs
ESP32 Modules
and
more…
ESP32 Boards
Widora Air
Espressif DevKit
Nano32 Pesky ESP32
ESP32 Things ESP32 N1 FiPyESP320
and many
more…
Hornbill ARS01119BHuzzah AnalogLamb ESP32
Node32S FireBeetle D-duino-32
ESP32 Boards
and many
more…
Programming Languages
Development Platforms
ESP-IDF
Development Tools/IDE
DEMO
Mongoose OS - mJS
load('api_neopixel.js');
let pin = 27, numPixels = 1, colorOrder = NeoPixel.GRB;
let strip = NeoPixel.create(pin, numPixels, colorOrder);
function turnNeo(val) {
if (val) {
strip.setPixel(0 /* pixel */, 92, 34, 56);
}
else {
strip.clear();
}
strip.show();
}
turnNeo(true);
Turn on that Neopixel!
Mongoose OS - mJS
GPIO.set_mode(0, GPIO.MODE_INPUT);
GPIO.set_int_handler(0, GPIO.INT_EDGE_ANY, function(pin) {
print('Pin', pin, 'got interrupt');
let value = GPIO.read(0);
print('Value:', value);
turnNeo(value);
}, null);
GPIO.enable_int(0);
Handling GPIO interrupt
Mongoose OS - mJS
GPIO.set_mode(0, GPIO.MODE_INPUT);
GPIO.set_int_handler(0, GPIO.INT_EDGE_ANY, function(pin) {
print('Pin', pin, 'got interrupt');
let value = GPIO.read(0);
print('Value:', value);
turnNeo(value);
let topic = '/devices/' + Cfg.get('device.id') + '/events';
let message = '{"button": ' + value + "}" ;
let ok = MQTT.pub(topic, message, 1);
print('Published:', ok ? 'yes' : 'no', 'topic:', topic, 'message:', message);
}, null);
GPIO.enable_int(0);
Handling GPIO interrupt & publish to MQTT
Internet
of
Things
How to start?
Make your own!

BY SolvING your own problem
Start with…
Be a maker!
*Disclaimer: I have no data of all players in Indonesia yet. Sorry if you’re not listed.

and I’m talking about (electronics) maker-related players in general, not only IoT.
Indonesia
Indonesia
Join Communities
Makers.ID
A movement to “democratize”
knowledge, hardware kit, and software
to help makers to start making in
hardware.
Disclosure: it’s initiated and supported by DycodeX
ENABLING MAKER MOVEMENT
Learning
Shop
Community
Software
Projects, tutorials, videos, news,

professional trainings
Hardware marketplace: kits,
devboards, maker tools
IoT Cloud infrastructure, software 

libraries, sample code
Offline meetups, seminars,
training/hands-on, challenges
Use development board
+ modules!
ESPectro + LoRa + Alora Kit
makestroid
makestroid
makestroid
..and for sure,
JOIN…
Road to Republic of IoT - ESP32 Programming and LoRa
x@dycode.com | http://dycodex.com
IoT & maker movement enabler
DycodeX IS HIRING!
Interns are welcome

More Related Content

PDF
Internet of Things - Technicals
PDF
Esp32 cam arduino-123
PDF
Road to Republic of IoT - IoT Technologies & Machine Learning
PDF
IT Solution through IoT Development
PDF
Boards for the IoT-Prototyping
PDF
Echelon Indonesia 2016 - Innovation Through Opportunities in IoT & Arduino
PDF
Rdl esp32 development board trainer kit
PDF
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core
Internet of Things - Technicals
Esp32 cam arduino-123
Road to Republic of IoT - IoT Technologies & Machine Learning
IT Solution through IoT Development
Boards for the IoT-Prototyping
Echelon Indonesia 2016 - Innovation Through Opportunities in IoT & Arduino
Rdl esp32 development board trainer kit
Hands-on Labs: Raspberry Pi 2 + Windows 10 IoT Core

What's hot (20)

PDF
Introduction to AIoT & TinyML - with Arduino
PPTX
IoT Devices, Which One is Right for You to Learn
PPTX
Introduction to Internet of Things Hardware
PPTX
Introduction to Arduino
PDF
Intro arduino English
PDF
Arduino presentation
PDF
Ruby Arduino (RubyConfIndia 2013)
PPTX
Arduino presentation
PDF
Confusion of Things — The IoT Hardware Kerfuffle
PPT
PPTX
Microcontroller arduino uno board
PDF
30120140506004
PPT
Arduino
PPT
Introduction To Arduino
PDF
Introducing... Arduino
PDF
IoT Getting Started with Intel® IoT Devkit
PPTX
Introduction to Arduino
PPTX
Arduino IoT (shared)
ODP
Internet-of-Things with (Arduino+XBee)
PDF
Practical Introduction to Internet of Things (IoT)
Introduction to AIoT & TinyML - with Arduino
IoT Devices, Which One is Right for You to Learn
Introduction to Internet of Things Hardware
Introduction to Arduino
Intro arduino English
Arduino presentation
Ruby Arduino (RubyConfIndia 2013)
Arduino presentation
Confusion of Things — The IoT Hardware Kerfuffle
Microcontroller arduino uno board
30120140506004
Arduino
Introduction To Arduino
Introducing... Arduino
IoT Getting Started with Intel® IoT Devkit
Introduction to Arduino
Arduino IoT (shared)
Internet-of-Things with (Arduino+XBee)
Practical Introduction to Internet of Things (IoT)
Ad

Similar to Road to Republic of IoT - ESP32 Programming and LoRa (20)

PDF
Internet of Things Conference - Bogor city
PDF
Fullstack IoT Development
PDF
Industrial IoT in a Nutshell
PDF
Republic of IoT - Hackathon Hardware Kits Hands-on Labs
PDF
Internet of Things - Technological Perspective
PDF
Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]
PPSX
Internet of things - The Present & The Future
PDF
Pre meetup intel® roadshow london
PDF
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 2/2
PDF
Physical Computing and IoT
PDF
ESP32 WiFi & Bluetooth Module - Getting Started Guide
PDF
Linxu conj2016 96boards
PPTX
Eclipse Edje: A Java API for Microcontrollers
PDF
Trends of IoT Technology for industrial prototyping and educational markets
PDF
Overview of the Intel® Internet of Things Developer Kit
PDF
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
PDF
Workshop IoT-Powered Internet of things.pdf
PDF
Edje Project: The Software Foundation for IoT Devices
PPTX
Attendance system using MYSQL with Raspberry pi and RFID-RC522
PPTX
Hacking into IoT using JavaScript
Internet of Things Conference - Bogor city
Fullstack IoT Development
Industrial IoT in a Nutshell
Republic of IoT - Hackathon Hardware Kits Hands-on Labs
Internet of Things - Technological Perspective
Introduction to RIoT Hardware Kits & ESP32 Programming [Road to RIoT 2017]
Internet of things - The Present & The Future
Pre meetup intel® roadshow london
Presentation for IoT workshop at Sinhagad University (Feb 4, 2016) - 2/2
Physical Computing and IoT
ESP32 WiFi & Bluetooth Module - Getting Started Guide
Linxu conj2016 96boards
Eclipse Edje: A Java API for Microcontrollers
Trends of IoT Technology for industrial prototyping and educational markets
Overview of the Intel® Internet of Things Developer Kit
Global Azure Bootcamp 2016 - Real-world Internet of Things Backend with Azure...
Workshop IoT-Powered Internet of things.pdf
Edje Project: The Software Foundation for IoT Devices
Attendance system using MYSQL with Raspberry pi and RFID-RC522
Hacking into IoT using JavaScript
Ad

More from Andri Yadi (20)

PDF
AIoT: Intelligence on Microcontroller
PDF
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
PDF
Global Azure Bootcamp 2019 - AIoT powered by Azure
PDF
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
PDF
Microsoft Azure-powered IoT & AI Solution To Help Farmer
PDF
IoT Connectivity with LoRa
PDF
Ask the Expert: Internet of Things
PDF
Global Azure Bootcamp 2018 - Azure IoT Central
PDF
Maker Movement toward IoT Ecosystem in Indonesia
PDF
IoT for Agriculture in a Nutshell: Technical Perspective
PDF
IoT Connectivity: The Technical & Potential
PDF
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
PDF
The state of NB-IoT in Indonesia
PDF
The Rise of Maker Movement in Indonesia
PDF
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
PDF
Internet of Things: Intro and Demo
PDF
Entrepreneurship through Making
PDF
Azure IoT Hub: 30 minutes Intro & Demo
PDF
An introduction to Internet of Things and Maker Movement
PDF
GDG Dev Fest - Develop with Firebase and IoT
AIoT: Intelligence on Microcontroller
TechInAsia PDC 2019 - Unlocking The Potential of IoT with AI
Global Azure Bootcamp 2019 - AIoT powered by Azure
Opportunities & Challenges in IoT - Future of IoT industry in Indonesia 2019 ...
Microsoft Azure-powered IoT & AI Solution To Help Farmer
IoT Connectivity with LoRa
Ask the Expert: Internet of Things
Global Azure Bootcamp 2018 - Azure IoT Central
Maker Movement toward IoT Ecosystem in Indonesia
IoT for Agriculture in a Nutshell: Technical Perspective
IoT Connectivity: The Technical & Potential
Global Azure Bootcamp 2017 - Azure IoT Hub with LoRa Connectivity
The state of NB-IoT in Indonesia
The Rise of Maker Movement in Indonesia
Talking with Things: What's Hot in Low-Power Long-Range IoT Connectivity
Internet of Things: Intro and Demo
Entrepreneurship through Making
Azure IoT Hub: 30 minutes Intro & Demo
An introduction to Internet of Things and Maker Movement
GDG Dev Fest - Develop with Firebase and IoT

Recently uploaded (20)

PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
PDF
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
PPTX
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
PDF
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
PDF
Spectral efficient network and resource selection model in 5G networks
PPTX
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
PDF
Dropbox Q2 2025 Financial Results & Investor Presentation
PDF
Encapsulation_ Review paper, used for researhc scholars
PDF
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
PDF
Building Integrated photovoltaic BIPV_UPV.pdf
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Electronic commerce courselecture one. Pdf
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PPTX
Cloud computing and distributed systems.
PDF
Approach and Philosophy of On baking technology
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PPTX
Spectroscopy.pptx food analysis technology
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Network Security Unit 5.pdf for BCA BBA.
PDF
cuic standard and advanced reporting.pdf
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Optimiser vos workloads AI/ML sur Amazon EC2 et AWS Graviton
VMware vSphere Foundation How to Sell Presentation-Ver1.4-2-14-2024.pptx
Blue Purple Modern Animated Computer Science Presentation.pdf.pdf
Spectral efficient network and resource selection model in 5G networks
KOM of Painting work and Equipment Insulation REV00 update 25-dec.pptx
Dropbox Q2 2025 Financial Results & Investor Presentation
Encapsulation_ Review paper, used for researhc scholars
Peak of Data & AI Encore- AI for Metadata and Smarter Workflows
Building Integrated photovoltaic BIPV_UPV.pdf
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Electronic commerce courselecture one. Pdf
NewMind AI Weekly Chronicles - August'25 Week I
Cloud computing and distributed systems.
Approach and Philosophy of On baking technology
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Spectroscopy.pptx food analysis technology
MYSQL Presentation for SQL database connectivity
Network Security Unit 5.pdf for BCA BBA.
cuic standard and advanced reporting.pdf

Road to Republic of IoT - ESP32 Programming and LoRa