Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Reprogram the Liver bird to be MQTT powered (or DMX) #1189

Closed
goatchurchprime opened this issue Jul 27, 2019 · 5 comments

Comments

@goatchurchprime
Copy link
Contributor

commented Jul 27, 2019

Now that the Liver bird is up on the wall (issue #1122) it needs a new protocol for controlling it through MQTT, probably based on the current mapping, where there are sub-assemblies of lights where the colour can be set all as one, or lights within them submapped.

The protocol should be general enough allow for the whole colour map to be set in one frame.

Then the node-red system could be set up to make it look like a cup of coffee when the coffee has brewed. It could turn red and sweaty when the temperature is high enough to use the air-cons (or preferably a fan). Or turn blue with raindrops when there's a storm outside.

@ajlennon

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2019

The netballs looked great. They were DMX controlled weren't they. What was actually doing the DMX control @jackie1050 @zarino ?

@zarino

This comment has been minimized.

Copy link
Member

commented Jul 28, 2019

@ajlennon All the code is here https://github.com/zarino/netballs. We had an Arduino Uno with a DMX Shield, reading the DMX input, and sending it on to a Raspberry Pi over serial.

(The Pi generated its own wifi network and ran its own MQTT server, which it then published messages to. ESP32s in the two netballs joined the wifi network, listened for MQTT messages from the server, and changed lights accordingly.)

I’m not sure I’d recommend you use DMX to control the Liver bird. It’s really only worth going down the DMX route if you have a source of DMX data that you want to use with the bird (in our case, this DMX source was the Arena engineer’s lighting desk) and you have some way (either in that DMX source, or in the bird, or in an intermediary, like our Raspberry Pi) to transform the DMX data into something the bird can use.

@jackie1050

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2019

@ajlennon

This comment has been minimized.

Copy link
Contributor

commented Jul 28, 2019

Thanks guys - yeah that's what I was wondering about - the Arena engineer's lighting desk. That seems really cool. Do we know anybody who knows how to set up something like that?

@amcewen

This comment has been minimized.

Copy link
Member

commented Jul 28, 2019

The Liver Bird has a Pi running NodeRED in it, which talks to an Arduino that controls the lights. I've pulled the interface that the Arduino provides through and made it available from MQTT on a variety of liverbird/... topics.

It's all documented in the Electric Liver Bird section of the MQTT page on the wiki

At present it's showing our daily power usage (the logic for that lives in the NodeRED on mqtt.local), but the newspaper, beak and eye colours are available to show other things (or we can have it display something else than power usage...)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
5 participants
You can’t perform that action at this time.