arpschuino

Relays: starting an HMI ballast via DMX.


ballast 2K5 HMI

We will put into practice what we saw in the 8-relay board tutorial.

ATTENTION ! As always with 120/230V devices, you must be extremely careful. Always unplug the device before opening it. Even when disconnected, beware of capacitors that can remain charged!

The context

The Surnatural Orchestra uses in its show Esquif a 2.5 kW HMI Fresnel spotlight. The lamp has to be started before each performance and switched off afterwards. A big green button and a big red button are there for that.

boutons du ballast

The problem is as follows: the spotlight and its ballast are rigged 12m high at the top of the big top... So someone had to go up in a cherry picker before and after each show.

We will control the lamp start and stop with relays, driven via DMX by an arpschuino.

Material:

* We have no connection with the companies mentioned; images and links are provided as examples only.


Set up

There is not much room inside the ballast to integrate the arpschuino and the relays. We decide to use a 2-relay board. Its operation is identical to that of the 8 relay board.

carte 2 relais

Since we can not install our adapter as easily as on the 8 relay board, we will connect it with cables.

adaptateur modifié

Integration of electronics

It is necessary to secure our boards. Despite the size of the ballast there really is not much room in there!

intérieur du ballast

The arpschuino is placed under the circuit breakers, and the relays above them. Then we drill the ballast enclosure to the size of the arpschuino XLR (22mm) with a large drill bit. Measurements should be taken with care and drilling is done with the drill press.

percage

Edit: there is now a template to help you, it is available in PDF and in DWG

gabarit

Since there is not much room for integrating and fixing the power supply inside the housing, a hole is also drilled for the plug-in terminal block. After a few adjustments with a file, the arpschuino finds its place, screwed on nylon spacers.

l'arpschuino intégré dans le ballast

From the outside, it looks like this:

XLR sur le ballast

The 2 relay board finds its place above the circuit-breakers, screwed on the indispensable spacers. We can now connect the board to the arpschuino. The relays are wired in parallel with the red and green buttons.

2-relay board fixed in the ballast

The source code

The source code arpschuino_2X8relays was uploaded to the arpschuino with just one small change, to set a fixed address (400). Raising channel 400 above 50% should start the ballast, and raising channel 401 should switch it off.

Pleased with our work, we plug everything in and... disaster, nothing works as planned! The lamp starts before receiving any DMX, and raising channel 401 above 50% has no effect!

Let's try to understand what is going on. The relay contacts are closed at level 0 and open when they receive a voltage of 5V. With arpschuino_2X8relays, there was no initialisation (it has been fixed since), so the relays remained closed until they received DMX.

And the red stop button? Testing it with a multimeter, we find that it is normally closed: in other words, its behaviour is reversed. The default position of the second relay should therefore be closed, i.e. LOW in the code. Still with me?

In the setup, after initializing the GPIOs as OUTPUT, the first circuit is set to HIGH and the second circuit is set to LOW.

code source

Also, if we leave the red button, which is normally closed, in parallel with the second relay, the circuit will always stay closed. It must be removed, or better, wired in series rather than in parallel.

Here is a schematic of the setup:

schematic

Let's try ?

The whole setup (the ballast and the arpschuino power supply) must be plugged in before switching on the ballast circuit breaker. Before the DMX is connected, nothing happens: good. With the DMX connected and all channels at zero, still nothing: very good.

We bring channels 400 and 401 up to full: the lamp starts! We bring both channels back to zero: the lamp goes out.

It works!

The spotlight on

The source code can be found here.

We could have integrated the arpdress board to be able to change the DMX address; maybe a next step.

This tutorial is of course about a specific case, but it highlights the issues involved in fitting electronics into equipment and adapting source code.

Thanks to Philippe Bouttier from Surnatural Orchestra.

We are interested in your comments and questions, please contact us:

arpschuino@gmx.fr