The Things Network Dave Thornton @Davet998 @Davet998 Agenda Why - - PowerPoint PPT Presentation

the things network
SMART_READER_LITE
LIVE PREVIEW

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


slide-1
SLIDE 1

@Davet998

Dave Thornton

Arduino IOT and The Things Network

@Davet998

slide-2
SLIDE 2

@Davet998

  • Why Arduino
  • Communications
  • Arduino Devices
  • Sensors
  • Shields
  • Development tools
  • Example Project
  • The Things Network LoRaWAN

Agenda

slide-3
SLIDE 3

@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

slide-4
SLIDE 4

@Davet998

Communications

slide-5
SLIDE 5

@Davet998

Wireless Technology

LoRa Cellular 2G, 3G, 4G, LTE, 5G, NB-IoT, LTE-V2X

slide-6
SLIDE 6

@Davet998

Communications

  • 1. Ethernet
  • 2. WiFi
  • 3. GSM
  • 4. Bluetooth
  • 5. 433 MHz Transmitter
slide-7
SLIDE 7

@Davet998

Arduino Devices

  • 1. Digispark Micro
  • 2. ESP8266
  • 3. Pro Mini
  • 4. Nano
  • 5. Uno
slide-8
SLIDE 8

@Davet998

Sensors

slide-9
SLIDE 9

@Davet998

Sensors

  • 1. Air Pressure
  • 2. Real Time Clock
  • 3. Temperature
  • 4. Compass
  • 5. Gasses
slide-10
SLIDE 10

@Davet998

Sensors

  • 1. Ultrasonic
  • 2. Dust
  • 3. Vibration
  • 4. Accelerometer
  • 5. Rotary Encoder
slide-11
SLIDE 11

@Davet998

  • Rectifier AC – DC
  • Arduino Nano compatible
  • Breadboard
  • Humidity
  • Pressure
  • Temperature
  • 433 MHz transmitter
  • LED

Example Project

slide-12
SLIDE 12

@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
slide-13
SLIDE 13

@Davet998

Development Tools

slide-14
SLIDE 14

@Davet998

Fritzing

slide-15
SLIDE 15

@Davet998

Raw Data

slide-16
SLIDE 16

@Davet998

The Things Network

slide-17
SLIDE 17

@Davet998

Moteino / Anarduino / The Things Uno

slide-18
SLIDE 18

@Davet998

Dragino Lora Shield v1.3

RFM95_98W http://wiki.dragino.com/index.php?title=Lora_Shield

slide-19
SLIDE 19

@Davet998

V1.3 Board

Digital Pins 3, 4, & 5 free Analog Pins 0,1,2,3,4 & 5 free

slide-20
SLIDE 20

@Davet998

RFM95/96/97/98(W)

slide-21
SLIDE 21

@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

slide-22
SLIDE 22

@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.

slide-23
SLIDE 23

@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’

slide-24
SLIDE 24

@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

slide-25
SLIDE 25

@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

slide-26
SLIDE 26

@Davet998

Register a Gateway

slide-27
SLIDE 27

@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”

slide-28
SLIDE 28

@Davet998

The Things Network

slide-29
SLIDE 29

@Davet998

Node.js

slide-30
SLIDE 30

@Davet998

One Small Step

slide-31
SLIDE 31

@Davet998

The Things Network Backend

slide-32
SLIDE 32

@Davet998

Tools… Let’s not create the Intranet of Things

slide-33
SLIDE 33

@Davet998

Node-Red

slide-34
SLIDE 34

@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
slide-35
SLIDE 35

@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

slide-36
SLIDE 36

@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

slide-37
SLIDE 37

@Davet998