Maestro 24 to control LED’s

Hello. I recently purchased a Mini Maestro 24 to use in my R2D2 build for the purpose of randomly moving his holoprojector eyes on a loop sequence. I only have 6 servos attached and It was easy to get the servos setup this way. I was wondering if it is possible to use the Mini Maestro 24 to also control LED lights to turn on at random intervals and fade to various colors. R2 has two process status indicator lights and one of them fades from red to blue and back at random intervals and the other fades from green to yellow back to green. Is it possible to use my maestro to do this? I have seen pictures online of the maestro connected to a shiftbar to change the LED’s but I have never seen the actual way to connect the wires to the maestro and what the process would be in the maestro program. The lights I have are Macetech Shiftbrite V2.0 and have pins for GND, D1, L1, E1, C1, and V+. I’ve also seen lights that only have +RGB. It may not be possible with only the maestro. If an Arduino Uno is needed how would I connect the pins? If this is possible and anyone could be of help it is greatly appreciated.

Thanks in advance.

-Jeff (Bob Loblaw)

The RGB LED options for use with the Maestro are somewhat limited due to either the LED strip’s tight timing protocols or that the overhead would be high enough that it would result in low refresh rates. The ShiftBrite and ShiftBar modules use a simple synchronous serial protocol, which the Maestro can handle. We have some example code for controlling them in the “Example Scripts” section of the Maestro user’s guide, under the “Digital output” heading. As described in that section, that example expects the clock, latch, and data pins of a ShiftBrite or ShiftBar to be connected to servo channels 0, 1, and 2, respectively, and these channels should all be configured as outputs. You can change this to use any 3 channel on the Maestro.

Brandon

I know this is an old thread, so I’m sorry for resurrecting it, but I’m in the same situation as @BobLoblaw and wanted to see if there might be an alternate route.

Instead of controlling the LED strip from the Maestro directly, could the Maestro, at the start of a sequence, send a signal to a small arduino to tell it to activate a particular LED strip?

Hello, elixir.

Yes, it is certainly possible to have the Maestro send a signal to a separate microcontroller like an Arduino to have it trigger an LED strip. There are a few ways you could go about doing this.

For example, if you just need a simple trigger, you could configure a Maestro channel as an output. Then you could have the Arduino monitor the state of that pin to know when your sequence has started.

Alternatively, you could do something more complicated like use the Arduino to monitor the pulse width of a Maestro servo channel. This would give you more options for what to do with the signal (e.g. set up multiple triggers or use it to specify a brightness).

Another option if you are using a Mini Maestro (but not a Micro Maestro) would be to send serial signals and essentially make your own protocol. Using the Mini Maestro, you can send serial bytes from a script using the SERIAL_SEND_BYTE command. Information about that can be found in the “Command Reference” section of the Maestro user’s guide.

Brandon

Hey, I read your post. I’m in a similar situation right now and wanted to ask you how you solved it. I have an LED strip connected to an Arduino Nano. I now have a Maestro with a servo connected to it. The Arduino should activate the light when the servo opens the flap and deactivate it again when the servo closes it. What command do I need to send to the Maestro and to the Arduino? And where do I connect the Arduino?

Hello.

It is not entirely clear how your setup works (or if you have figured that out yet), but one option would be to have the Arduino Nano be the main controller and send serial commands to tell the Maestro when and where to move the servo. If you choose this option, I recommend reading through the Serial Interface section of the Maestro user’s guide. Additionally, you can use our Maestro Arduino library to help make the communication easier. The required connections and configuration changes are also described there. I would probably recommend this option over the others mentioned in this thread since it generally has the most flexibility.

Otherwise, if the Maestro is controlling the servo on its own, you can use one of the methods I described in my last post. Ultimately, you can use different methods depending on how much information you need the Arduino to have. If you just need the Arduino to know when the flap is open, you can use a simple digital signal. If you want more information than that (e.g. to have the lights be proportional to the servo position, or turn different colors based on the position of the servo), you can have the Arduino monitor a pulse width signal from the Maestro. Lastly, if you’re using a Mini Maestro you can send serial commands and make your own protocol (this would be good for more complicated setups where you want the Maestro to tell the Arduino to trigger different LED sequences or something like that).

If you choose a method that you think will work for you, and are still unsure what connections to make and how to accomplish it, please post more details about what you want to do and I can probably make some more specific recommendations.

Brandon