logo elektroda
logo elektroda
X
logo elektroda
Dostępna jest polska wersja

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

[BL602] Sonoff B02-BL-A60 CW CCT only bulb template and flashing

betinelu 1923 17
ADVERTISEMENT
  • #1 20918271
    betinelu
    Level 10  

    I followed the instructions from the YouTube movie and managed to flash a B02-BL-A60 bulb. The wifi part works, I added it to the home assistant, and there it is ok and the switch works, software everything is ok but physically the LEDs don't light up anymore. What could it be, did I burn something?
  • ADVERTISEMENT
  • #2 20918274
    p.kaczmarek2
    Moderator Smart Home
    Have you configured the pins as PWMs? You can also try, just temporary, setting their roles to 'Relay' and see if that works.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #3 20918305
    betinelu
    Level 10  

    I only configured Pin 2: BP5758D_CLK on channel 0 and Pin 21: BP5758D_DAT on channel 0. Exactly like in the movie, I don't know anything else. How to configure them as PWM? Please teach me what to do!
  • #4 20918333
    p.kaczmarek2
    Moderator Smart Home
    Ah, sorry, I don't remember the exact configuration of this device. I assumed it may be PWM based, but it seems to be using an I2C-like LED driver.
    Futhermore, the device config might have changed in the future revisions.

    Okay, so, is there BP5758 IC on the board with LEDs?
    Helpful post? Buy me a coffee.
  • #5 20918638
    betinelu
    Level 10  

    Oh, no. It's not, it's BP6772. Are there PWM settings for this IC?
  • #6 20918662
    p.kaczmarek2
    Moderator Smart Home
    There seems to be nothing in Google about BP6772. Can you make a photo of LED board?
    Helpful post? Buy me a coffee.
  • #8 20918834
    p.kaczmarek2
    Moderator Smart Home
    So it's a PWM based device. You can clearly see the marking on the silk screen.
    Please open Web App and use GPIO doctor to guess which GPIOs are used for Warm and Cool white LEDs control. Then change their roles to PWM.
    Helpful post? Buy me a coffee.
  • ADVERTISEMENT
  • #9 20918914
    betinelu
    Level 10  

    Thank you very much! Unfortunately, I did not manage to solve it. The LEDs do not light up. The buttons work but the LEDs do not light up. I did not find settings for BP6772 User interface for LED light control.
  • #10 20918951
    p.kaczmarek2
    Moderator Smart Home
    Okay, let's do this step by step.
    For a start, you should open GPIO doctor:
    [BL602] Sonoff B02-BL-A60 CW CCT only bulb template and flashing
    Then , slowly, press "Set High" and "Set Low" button several times for each GPIO and watch the LEDs. If any of the pins can make Warm/Cool LEDs light up, write the pin number down.

    Then, let me know which pin you have found this way.
    Helpful post? Buy me a coffee.
  • #11 20918989
    betinelu
    Level 10  
    P20 and P21 light up my LEDs. :)
  • #12 20919025
    p.kaczmarek2
    Moderator Smart Home
    So, the next step is to clear whole IO config, for example, with the following command:
    
    ClearIO
    

    or you can just clear it manually in pins config, and then, you need to:
    - set channel 1 for P20, role PWM
    - set channel 2 for P21, role PWM
    If you have swapped Warm and Cool, then swap channels 1 with 2, because you haven't specified in your post which pin is which white temperature.
    Helpful post? Buy me a coffee.
  • #13 20919078
    betinelu
    Level 10  

    I put it as you said, the only thing I still have is that the line with RGB color no longer appears, only these appear. Do I still need to enter GPIO Doctor again and search again? LED lighting control panel with brightness and color temperature sliders.
  • #14 20919157
    p.kaczmarek2
    Moderator Smart Home
    Yes, RGB does not appear because your device is a CW only bulb. You can easily check it by looking at the LEDs. Your bulb has only cool warm and white warm LEDs. Futhermore, your device has only CW and WW PWM signals routed to board.

    How does the packaging of your bulb looks like, what is the exact model name on your bulb's case?
    Helpful post? Buy me a coffee.
  • #15 20919264
    betinelu
    Level 10  
    It's good and even if that line doesn't appear, I thought I lost it completely. It was the first time I did something like this and I didn't know about these programs. I will buy a few more bulbs from this model. Thank you very much for your patience and for the advice given!
    Packaging of a smart Wi-Fi LED bulb with remote control features.
  • ADVERTISEMENT
  • #16 20919274
    p.kaczmarek2
    Moderator Smart Home
    This is CW only model, so there is no RGB.

    Now, can you share a final template JSON from the Web App, so I can add this device to our list here: https://openbekeniot.github.io/webapp/devicesList.html

    PS: I have split the topic into separate discussion about this particular bulb model
    Helpful post? Buy me a coffee.
  • #17 20919342
    betinelu
    Level 10  
    Is it good this way?

    Code: JSON
    Log in, to see the code
  • Helpful post
    #18 20919356
    p.kaczmarek2
    Moderator Smart Home
    Thank you, device will soon appear at:
    https://openbekeniot.github.io/webapp/devicesList.html
    Helpful post? Buy me a coffee.

Topic summary

