Show and Tell May 2020

Working on adding the D20 (which I bought from @PearceDunlap, who makes them) to my network as my first home automation device for testing. I replaced the normal controller on it with an ESP32 device (node-MCU) and made it output the common anode signals (just straight PWM, no protocol) to the strip in the D20. To make this accessible via home automation, I wrote a small RESTful JSON web service, which you can find here if you’re curious: GitHub - Kentamanos/esp32-rgb-webserver: A small ESP32 based web server for controlling a single color RGB LED strip via RESTful JSON.

It basically takes the colors (expressed as 8-bit RGB values) and times (expressed as microseconds) in a JSON array of objects (with attributes for each value).

If I send it something like this (via Postman):

It ends up looking like this:

If I send something like this, which are red, green, and blue a second apart, with an instant change back to red:

It ends up looking like this:

It’s not as bright as I’d like yet. The strip takes at least 5v, and the ESP32 is 3.3v. I have some logic shifters I was going to try, but I can’t find my solder at the moment (recently moved and more coming from Amazon).

Eventually this guy will be in a Home Assistant setup and controlled via Node-RED most likely. This will allow an easy to use dashboard with some predefined patterns and have it change state via various events (including time of day etc.).

9 Likes