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


Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 10-25-2021


LED Strip chip model: WS2812B

every LED have R,G,B colors:
every LED cost R: 20mA+G: 20mA+B: 20mA=60mA

if you using 1 meter = 30 LEDs 
total cost:60mA*30=1800mA=1.8A  so chose DC5V 2000mA power supply

if you using 10 meter, so will use 300 LEDS
total cost:60mA*30*10=18000mA=18A  so chose > DC5V 18A power supply

-------------------ESPHome Config---------------------------------------------

esphome:
  name: light_strip_30
  platform: ESP32
  board: esp32dev

wifi:
  ssid: "KinCony"
  password: "a12345678"

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "KC868-A4 Hotspot"
    password: "12345678"

captive_portal:

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: "1"

ota:
  password: "1"

web_server:
  port: 80
light:
  - platform: fastled_clockless
    chipset: WS2812B
    pin: GPIO13    # Pin Define connected with LED strip
    num_leds: 30  #LEDs number
    rgb_order: GRB
    name: "light_strip_A4"
    effects:
      - addressable_rainbow:        ##defined 7 effects styles
      - addressable_color_wipe:
      - addressable_scan:
      - addressable_twinkle:
      - addressable_random_twinkle:
      - addressable_fireworks:
      - addressable_flicker:


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - engmohades - 11-01-2022

 led strip chip model: WS2811 use DC12V 

powe supply DC12V  power supply not DC5V

CAN i use these model with A4 model ?


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

you can confirm with your LED strip supplier, whether the LED strip DATA pin is 5v level, if it is, ok no problem with A4 module.


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - engmohades - 11-01-2022

Do you meaning pin data shoud be  5 volt?


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 11-02-2022

yes.


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - cassiano - 05-04-2023

im getting an error using this script "warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead"


RE: Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8 - admin - 05-05-2023

you can update your ESPHome to newest, test again, if have problem, please upload your screen photo.


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

Can I do the same using the analog inputs of KC868-A32?


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

yes


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

Thank you!

What if I wanted to control (and dim) a regular LED strip that has a power supply like this one? Can I do that witch a32 too?