Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Lesson23- How to connect RGB LED strip using ESP32 by KC868-A4 A8
#1

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:
Reply
#2
 led strip chip model: WS2811 use DC12V 

powe supply DC12V  power supply not DC5V

CAN i use these model with A4 model ?
Reply
#3
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.
Reply
#4
Do you meaning pin data shoud be  5 volt?
Reply
#5
yes.
Reply
#6
im getting an error using this script "warning esp_intr.h is deprecated, please include esp_intr_alloc.h instead"
Reply
#7
you can update your ESPHome to newest, test again, if have problem, please upload your screen photo.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)