The Things Network Dave Thornton @Davet998 @Davet998 Agenda Why - - PowerPoint PPT Presentation
The Things Network Dave Thornton @Davet998 @Davet998 Agenda Why - - PowerPoint PPT Presentation
Arduino IOT and The Things Network Dave Thornton @Davet998 @Davet998 Agenda Why Arduino Communications Arduino Devices Sensors Shields Development tools Example Project The Things Network LoRaWAN @Davet998 Why
@Davet998
- Why Arduino
- Communications
- Arduino Devices
- Sensors
- Shields
- Development tools
- Example Project
- The Things Network LoRaWAN
Agenda
@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
@Davet998
Communications
@Davet998
Wireless Technology
LoRa Cellular 2G, 3G, 4G, LTE, 5G, NB-IoT, LTE-V2X
@Davet998
Communications
- 1. Ethernet
- 2. WiFi
- 3. GSM
- 4. Bluetooth
- 5. 433 MHz Transmitter
@Davet998
Arduino Devices
- 1. Digispark Micro
- 2. ESP8266
- 3. Pro Mini
- 4. Nano
- 5. Uno
@Davet998
Sensors
@Davet998
Sensors
- 1. Air Pressure
- 2. Real Time Clock
- 3. Temperature
- 4. Compass
- 5. Gasses
@Davet998
Sensors
- 1. Ultrasonic
- 2. Dust
- 3. Vibration
- 4. Accelerometer
- 5. Rotary Encoder
@Davet998
- Rectifier AC – DC
- Arduino Nano compatible
- Breadboard
- Humidity
- Pressure
- Temperature
- 433 MHz transmitter
- LED
Example Project
@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
@Davet998
Development Tools
@Davet998
Fritzing
@Davet998
Raw Data
@Davet998
The Things Network
@Davet998
Moteino / Anarduino / The Things Uno
@Davet998
Dragino Lora Shield v1.3
RFM95_98W http://wiki.dragino.com/index.php?title=Lora_Shield
@Davet998
V1.3 Board
Digital Pins 3, 4, & 5 free Analog Pins 0,1,2,3,4 & 5 free
@Davet998
RFM95/96/97/98(W)
@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
@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.
@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’
@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
@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
@Davet998
Register a Gateway
@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”
@Davet998
The Things Network
@Davet998
Node.js
@Davet998
One Small Step
@Davet998
The Things Network Backend
@Davet998
Tools… Let’s not create the Intranet of Things
@Davet998
Node-Red
@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
@Davet998
If you want to build a commercial product you have to use a chip with On-board LoRaWAN™ protocol stack
- r get the finished product certified.
Example:
LoRaWAN Certification
@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
@Davet998