✨ The discussion revolves around troubleshooting a Sonoff B02-BL-A60 CW CCT bulb that was successfully flashed but has non-functional LEDs. The user followed a YouTube tutorial and managed to connect the bulb to Home Assistant, but the LEDs do not light up. Responses suggest checking the configuration of pins, specifically for PWM settings, and identifying the correct GPIOs for controlling the warm and cool white LEDs. The user discovers that the bulb uses a BP6772 IC instead of the expected BP5758D, leading to further troubleshooting steps. Ultimately, the user successfully identifies the pins that control the LEDs and configures them correctly, confirming that the bulb is a CW only model without RGB capabilities. A final template JSON for the device is created for inclusion in a device list.

FAQ

TL;DR: Two PWM channels drive the Sonoff B02‑BL‑A60 CW bulb; "RGB does not appear because your device is a CW only bulb." Map the correct GPIOs to PWM and reset misconfigurations to restore light. [Elektroda, p.kaczmarek2, post #20919157]

Why it matters: This FAQ helps BL602-based Sonoff B02‑BL‑A60 owners who flashed OpenBK but lost light output quickly restore correct CCT control.

Quick-Facts

Quick Facts

How do I fix a Sonoff B02‑BL‑A60 that joined Wi‑Fi but LEDs won’t light after flashing OpenBK?

Clear the IO config, then set PWM roles. 1) Run ClearIO. 2) Map P20 to PWM, channel 1. 3) Map P21 to PWM, channel 2. Save and reboot. If Warm and Cool are swapped, swap channels 1 and 2. This restores CCT control on the CW-only board. [Elektroda, p.kaczmarek2, post #20919025]

Which GPIOs drive Warm and Cool white on this bulb?

On the reported unit, P20 and P21 controlled the LEDs during GPIO Doctor testing. Assign them to PWM roles for proper dimming. Record which pin is Warm versus Cool during testing to set channel order later. [Elektroda, betinelu, post #20918989]

How do I use OpenBK’s GPIO Doctor to find the LED pins?

Open the Web App and launch GPIO Doctor. Toggle Set High and Set Low slowly on each GPIO. Watch the bulb and note which pins light Warm or Cool LEDs. Use those pins for PWM roles in your final mapping. “GPIO Doctor” is the fastest path to discovery. [Elektroda, p.kaczmarek2, post #20918951]

Why doesn’t an RGB slider appear in my UI?

This model is CW-only, so the UI hides RGB. “RGB does not appear because your device is a CW only bulb.” The bulb uses two PWM channels (CW and WW) rather than RGB. This is expected behavior for this specific Sonoff variant. [Elektroda, p.kaczmarek2, post #20919157]

My LED board shows BP6772. What roles should I use?

Treat it as a PWM design. Use GPIO Doctor to find the two CCT pins, then assign PWM roles to those GPIOs. The board silkscreen and behavior confirm PWM-based control on this revision. Finalize with channel mapping in the Web App. [Elektroda, p.kaczmarek2, post #20918834]

What if my board has BP5758D instead of BP6772?

That revision uses an I2C-like LED driver, not raw PWM. Select the BP5758 driver and its data/clock roles, rather than PWM. Board configurations may change across revisions, so verify the IC marking before setting roles. [Elektroda, p.kaczmarek2, post #20918333]

How can I wipe incorrect GPIO mappings and start clean?

Run the ClearIO command to reset the pin configuration. Alternatively, clear each pin role manually in the Web App. After reset, reassign P20 to PWM;1 and P21 to PWM;2, then save and reboot. [Elektroda, p.kaczmarek2, post #20919025]

Will this bulb work in Home Assistant after flashing OpenBK?

Yes. A user confirmed Wi‑Fi works after flashing and the bulb was added to Home Assistant, where the switch functioned. Configure CCT correctly to regain light output and dimming. [Elektroda, betinelu, post #20918271]

Where can I get a ready-made template for this device?

The maintainer added the device to the OpenBK Web App devices list. Check the devices list page for an importable template once published. This simplifies future setups. [Elektroda, p.kaczmarek2, post #20919356]

What’s the exact model and chip for the CW-only version discussed here?

Model: Sonoff B02‑BL‑A60. It’s labeled CW CCT in the shared template and uses the Bouffalo BL602 chip. That template also tags the LED driver as BP6772 for clarity. [Elektroda, betinelu, post #20919342]

Warm and Cool are reversed after setup—how do I swap them?

Swap the channel assignments. Set the Warm pin to channel 1 and Cool to channel 2, or vice versa. Keep both roles as PWM. Save and reboot to confirm CCT direction. [Elektroda, p.kaczmarek2, post #20919025]

Google shows nothing for “BP6772.” How should I proceed?

Rely on the board silkscreen and behavior instead of a datasheet. Use GPIO Doctor to discover working pins and configure PWM roles. That approach solved control for this bulb despite scarce documentation. [Elektroda, p.kaczmarek2, post #20918662]

Did I burn the LEDs if they don’t light after flashing?

Unlikely. Misconfigured pins prevent output on PWM-based boards. Use GPIO Doctor to find active pins and assign PWM roles. Correct mapping restores light without hardware repair. [Elektroda, p.kaczmarek2, post #20918834]
ADVERTISEMENT