Loading...
「ツール」は右上に移動しました。
利用したサーバー: watawata7
37いいね 5059回再生

Adding RGB strips in CADIO to control color and brightness (ESP8266 - ESP32) | CADIO Home Automation

CADIO Website:
egycad.com/cadio/

CADIO Downloads Center:
egycad.com/cadio/downloads/

CADIO Developers Docs:
egycad.com/cadio/docs/discover-cadio/

CADIO Firmware For ESP8266:
egycad.com/cadio/docs/firmware/esp8266-firmware/

CADIO Firmware For ESP32:
egycad.com/cadio/docs/firmware/esp32-firmware/

---------------------------------------------------------------

Addressable RGB strips are natively supported in CADIO platform. you can use the RGB devices to control the light color and brightness.

To add an RGB device, all we need to do is selecting RGB as a new device type from the info file devices table, and select it's GPIO, we can also set a switch for it by selecting the switch GPIO,

We can add multiple RGB devices on the unit. in this video, I will add 2 RGB devices, and 2 switches to control them.

I'm using now two different RGB strips models, the first is WS2812B, and the second is UCS1903.

Addressable RGB strip has more benefits than the regular RGB. it use only 1 GPIO, and no need to a special power circuit to power it. just wire the VCC and GND wires to the power supply, and the DATA and GND wires to the ESP. that's it!!

Now the RGB devices are appear in the app Interface, and we can control them from the CADIO app.

Changing the colors.

Adjusting the brightness.

We can also control them using the switches, and the status is automatically synced with the app.

Some RGB strips models use different ordering for the strips LEDs. if the output color is incorrect, you can go to settings, and set the RGB color system to match your RGB strip order, for example, the WS2812B strip order is BRG, and I have chosen it to get the correct color!

But, what if you want to use a regular RGB strip?

Actually, it is not natively supported in CADIO, but you can add to your circuit an addressable RGB IC like UCS1903 IC, and you will have normal 3 PWM pins for the red and green and blue, then you can normally continue building your power circuit, and you will be able to control it using only 1 ESP GPIO!

コメント