arpschuino

Driving an 8-relay board via DMX with the arpschuino.


8-relay board driven by DMX

This tutorial was updated in October 2022, with the arrival of arpschuino32. It is therefore compatible with the arpschuino² and the arpschuino32.

Let's see how to drive an 8-relay board via DMX with the arpschuino, very simply.

Material:

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


Set up

Let's begin by connecting the adapter to the 8 relay board, either by soldering it for a permanent assembly or with female connectors.

In the first case, match the marks - and gnd and the + and vcc marks. Solder the 10 pins and cut the protruding legs.

adapter on 8 relays board

For removable mounting, solder the 8-pin socket on the underside of the adapter and connect it according to the markings.

removable adapter for 8 relays board

A relay behaves like a controlled switch, so it is connected to one of the two power cables of the device to be controlled. Check the voltage and current of the relays. Here with 10A / 250V maximum they can be used with devices of up to 2000W (for 250V, 1000W for 110V)!

On the 8-relay board we can see that there are 3 terminal blocks per relay, we connect our device as shown in the image below.

WARNING! For safety reasons, always work with the power off. Do not connect to the mains at this stage.

screw terminals

There is a triple male connector and a jumper on the 8 relays board. With the jumper as in the picture on the right, the relays are powered by the arpschuino board.

It is also possible, as in the photo on the left, to power the relays separately in 5V and to benefit from a galvanic isolation. This is the recommended solution to avoid overheating the regulator of your arpschuino.

jumper

With an arpschuino32 : configuration

No need to program the arpschuino32, you simply configure it via a web browser, as described in this tutorial.

on/off page


With an arpschuino² : the code

We can use the default arpschuino code, in this case it will be necessary to use an on / off curve in your console or DMX software.

Another approach is to reprogram the arpschuino. On our board, the relays are active and close the circuit when they receive a signal at low level (0V). You can use arpschuino 16 off / on available on the download page. In this case the outputs will be inverted , which may be useful for some applications, but impractical in most cases.

With arpschuino_2X8relays , the relays will be active at the high level.

Here the switching threshold ("bascule" in the code) is set at 50% (127 DMX steps), but this value can very easily be changed. Just change line 39: #define bascule 127.

code source

#define bascule 0 will trigger as soon as the level is greater than 0, while #define bascule 254 will only trigger at full level.

Do not forget to remove the jumper from DMX in to reprogram the arpschuino, and then replace it.

Let's plug ?

All you have to do is connect the arpschuino and the 8-relay board with the ribbon cable, power the arpschuino (the red led should light up) and connect the Dmx cable. As soon as the signal is received, the green LED flashes quickly.

IMPORTANT: the whole assembly must be fully insulated before connecting to the mains.

You can now check it by sending DMX levels to the start address and the 7 following ones. The relays should switch on and off.

It's working!

We can easily connect two relay boards on the arpschuino to enjoy 16 circuits.

A relay board and an arpower can also be used for 8 relay outputs and 8 dimmable low-voltage outputs.

In case of difficulties, do not hesitate to ask questions on the arpschuino forum .

8-relay board user guide : PDF

8-relay board schematic : PDF