The system has the following lighting circuits.






Ado. Digital (digital lighting)

This is an on off circuit, for traditional lighting , only uses a relay output and an input to control it.

When we configure a circuit of this type appears before us the following dialog box.





Only one digital input and one output can be configured for this type , the output corresponds to the control relay and the input with the control mode.

The input types allowed for this circuit are:

  •     Switch.
  •     Button.
  •     Back-notice.
  •     Detector of current.


Ado. 3 Etapas. (Simple three stage dimmer)

The simplest way, we get to do dimmer function without expensive and complex equipment, it is also very useful for control of lighting with luxometro or LDR for control of energy saving ..

By means of two relay outputs it manages to make three different stages of illumination in a room, the idea is that the second relay activates twice as much power as the first, so we find three stages of illumination.

OFF. Both outputs to Off.
On 1/3. Output 1 On, Output 2 off (33% illumination)
On 2/3. Output 1 Off, Output 2 On (66% illumination)
On 3/3. Output 1 On, Output 2 On (100% illumination)

Therefore, the circuit uses two relay outputs and one push-button input.

The operation of the button is as follows:

When we make a long press the lighting goes off.

With short pulses we changed the number of active lighting stages in the room, changing the power by 33%.
The following image shows the circuit assembly.

Plano Ado3Etapas

When accessing the configuration , a dialog like the one shown in the following image is displayed, in which both the digital input (push-button type) and the two relay outputs can be configured.





RGB (RGB led lighting control)

The RGB led lighting circuit needs 3 arduino PWM pins (pulse width modulation) , it does not use relay outputs, see the following image.



rgbThe control is made by 3 pins, each for a color.

  •     Red Pin, pin for red channel control.
  •     Green Pin, pin for green channel control.
  •     Blue Pin, pin for blue channel control.


The dialog presents an additional checkbox, which selects the output type pwm, direct or reverse, the selection mode depends on the LED amplifier used, however choosing one or the other does not damage the system, only the colors are not shown Correctly, in case of doubt you can test, if the operation is not correct just change this parameter.

The system provides 30 default colors, adding unlimited control through combined dimmer circuit settings.

It also provides a random mode, which can be adjusted speed, can achieve relaxing or energetic environments with this mode, being able to control the speed through a sound sensor (disco effect)

The values ​​that can take a rgb circuit, are as follows:

199- Random mode, to configure the speed in this mode modify the variable RGBSpeed ​​in your program.

0-Circuit off.

1- Purple.

2- Viole.

3- BlueViolet.

4- SlateBlue

5- MediumSlateBlue

6- MediumSlateBlue

7- Aqua.

8- PowderBlue.

9- DeepSkyBlue.

10- LightSeaGreen.

11- MediumAquamarine.

12- PaleGreen.

13- MediumSpringGreen


15- Green1

16- Crimson.


18- OrangeRed.

19- Yelow

20- Brown

21- Red

22- DeepPink

23- DarkOrange.


25- SandyBrown.

26- Tomato.

27- Pink.

28- LightSalmon.

29- Khaki.

30- wheat


All these colors can be selected by the app easily, acted by sound sensors or selected by code, are displayed in a palette so you can change the color in a simple way ..

By default it has no control input, but with basic programming knowledge you can adapt control inputs, such as pushbuttons, remote controls …


Dimmer (dimmer lighting control)

We can say that it corresponds to the percentage of power delivered on the load.

With this feature in mind, the user is responsible for transferring that value to the corresponding control equipment using value property of the circuit.

The Value property is 0 when value  is 0% and 100 when value is 100%…

Podemos decir que corresponde al tanto por ciento de potencia entregada sobre la carga.

Teniendo esta característica en cuenta, el usuario es el encargado de transferir ese valor al equipo de control correspondiente.