Skip to main content

Communication

LED control

Used for light control.

AddressNamevalueDescription
0R valuePWM cycleValue for red LED
1G valuePWM cycleValue for green LED
2B valuePWM cycleValue for blue LED
3W valuePWM cycleValue for white LED
4Transition timemsWhen color changed
5Live mode0/anySet values manifest themself
6PWM cycleanyMax color value (influence the PWM frequency)
7PX counteranynumber of sensor activations
8PX trigger0/anysensor trigger

Setting colors

In live mode, controller is setting outputs by RGBW registers. For setting different colors at the same time in one device, you can use write multiple registers. In case more devices, is needed to disable live mode, set color and enable live mode. Live mode can be set using broadcast message. After you enable live mode, controller smoothly change output by set values. Transition speed can be set by register 4 (transition time).

Proximity sensor control

For reading values of detection from sensor, read register 7 (PX counter).

PWM cycle

Changing PWM frequency is possible by setting PWM cycle. Max values of RGBW registers is same as the value of this register.

Max PWM cycle for channel A is 255! If you set this register higher than 255, the value for channel A will be 255.

Table of frequency change:

PWM cyclePWM frequency
100019.4 KHz
25576 KHz
100192.6 KHz
101.77 MHz

System control

Contains resources for controlling the system.

Table of System control registers

AddressNamevalueDescription
100Reset0/anyRestart device

Configuration

All configured value will take effect after restarting the device.

Table of configuration registers

AddressNamevalueDescription
1000Slave addressanyModbus slave address
1001Serial baud rate2400–57600RS485 baud rate
1002Serial parity0,2,30=NONE, 2=EVEN, 3=ODD
1003LED channel R0,1,2,3setting channel for red LED
1004LED channel G0,1,2,3setting channel for green LED
1005LED channel B0,1,2,3setting channel for blue LED
1006LED channel W0,1,2,3setting channel for white LED
1007Default TTmssetting default transition time
1008Default R value0–PWMCsetting default active level red
1009Default G value0–PWMCsetting default active level green
1010Default B value0–PWMCsetting default active level blue
1011Default W value0–PWMCsetting default active level white
1012PWM cycleanydefault PWM cycle
1013Light on start0/anyLights up when the power up
1014Proximity enable0/anyLED switch when closing up
1015Proximity threshold0/anyFor IR sensor calibration
warning

Every configuration change is damaging internal EEPROM!!!

note

Default stop bit value is 1.

Channel options

Table of channel configuration.

ValueDescription
0Channel A
1Channel B
2Channel C
3Channel D