Internet of Things

using ESP8266 and MQTT

ESP8266

  • SoC
  • It has GPIO, I2C, ADC, SPI, PWM and more
  • It's running at 80MHz
  • The ESP8266 chip is made by Espressif
  • Boards by various manufacturers

Arduino vs ESP

Price

Documentation

CPU

Connectivity

Arduino Uno

ESP8266

5$

20$

WIFI !!!

Flash/RAM

16Mhz

80Mhz

32/2 Kb

1024/32 Kb

Sensor

?

Protocol

MQTT

MQTT - What is it?

  • invented by IBM in 1999
  • M2M Protocol
  • extremly lightweight
  • small code footprint
  • cross-system

MQTT - Who uses it?

NASA: collect data from remote satellites with limited bandwith

Facebook: cross-device low-latency Chat

broudly used among IoT platforms

MQTT - How does it work?

Publish - Subscribe

MQTT - Demo

/dev/lol Dashboard:

http://mqtt.devlol.org/lol/

MQTT - How do we use it?

Broker

1. connect

2. subscribe

 

MQTT Client

 

3. publish

4. distribute

Topic

Topic

Topic

What can we do with this?

Watergun

Bullshit Button

Discoball

Fridge

ESPThing

A Boilerplate for IoT with ESP and MQTT

ESPThing: Making of

Making of Bullshitbutton

Internet of Things

By doebi

Internet of Things

  • 1,914