logo elektroda
logo elektroda
X
logo elektroda

Exploring SP530E 5CH PWM+SPI LED Controller with OpenESP on ESP32-C3

divadiow 5556 36
ADVERTISEMENT
  • #31 21654367
    StephSDW
    Level 3  
    On SP530E we have :

    GND | TX | RX | SN ( not sure the name) | IO9 | 3.3V

    I found an error on my cable type :

    SP530E GND to GND (USB TTL)
    SP530E TX to RX (USB TTL)
    SP530E RX to TX (USB TTL)
    SP530E SN not used
    SP530E IO9 to GND all the time during the flash procedure
    SP530E 3.3V to 3.3V (USB TTL)

    Am I good?

    I will try to add a 12V or 5V delivery power on.

    Because for now I have this message on ESPTOOL :
    A fatal error occurred: Failed to connect to Espressif device: Invalid head of packet (0x00): Possible serial noise or corruption.
  • ADVERTISEMENT
  • #32 21654368
    p.kaczmarek2
    Moderator Smart Home
    Can you show a photo of your connections? It makes diagnosis easier. We had similar question few days ago and it turned out that user didn't connect common ground... it does not look like the case for you, but maybe you have too long wires or something

    Added after 41 [seconds]:

    Also try swapping RX and TX
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #33 21654371
    divadiow
    Level 35  
    StephSDW wrote:
    add a 12v or 5V

    also, if you do try other power source, it'll be an or, not USB-TTL 3.3v and external power
  • ADVERTISEMENT
  • #34 21654381
    StephSDW
    Level 3  
    Actually like that
    USB to TTL converter connected to a black electronic board with jumper wires
    Black electronic board with soldered wires on wooden surface

    I will try abrogate power so external power removing the 3.3 volt from USB TTL

    Thanks for your help, I'm totally novice in that kind of things
  • #35 21654383
    p.kaczmarek2
    Moderator Smart Home
    I don't know this USB to UART converter, but does it provide enough current?

    The wires are a bit long....

    I am also not sure about solder joints - do you use flux?

    Maybe you can watch our channel to see how I flash devices: https://www.youtube.com/@elektrodacom

    |Try with this video:



    It's similar for ESP but you also ground BOOT pin as far as I remember, and use esptool, ofc.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #36 21654491
    StephSDW
    Level 3  
    Yes ! It works with the same length of cable. It works ! I can communicate and do the things..
    I try to put the https://github.com/patrick3399/SP530E-WLED-Custom?utm_source=chatgpt.com on.

    It return that error :
    A fatal error occurred: This chip has encrypt functionality in UART download mode disabled. This is the Flash Encryption configuration for Production mode instead of Development mode.

    I just try removing --encrypt and it seems to work... I don't understand everything. But If I reboot the SP530 I have nothing working no Wi-Fi or something like that.
    I want to integrate that product into Home Assistant that's why I'm trying this.
  • #37 21654534
    divadiow
    Level 35  
    what is the result if you run esptool.exe get_security_info on the SP530E when it is in UART download mode?

Topic summary

The discussion centers on the SP530E 5-channel PWM+SPI LED controller, primarily sold by BTF Lighting and generics, and its compatibility with firmware such as WLED and the emerging OpenESP on the ESP32-C3 platform. The device uniquely combines 5 PWM channels with SPI control, raising questions about independent control of SPI LED strips and RGBCW strips. Attempts to use the official BanlanX app and WLED firmware have faced challenges, including security efuse bits preventing reflashing and difficulties achieving stable PWM frequencies beyond a hardcoded 2 kHz in custom WLED builds. The device reportedly uses LEDC for PWM on ESP32-C3, but frequency adjustment functions are not yet implemented in OpenESP firmware. Simulator tools have been updated with features like bistable switches and zoom to aid development. Users report issues with flashing WLED, including boot failures and uncertainty about successful firmware installation, with suggestions to check UART boot logs and use custom WLED builds from Discord repositories. The community is exploring how to handle the device's mixed PWM and SPI LED modes in software, including conditional code checks in OBK PixelAnim. Overall, the SP530E is considered an unusual and somewhat challenging device for LED control development on ESP32-C3, with ongoing efforts to improve firmware support and tooling.
Summary generated by the language model.
ADVERTISEMENT