newtech: getting started with hardware · lora/sigfox support needs an extra board to connect up...

19
. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . NewTech: Getting started with Hardware Jonathan McDowell revdenoodles noodles www.earth.li/~noodles/ [email protected] Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 1 / 19

Upload: others

Post on 22-May-2020

0 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

NewTech: Getting started with HardwareJonathan McDowell revdenoodles noodles www.earth.li/~noodles/ [email protected]

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 1 / 19

Page 2: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Overview

Hardware Sensors Processing

Software Projects

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 2 / 19

Page 3: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Sensors

Lots of cheap sensors easily available £27 for this lot from Amazon Motion sensor Temperature/Pressure/Humidity

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 3 / 19

Page 4: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Raspberry Pi

Incredible common platform Full blown Linux Lots of software options Lots of IO pins

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 4 / 19

Page 5: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Arduino

Kinda the original Atmel ATmega based (some STM32) Insane amounts of support £20 https://store.arduino.cc/arduino-uno-rev3

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 5 / 19

Page 6: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

NodeMCU

Espressif ESP8266 Wifi! Lots of clones £5 https://www.nodemcu.com/

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 6 / 19

Page 7: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Generic ESP32

Espressif ESP32 Wifi AND Bluetooth (including LE) Not quite as mature an ecosystem as the

ESP8266 £7

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 7 / 19

Page 8: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Blue Pill

STM32F103 (ARM Cortex M3) Built in USB Bit more limited in terms of software

support £5

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 8 / 19

Page 9: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

Snekboard

Microchip ATSAMD21G (ARM CortexM0)

Designed for Lego environments Motor controllers, RGB LEDs + battery

support $79 https://www.crowdsupply.com/keith-

packard/snekboard

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 9 / 19

Page 10: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Hardware

LoPy4

ESP32 based LoRA/Sigfox support Needs an extra board to connect up USB £40 https://pycom.io/product/lopy4/

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 10 / 19

Page 11: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Software

Arduino

C++ with lots of syntactic sugar Ported to lots of hardware, not just

Arduino Impressive selection of hardware support https://www.arduino.cc/

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 11 / 19

Page 12: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Software

Lua

Lightweight scripting language Highly embeddable Big in the ESP8266 world https://www.lua.org/

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 12 / 19

Page 13: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Software

MicroPython

Cut down Python3 variant Optimised for microcontrollers Interactive prompt https://micropython.org/

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 13 / 19

Page 14: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Software

JavaScript

JavaScript for IoT Embedded JS engine (XS) ESP8266 / ESP32 focussed at present Trying to produce a platform for IoT https://github.com/Moddable-

OpenSource/moddable

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 14 / 19

Page 15: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Projects

Clock

ESP8266 module + MAX7219 dot matrix LED NTP over WiFi Prototyped in MicroPython

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 15 / 19

Page 16: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Projects

Home Automation

Home Automation is my excuse to build things https://www.home-assistant.io/ Ties all my sensors together Allows me to control things too

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 16 / 19

Page 17: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Projects

Lights

Dimmable WS2812 LED strips, ESP8266controller

Code easily available for WS2812 for lotsof platforms

Some soldering required here (but possiblynot)

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 17 / 19

Page 18: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Projects

IoT PCB

A good example of how things can get silly Needed a better way to case my projects Kept seeing $2 PCB offers from JLCPCB Designed an ESP8266 PCB using KiCad

to fit a suitable case

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 18 / 19

Page 19: NewTech: Getting started with Hardware · LoRA/Sigfox support Needs an extra board to connect up USB £40 ... A good example of how things can get silly Needed a better way to case

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

...

.

Thank you

Thank you

Jonathan McDowell NewTech: Getting started with Hardware CC BY-SA 4.0 19 / 19