KK2 Internet of Things with ESP8266

Semester 2 2017




Arduino Leds, buttons, pir




Sketch files
Library files


ESP8266 intro









This is a full set of code files including work of past few weeks. EXCEPT for WIFI file and TOKEN file. Copy YOUR versions of those from your earlier week folders, because they have YOUR settings.


DeepsleepCode Again, in on top of last week’s working version. (2 files overwritten!)


Logger in flash memory. Code


Access by web browser. CODE.


8×8 and 7-seg LED displays (max7219). CODE.







  • Class17 – Arduino

    GPIO in/out on the Arduino. Presentation

  • Class18 – Arduino 2

    Arduino. We have seen it running last week.  But let’s examine in some more detail how it works. C language. Libraries. Simple GPIO manipulation. Sketch structure. And one more peripherals: RC servomotor RPi vs Arduino: They both control GPIO things. So why is an Arduino NOT a Raspberry Pi? … and why can’t we easily use Blynk with Arduino for remote control? PPT.  

  • Class19 – Arduino 3

    Adding ultrasonic range-finder  and oled display to Arduino. PPT

  • Class20 – ESP8266 Intro – a variant arduino

    ESP8266: GPIOs like the arduino IDE? – the same arduino IDE But with easy WIFI connection included Today: Simple GPIO control. OLED display PPT Reference:  https://arduino-esp8266.readthedocs.io

  • Class21 – Wifi on the ESP8266

    Lua interpreter – the easy environment for creating your own projects on ESP8266. Today: Install lua interpreter Configure your blynk token Load lua files to ESP Connect ESP to wifi router Control ESP8266 by BLYNK on your phone PPT

  • Class22 – Blynk, esp8266 and real-time

    Using library boilerplate (that we barely need to stay worrying about)  to get main things done: Startup Wifi connection Establish true time Library for each “device” you want connected (Temperature? Alarm button? Oled display? etc) Then each time a very simple “project” file to tie the parts together, to make YOUR PROJECT do what you want. PPT eSuite-Manual-A  

  • Class23 – Esp8266 “Projects”

    More BLYNK projects on the ESP8266. Servomotor control. Pitch & Roll. Water tank pump control from level sensor. And “creative” multi-use of a button. PPT Esuite Manual – next instalment

  • Class24 – Analog inputs

    A brief look at using analog inputs. But mostly consolidation/revision of last week.   PPT

  • Class25 – Thingspeak – plot that data

    Post your data (Temperature? Voltage? …) regularly to Thingspeak, And then read your data as graphical view. PPT  

  • Class26 – Deep Sleep to save Battery

    If some example battery could keep an ESP8266 running for 3 hours, then extending that battery life to maybe 200 hours might be very handy. Deepsleep presentation

  • Class27 Logging

    Logging regular data on the ESP8266 itself.   PPT

  • Class28 Webserver

    Running the ESP8266 as a simple webserver. Control relays, read buttons, read status all from your browser.   PPT

  • Class29 LED Matrix Displays

    7-segment and 8×8 LED displays.   PPT:

  • Class30 MQTT

    MQTT is an internet “connectivity” protocol for Internet of Things, used widely We will use MQTT Apps on smartphone and PC to control our IoT gadgets. For example,  a convenient MQTT app on android is MQTT Dashboard. MQTT setup Class PPT rev2

  • Class31 Forth

    Time for something completely different! Raspberry Pi and forth. PPT AND THAT WAS THE LAST CLASS FOR KINKY KOMPUTING 2017

Raspberry Pi, Internet of Things, Cloud and Code