Redis and the Internets of Thing Workshop


Details
If anything, Redis is known for three things: performance, performance and simplicity. By actively designing it against complexity, Redis is simple enough that you can easily fit a Redis client in the memory of a microcontroller such as an Arduino 328P, ESP8266 or ESP32. This makes it possible to make genuine connected devices for under 10 USD per piece. Each such device, in turn, can connect to any Redis database regardless whether that database server is running at the edge on a Raspberry Pi (http://antirez.com/news/111) or in a cloud-based highly-available cluster.
In this workshop we'll implement a connected photonic throughput measurement device (a.k.a brightness or luminosity sensor) that connects to a remote Redis database. The hardware looks like this:
The code we'll develop will run on the microcontroller, collecting the measurements and reporting them to the database. Anyone who completes the coding gets to take one of these babies back home to continue reporting back to the mothership about her/his local photon emission levels.
To participate you should bring with you:
• Basic familiarity with C/CPP development
• A Windows/Linux/MacOS laptop
• A USB connector from your laptop to a micro USB socket
Tentative agenda
• 17:00 - 17:30 Mingle
• 17:30 - 17:45 Redis protocol (RESP): https://redis.io/topics/protocol
• 17:45 - 18:00 Hardware review: ESP-12E, Breadboard, luminosity sensor
• 18:00 - 18:15 Libraries review: wifi, sensor and Redis
• 18:15 - 18:30 Development environment and repo review & setup
• 18:30 - 19:00 Implementing connections
• 19:00 - ... Free food
• 19:00 - 20:00 Implementing simple commands: single value read and writes
• 20:00 - 20:30 Implementing pipelines: multiple values updates
Related reading
• Ice wine, Redis and Microcontrollers, Kyle Davis: https://medium.com/@stockholmux/ice-wine-redis-and-microcontrollers-96f90be09ea

Redis and the Internets of Thing Workshop