arpschuino

Configure the arpschuino32.


arpschuino32

You have followed the arpschuino32 connection tutorial, now it's time to configure your board.

You can choose to dim LEDs, control relays, electromagnets or other on/off actuators, servomotors, DC motors or others.

All this will be done by connecting to arpschuino using a simple browser like chrome or firefox.

In this tutorial, we'll explore :

  1. DMX/Artnet.
  2. The ports page.
  3. PWM configuration.
  4. On/off configuration.
  5. Servo configuration.
  6. Stepper configuration.
  7. CC motor configuration.
  8. Custom and inactive modes.

1.DMX/Artnet :


Click on the inputs tab:

inputs page

The page that opens has two parts, the first allows you to choose in which mode the arpschuino32 will operate:

DMX or Artnet IN : The selection will be made automatically: if the board receives DMX (wired), it will obey DMX orders. Otherwise it will listen to the Artnet wifi if it is available.

DMX IN : In this mode, the board is controlled in DMX, wifi is only used for this server.

Artnet IN : Artnet wifi only.

DMX IN > Artnet OUT : the board is controlled in DMX, the signal is transformed into Artnet wifi. The use of a wifi router is still recommended.

Artnet IN > DMX OUT : the board is controlled in Artnet wifi, the signal is transformed into DMX, recoverable via the XLR socket.


Then there are two fields, one to set the DMX address, the other the Artnet universe and an OK button.

In general, new data is taken into account the next time you start (or reset) arpschuino32. The DMX address and the Artnet universe are no exception to this rule.

Note that you can still address the board with the arpdress board as with an arpschuino².


2.The ports page :


Now let's go to the ports page :

The ports page

C'est ici que nous allons paramétrer les fonctionnalités des ports A et B.

For each ports of 8 inputs/outputs, we will choose if we want to drive LEDs, relays, motors etc...

When you click on one of these buttons, you see the different parameters of the mode displayed. We will detail these parameters in the following chapters.


3.PWM configuration :


By default, the arpschuino32 is in PWM mode. This is the mode for dimming LEDs, lamps or other. In this mode, 8 outputs are controlled, from Arp0 to Arp7 for portA, from Arp8 to Arp15 for portB.

Input : 8/16 bits :

8 bits is the normal, simplest mode, a DMX circuit drives a PWM output, over 255 steps.

In 16 bits, an output is driven by 2 DMX circuits for greater precision. This mode should only be used if you have a controller or software that allows such control. In 16 bits a port will require 16 DMX circuits to drive it.

PWM résolution :

PWM resolution should not be confused with DMX resolution. In PWM, the dimming is done by hashing the signal (more info here), If a resolution of 8 bits is sufficient to dim conventional lamps, the same is not true with LEDs which have no inertia. With the arpschuino32, you can now achieve really fine gradation with a resolution of up to 16 bits (65535 steps!).

Frequency :

Another parameter to take into account is the frequency. It is automatically set to the highest value available. Note that it depends directly on the chosen PWM resolution. If the frequency is too low we do not notice it with the eye, but on video, flicker will appear. For LEDs, the best compromise is to set the resolution to 14 bits, which fixes the frequency at 4882 Hz.

For your information, previously our best PWM, that of the spider board, was 12 bits and 1600 hz.

Curve :

We have two curves: a straight curve ideal for classic filament lamps; and an exponential curve suitable for dimming LEDs. If you're wondering what's the point of having more than 8-bit PWM resolution when the DMX control was 8-bit, this curve is the answer!

This is basically what the LED curve looks like:

LED curve

We can see that at the beginning of the dimming, where the LEDs can be faulty, the level increases very slowly, then increasingly louder. To the eye, this reproduces a more natural behavior. Give it a try!


4.On/off configuration :


The on/off mode is used to control relays, electromagnets, solenoids etc...

On/off page

Trigger :

Here we set the level where the output will go from off to on. It is defined in DMX steps (0/255) but the server will also display the percentage value.

Inverted/uninverted :

You can reverse the behavior: 0 = on, full = off.


5.Servo configuration :


Let's move on to servo motors. These are hobby servomotors, not those used in industry.

Servo page

Servo angle :

To be determined, in degrees, depending on your needs, but also on your servos. If a motor behaves strangely and vibrates at the end of its stroke, it may be because you have set an angle beyond its capabilities.

Inverted/uninverted :

The stroke of the servomotors can be reversed.

No detach/detach :

The detach mode is used to deactivate the motor when it does not receive a new command. This is useful for saving energy in the case of battery power. It can also be used with cheap motors which sometimes have the annoying tendency to wobble (Wahlberg shutter users may know what I'm talking about!).


6.Stepper configuration :


You can first take a look at our tuto stepper. The wiring is identical to that with the arpschuino².

Unlike previous modes, stepper mode allows each motor to be configured individually:


Stepper page

Let's start by choosing the motor we want to configure, we can also configure them all at once by choosing "all".

Active :

A switch to define if the motor will be active or not. If you only use two motors, for example, put the other two in "inactive" mode.

Steps per revolution :

The number of steps per revolution must correspond to that which you have set in your driver. For a 200-step motor set in quarter-step, we will set at 800 (200x4).

Revolution/minute :

These two parameters relate to speed: minimum speed and maximum speed in revolutions per minute. So the speed reached by the stepper motor will be between these two values, depending on the level of the DMX channel controlling the speed.

The maximum speed achievable depends on the motor used, if you set too high a speed the motor will block...

Number of revolutions :

In perform mode (see below), this parameter defines the total stroke of the motor in number of revolutions. You can put a floating point number here. It is not used in continuous mode.

Direction :

You can reverse the default direction of rotation of the motor.

action :

In perform mode, the position of the motor is precisely controlled, according to the stroke defined previously. The first DMX parameter (or the first two, see below), defines the position. The second (or third), speed.

In continuous mode, the motor rotates continuously. The first DMX parameter controls the direction, the second the speed.

8bits/16bits :

This option is only available for perform mode. 8 bits for position control with one DMX channel, 16 bits for two channel control such as a moving light.


7.CC motor configuration :


This mode is intended for DC motor with H-bridge type L298N or equivalents

Again, each motor can be configured individually:

CC motor page

Direction :

You can reverse the default direction of rotation of the motor.

Threshold :

Often the motors do not start from the first DMX steps. A motor will for example start at 9% (25 DMX steps in 0/255). You can therefore adjust this threshold, so that the motor starts without downtime from the first DMX steps. This value is defined in DMX steps (0/255) but the server will also display the value in percentage.


8.Custom and inactive modes :


The custom mode allows you to program yourself the action that the port concerned will perform. This will be the subject of another tutorial ;)

In inactive mode the port does nothing... To be used when only one port is used.


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