|
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:
|