Smart Home Automation Forum
Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - Printable Version

+- Smart Home Automation Forum (https://www.kincony.com/forum)
+-- Forum: Technical Support (https://www.kincony.com/forum/forumdisplay.php?fid=1)
+--- Forum: KC868-A series and Uair Smart Controller (https://www.kincony.com/forum/forumdisplay.php?fid=6)
+--- Thread: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 (/showthread.php?tid=941)

Pages: 1 2


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 09-19-2024

yes, driver is right. But you can use KC868-A32, need to use KC868-AP or KC868-D16 dimmer controller work with driver.


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - ogo - 10-01-2024

I was trying to do the same as the video with A32, but I'm not sure if I can use the analog inputs. I get this error when configuring the yaml:

GPIO34 (34-39) does not support output pin mode.

Can this be done with this board? Which pin should I use?


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 10-01-2024

which board model you are using?


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - ogo - 10-01-2024

(10-01-2024, 05:39 AM)admin Wrote: which board model you are using?

KC-868-A32 rev 1.4


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 10-01-2024

KC868-A32 use these GPIOs for analog input:
#define ANALOG_A1 GPIO39
#define ANALOG_A2 GPIO34
#define ANALOG_A3 GPIO36
#define ANALOG_A4 GPIO35
maybe you have not select correct ESP32 model.


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - ogo - 10-01-2024

(10-01-2024, 06:55 AM)admin Wrote: KC868-A32 use these GPIOs for analog input:
#define ANALOG_A1  GPIO39
#define ANALOG_A2  GPIO34
#define ANALOG_A3  GPIO36
#define ANALOG_A4  GPIO35
maybe you have not select correct ESP32 model.

Here's my yaml config:

Code:
esphome:
  name: "kc868-a32"
  platform: ESP32
  board: esp32dev

light:
  - platform: fastled_clockless
    chipset: WS2811
    pin: 39
    num_leds: 30
    rgb_order: GRB
    name: "light_strip"

The error is at "pin: 39" => GPIO39 (34-39) does not support output pin mode.

But I guess the error makes sense, if these pins are for analog input, can they be used to send data?


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 10-01-2024

these pins only use for INPUT, can't use for LED strip or any OUTPUT function.


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - ogo - 10-01-2024

(10-01-2024, 08:30 AM)admin Wrote: these pins only use for INPUT, can't use for LED strip or any OUTPUT function.

Then I guess I can't control led strips this way with A32, no?


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 10-01-2024

KC868-A32 have a serial port extend on PCB beside ESP32 module. if you don't need to use it. you can use these two pins for LED strip.