Aircoookie / WLED

Control WS2812B and many more types of digital RGB LEDs with an ESP8266 or ESP32 over WiFi!
https://kno.wled.ge
MIT License
14.74k stars 3.17k forks source link

ws2801 doesn't work with esp32 #1829

Closed bigu1975 closed 3 years ago

bigu1975 commented 3 years ago

Describe the bug esp32 board doesn't work with ws2801 strip

To Reproduce Upload 0.12 beta bin file and connect ws2801 (with proper settings for LED e.g. data 2, clk 0). LED can't be controlled. Doesn't react on color/effect change, some of them are blank used board: esp32 D1 Mini tested pins: data 2, clk 0 and data 16 clk 4

Expected behavior ws2801 strip connected to esp32 should work

WLED version

Additional context @blazoncek advise It may be related to NeoPixelBus

At 0.10.2 it works quite better but even if leds can be controlled and are reacting on color/effect change from time to time some of leds flickering

on esp 8266 with 0.12 beta the same wiring works like a charm

Thank you for your help!

Edit: Using bin: wemos_shield_esp32.bin from: https://github.com/srg74/WLED-wemos-shield/tree/master/resources/Firmware/WLED_wemos_shield/v0.11.1_blazoncek_multistrip

ws2801 on esp32 works!

sansillusion commented 3 years ago

Are you using a level shifter ? Sounds like data signal integrity issues.

Le sam. 27 mars 2021 1 h 39 p.m., bigu1975 @.***> a écrit :

Describe the bug esp32 board doesn't work with ws2801 strip

To Reproduce Upload 0.12 beta bin file and connect ws2801 (with proper settings for LED e.g. data 2, clk 0). LED can't be controlled. Doesn't react on color/effect change, some of them are blank used board: esp32 D1 Mini tested pins: data 2, clk 0 and data 16 clk 4

Expected behavior ws2801 strip connected to esp32 should work

WLED version

  • Board: ESP32 D1 mini
  • Version: 0.11.2 and 0.12 beta
  • Format: binary self compiled @ platformio (default_envs = esp32dev)

Additional context @blazoncek https://github.com/blazoncek advise It may be related to NeoPixelBus

At 0.10.2 it works quite better but even if leds can be controlled and are reacting on color/effect change from time to time some of leds flickering

on esp 8266 with 0.12 beta the same wiring works like a charm

Thank you for your help!

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/Aircoookie/WLED/issues/1829, or unsubscribe https://github.com/notifications/unsubscribe-auth/AHBFDCSVFGBYXSTZMMX5KCDTFYJ6ZANCNFSM4Z5EBFNA .

bigu1975 commented 3 years ago

I have tested with shiftier and without. The thing is that the same wiring and soft works on 8266 device but doesn't on esp32 in addition changing only the led strip to apa102 on esp32 fix the problem as well.

huggy-d1 commented 3 years ago

I suggest using different pins for testing. On 0.12.xß you know it's easy to move pins around. Hopefully it's just dupont jumpers and not solder connections you are dealing with.

A reliable source suggests only using these pins for digital outputs on ESP32: 2, 4, 12, 16-33

Perhaps your use of 0 & 2 got you headed in the head-down (sad) direction. Pins 4 & 16 should have been good.

stale[bot] commented 3 years ago

Hey! This issue has been open for quite some time without any new comments now. It will be closed automatically in a week if no further activity occurs. Thank you for using WLED!