MQTT | OLED Controller (The Prototype)

OLED

Working on the prototype stage for the OLED MQTT controller I had to make some decisions. One of them was that the MP121 capacitive touch sensor wasn’t going to cut it.

I just wasn’t convinced that it would be able to work reliable through a few mm’s of plexiglass. So I turned to SketchUp and designed a front a best as I could. Turned out to be quite intuitively and thanks to 3D hubs I had it printed in ABS and on my desk in 2 days.

Continue reading “MQTT | OLED Controller (The Prototype)”

MQTT | Light Sensor

Had a JeeNode Lux Plug on a breadboard for a couple of weeks now. Jumper wires sticking out all over. So it was in due time to mount it in a more permanent manner.

The Lux Plug is a small board containing a TSL2561 chip, which connects to the I²C bus and measures incident light levels.

Two sensors are included, one is sensitive to infrared. An algorithm is used to calculate the light levels in lux, by combining the readings from both sensor types. The total measurable dynamic range is 1 : 1,000,000.

Continue reading “MQTT | Light Sensor”

MQTT OLED Controller | First Tests

OLEDInspired by Mat Smith’s MQTT Lightswitch I started working on an MQTT Controller. I shamelessly ripped Mat’s idea in using the same 256×64 OLED and MQTT for the backend. But instead of using an Arduino Mega I opted for an ESP8266. Had a NodeMcu 1.0 in my parts bin and since it has the most pins available of all ESP chips and it’s easy to breadboard  I started hacking away.

Mat has his code available on his GitHub but the u8glib library he is using hasn’t been ported to the ESP-8266 Arduino IDE at this time. So </shameless rip>..

nodemcuThe OLED uses an SSD1322 IC and fortunately, there is a working Adafruit GFX driver available for the ESP. This enabled me to build it all up on a breadboard and write some working code. Because the ESP8266 is somewhat limited in available I/O ports I need to really think about which direction I’m going regarding the user input. For now, I have converted an Arduino Pro Mini to 3.3v and connected it to a rotary encoder and a 12 port MPR121 Capacitive Sensor. It talks to the ESP8266 over a simple serial connection. The idea is to mount it all behind a printed plexiglass front panel hoping the MPR121 will work reliably through plexiglass.

The ESP8266 also drives a couple of WS2812b RGB LEDs. They can be individually driven using Adafruits NeoPixel library.

Not sure if it will ever work, but we’ll see.

Made a demo video. Still using an MCP23008 i2c I/O expander in this demo.

Transferred it to stripboard and moved from the MCP23008 to a slave Arduino with an MPR121 sensor and WS2812b LEDs.

Update: The OLED Controller has made it to the prototype phase.