Pi and Blyncing lights

A while ago I put together a simple proof of concept to use an Embrava Blynclight to flash various colors to let people know their conference room booking was coming to an end (it ran off a PC as a NodeJS app, and connected to the Office365 graph to see when the room booking was ending… it would use color and flashing to signal when it was time to start packing up, and when you needed to clear out. Source isn’t currently shared, but contact me via the comments if you’re interested).

I’d tweaked the light control source a little and made it more general purpose and shared the project in case it was useful, but not done much else with it until recently.

I’ve been helping out on a local TV show, and we needed a way to communicate with the hosts while recording was going on – and a simple blinking light next to the monitor turned out to be a simple and easy solution… once I put the pieces together!

To make it work, and keep it self-contained and standalone (we needed to be able to control it from the Control Room, but didn’t want to run cables for it) I needed to get a light I could easily control over wifi – as luck would have it, I have my Blynclight Mini and a Raspberry Pi B+ (which has built-in Wifi), so it was just a case of connecting them together.

First of all, I had to get the Blynclight working with the RPi B+. While Node already works well on the device, getting the HID libraries working took a little bit more effort (but luckily other people had already worked out how). Once I could control the Blynclight form the RPi, I added a simple web page to let me choose a color and blink speed (still using Node), and was able to use my phone or iPad to adjust the lights.

The initial version however did still rely on both the iPad and the RPi both being on the same wifi network, which was going to be a problem in the studio because of how the network was locked down. Luckily, you can configure the RPi to act as it’s own hotspot, so I followed these instructions, and was able to get a standalone wifi network that I could log the iPad onto and control the light.

One last thing was to check that we could run the RPi off a battery pack, as there wasn’t easy power availability near where we wanted the light – I was delighted to find that it ran happily off the battery I carry to top up my phone, and connected to the 1a output comfortably lasted long enough to record 2 episodes (though in future I might try and find a bigger battery pack, or make sure I recharge it between episodes, as after shooting two back to back it was down to the last bar on the battery pack!)

And what does this Frankensteins’ Monster of a creation look like you ask? Wonder no more…



6 Responses to “Pi and Blyncing lights”

  1. Erik Says:

    Great hack! I saw your post in the Embrava developer’s forum and lifted the command format that was shared. Your node + hidapi implementation inspired me to ditch the Embrava SDK for my python bindings and go straight HID. Made the code so much better! Thanks for the inspiration and sharing your efforts.

    • offbeatmammal Says:

      great to hear Erik, the HID approach seems to make sense, is pretty versatile, and doesn’t rely on the SDK (though I’d love to try it on a new Nameplate … but can’t justify buying one just for that!)

  2. elkonz Says:

    Thank you! I was looking for a way to make this light work on macOS you’re a savior!

  3. Alex Says:

    I have a embrava nameplate, (I actually have 6 of them) I would love a way to link this into an api to display information like ticket status, or network status information. I have been trying do this with the SDK, although i cant figure it out.

    If you were wanting to try, I may be able to see if my boss would let me send you one. otherwise I could set up a testing enviroment with a RPI and a webcam for it?

  4. offbeatmammal Says:

    @Alex – thanks … I have a Nameplate as well, but can’t get this working via the USB access. It looked like they make some updates/improvements to the SDK with the newer devices and I’ve not had much luck so far.

    • Alex Says:

      Ah okay, thanks for the reply, im gonna give up on it then, if you make any progress with the SDK let me know, I just dont have the programming knowledge to work out how to program for these thins.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: