Slide 1

Slide 1 text

HACK THE ESP8266 1

Slide 2

Slide 2 text

Burak AYDIN [email protected] @burakaydn GDG Ankara 2

Slide 3

Slide 3 text

ESP8266 ▪ Small ▪ Powerful ▪ Cheap 3

Slide 4

Slide 4 text

ESP8266 ▪ 3.3V ~215mA ▪ CPU: 32-bit, 80MHz ▪ RAM 32Kb, DRAM 80Kb, Flash 200Kb ▪ Wi-Fi 802.11b/g/n (station or AP) ▪ Timers, deep sleep mode ▪ GPIO (2-16) 4

Slide 5

Slide 5 text

ESP-xx 5

Slide 6

Slide 6 text

Pinout 6

Slide 7

Slide 7 text

Firmwares ESP8266 SDK ▪ espressif.com/new-sdk-release/ NodeMCU ▪ github.com/nodemcu/nodemcu- firmware 7

Slide 8

Slide 8 text

Flashing esptool github.com/themadinventor/esptool esptool.py --port /dev/ttyUSB0 write_flash 0x00000 nodemcu_integer_0.9.6-dev_20150406. bin 8

Slide 9

Slide 9 text

9

Slide 10

Slide 10 text

NodeMCU Firmware ▪ Lua interpreter ▪ nodemcu.com/index_en.html 10

Slide 11

Slide 11 text

NodeMCU API ▪ node ▪ file ▪ wifi ▪ timer ▪ gpio ▪ mqtt ▪ net,I2C, SPI >node.info() 11

Slide 12

Slide 12 text

ESPlorer - github.com/4refr0nt/ESPlorer 12

Slide 13

Slide 13 text

Arduino - github.com/esp8266/Arduino ▪ Upload/Flash Arduino like sketches ▪ Most functions work as usual ▪ ESP8266Wifi Library support with some differences 13

Slide 14

Slide 14 text

Application Subjects ▪ Smart Power Plug ▪ Home Automation ▪ Mesh network ▪ Industrial wireless control ▪ Baby Monitor ▪ Network Camera ▪ Sensor networks ▪ Wearable electronics ▪ Wireless location-aware devices ▪ Security ID tag 14

Slide 15

Slide 15 text

DHT11 and Thingspeak ▪ github.com/ok1cdj/ESP8266-LUA 15

Slide 16

Slide 16 text

MQTT Message Queuing Telemetry Transport mqtt.org ▪ Simple Pub/Sub Message Queue ▪ Lightweight and bandwidth efficient ▪ FB Messenger 16

Slide 17

Slide 17 text

MQTT Sample ▪ devcenter.heroku. com/articles/cloudmqtt ▪ nodemcu.com/docs/mqtt-module 17

Slide 18

Slide 18 text

Others ▪ iot-playground.com ▪ github. com/geekscape/nodemcu_esp8266 ▪ whatimade.today/loading-the- nodemcu-firmware-on-the-esp8266- windows-guide/ ▪ data.sparkfun.com 18

Slide 19

Slide 19 text

Tesekkurler! Sorular? @burakaydn [email protected] 19