Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton...
Transcript of Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton...
![Page 1: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/1.jpg)
@Davet998
Dave Thornton
Arduino IOT and
The Things Network
@Davet998
![Page 2: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/2.jpg)
@Davet998
Why Arduino
Communications
Arduino Devices
Sensors
Shields
Development tools
Example Project
The Things Network LoRaWAN
Agenda
![Page 3: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/3.jpg)
@Davet998
Open Source
Plenty of choice Processor
Memory
Input / Output
Popular Example Source Code
Good Community Support
Cheap
Easy to obtain
Alternatives
Why Arduino / Genuino
![Page 4: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/4.jpg)
@Davet998
Communications
![Page 5: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/5.jpg)
@Davet998
Wireless Technology
LoRa
Cellular 2G, 3G, 4G, LTE, 5G, NB-IoT, LTE-V2X
![Page 6: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/6.jpg)
@Davet998
Communications
1. Ethernet 2. WiFi 3. GSM 4. Bluetooth 5. 433 MHz Transmitter
![Page 7: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/7.jpg)
@Davet998
Arduino Devices
1. Digispark Micro 2. ESP8266 3. Pro Mini 4. Nano 5. Uno
![Page 8: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/8.jpg)
@Davet998
Sensors
![Page 9: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/9.jpg)
@Davet998
Sensors
1. Air Pressure 2. Real Time Clock 3. Temperature 4. Compass 5. Gasses
![Page 10: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/10.jpg)
@Davet998
Sensors
1. Ultrasonic 2. Dust 3. Vibration 4. Accelerometer 5. Rotary Encoder
![Page 11: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/11.jpg)
@Davet998
Rectifier AC – DC
Arduino Nano compatible
Breadboard
Humidity
Pressure
Temperature
433 MHz transmitter
LED
Example Project
![Page 12: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/12.jpg)
@Davet998
Example Project
Raspberry Pi 2 Model B E-paper display HAT WiFi USB Dongle
• 1-Wire Temperature Sensors (5)
• Relays (2) • Prototype Shield • Ethernet Shield • Arduino Uno
![Page 13: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/13.jpg)
@Davet998
Development Tools
![Page 14: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/14.jpg)
@Davet998
Fritzing
![Page 15: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/15.jpg)
@Davet998
Raw Data
![Page 16: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/16.jpg)
@Davet998
The Things Network
![Page 17: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/17.jpg)
@Davet998
Moteino / Anarduino / The Things Uno
![Page 18: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/18.jpg)
@Davet998
Dragino Lora Shield v1.3
RFM95_98W
http://wiki.dragino.com/index.php?title=Lora_Shield
![Page 19: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/19.jpg)
@Davet998
V1.3 Board Digital Pins 3, 4, & 5 free Analog Pins 0,1,2,3,4 & 5 free
![Page 20: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/20.jpg)
@Davet998
RFM95/96/97/98(W)
![Page 21: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/21.jpg)
@Davet998
168 dB maximum link budget.
+20 dBm - 100 mW constant RF output vs.
+14 dBm high efficiency PA.
Programmable bit rate up to 300 kbps.
High sensitivity: down to -148 dBm.
Bullet-proof front end: IIP3 = -12.5 dBm.
Excellent blocking immunity.
Low RX current of 10.3 mA, 200 nA register retention.
Fully integrated synthesizer with a resolution of 61 Hz.
FSK, GFSK, MSK, GMSK, LoRaTM and OOK modulation.
Built-in bit synchronizer for clock recovery.
Preamble detection.
127 dB Dynamic Range RSSI.
Automatic RF Sense and CAD with ultra-fast AFC.
Packet engine up to 256 bytes with CRC.
Built-in temperature sensor and low battery indicator.
Wireless Specifications of RFM95W
![Page 22: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/22.jpg)
@Davet998
Power Consumption
Caution: Power supply requirements of the RFM module may be relevant in some circumstances: RFM95/96/97/98 modules are capable of pulling 120mA+ at full power, where Arduino's 3.3V line can give 50mA.
![Page 23: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/23.jpg)
@Davet998
RH_RF95 Works with :- Semtech SX1276/77/78/79
Modtronix inAir4 and inAir9
HopeRF RFM95/96/97/98
and other similar LoRa capable radios.
RadioHead Libraries http://www.airspayce.com/mikem/arduino/RadioHead/index.html
Client Server
‘Hello World’
![Page 24: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/24.jpg)
@Davet998
iC880a Raspberry Pi Gateway
Raspberry Pi 3 £32.80
16Gb Micro SD card £4.65
BackPlane £11.22
IMST iC880a £239.69
pigtail
antenna
2A PSU £6.00
Total £294.36
Bill of Materials
![Page 25: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/25.jpg)
@Davet998
Assemble the backplane
Plug in the Pi, iC880a and antenna
Download the raspbian-jessie-lite image
Configure the Pi
Follow the excellent instructions here to install Gateway https://github.com/ttn-zh/ic880a-gateway/wiki
Remember to note down the mac address!
3D Print a mount for the antenna
Build
![Page 26: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/26.jpg)
@Davet998
Register a Gateway
![Page 27: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/27.jpg)
@Davet998
Create an Application
Register a Device
‘Hello World’ https://github.com/matthijskooijman/arduino-lmic
Create a Application
“Don’t use Strings, encode your data into pure bytes They take up less space”
![Page 28: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/28.jpg)
@Davet998
The Things Network
![Page 29: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/29.jpg)
@Davet998
Node.js
![Page 30: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/30.jpg)
@Davet998
One Small Step
![Page 31: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/31.jpg)
@Davet998
The Things Network Backend
![Page 32: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/32.jpg)
@Davet998
Tools… Let’s not create the Intranet of Things
![Page 33: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/33.jpg)
@Davet998
Node-Red
![Page 34: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/34.jpg)
@Davet998
Future LoRa Projects
1. Pycom… Aaaagh!!! 2. ESP8266 3. RFM/Pro Mini 4. LoRaWAN Monitor
• Micro SD Card Reader • I2C LCD • Neopixel • GPS • Dragino Lora Shield • Arduino Mega
![Page 35: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/35.jpg)
@Davet998
If you want to build a commercial product you have to use a chip with On-board LoRaWAN™ protocol stack or get the finished product certified.
Example:
LoRaWAN Certification
![Page 36: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/36.jpg)
@Davet998
Challenge to meet 5 criteria
Become officially part of The Things Network
The 5 criteria are:
Gather 8 members
Connect 2 gateways
Publish 2 blogposts / forum discussions
Create an internal communication channel
Organize a public kick-off event
Unleash Your City
![Page 37: Arduino IOT and The Things Network - Meetupfiles.meetup.com/20458263/Meeting No.2 Dave Thornton presentation on... · Arduino IOT and The Things Network @Davet998 Why Arduino Communications](https://reader034.fdocuments.in/reader034/viewer/2022042102/5e7f92b87bac852ca53bf31b/html5/thumbnails/37.jpg)
@Davet998