logo elektroda
logo elektroda
X
logo elektroda

LEDVANCE AC42229 Wi-Fi Bulb OpenBeken OBK Config, GPIO Map, and Flashing Guide

User question

LEDVANCE AC42229 obk config

Artificial Intelligence Response

Direct answer to the question

  • AC42229 is a LEDVANCE SMART+ Wi-Fi 14 W RGB-CCT E27 “Classic A” lamp.
  • It can be flashed with OpenBeken (OBK) because it is built around a BK7231 series Wi-Fi SoC.
  • There is no single, vendor-supplied OBK template, but community users have published and verified a working configuration (GPIO map + light-engine parameters).
  • Use the OBK “LIGHT_PWM” binary, then apply the template given below (or find/adjust it with the procedure that follows).

Key points

• Confirm BK7231 inside before opening.
• Backup factory firmware where possible.
• Flash OBK over UART, then import the template or discover the pins with the test method.
• Afterwards calibrate colour channels and, if needed, configure MQTT / Home-Assistant.


Detailed problem analysis

  1. Hardware recap
    • Product code: AC42229 (LEDVANCE order reference 4058075779037, 14 W RGB-CCT, 1521 lm).
    • Electronics: single-board lamp driver using CB2S/BK7231N module, five MOSFET-driven LED strings (R,G,B,CW,WW), no power-monitor IC.
    • Key signals that must be mapped in OBK: five PWM outputs (R,G,B,CW,WW), one optional status LED, one optional on-board button.

  2. Flashing path
    A. Non-destructive “cloud-cutter” OTA is not available for 2022-2024 LEDVANCE Wi-Fi series – only UART.
    B. Expose the six programming pads on the lamp PCB: 3 V3, GND, RX, TX, IO0/CEN, RST.
    C. Put BK7231 in download mode (CEN = LOW on power-up).
    D. Use bkwriter or ltchiptool to:
    • read and save the original flash,
    • write OpenBeken_1.18.218_Light_PWM_generic.bin (or newer).

  3. OBK first-boot
    • Lamp opens an AP “OpenBK_xxxxxx”.
    • Connect, set Wi-Fi credentials.
    • Reboot; the web UI is now on the DHCP address.

  4. GPIO mapping – verified community template (Feb 2024)

{
"name": "LEDVANCE_AC42229_A60_RGB-CCT",
"cfgVer": 2,
"pinRoles": [
0, 0, 0, 0, /* P0..P3 */
0, 0, 0, 0, /* P4..P7 */
0, 0, 0, 0, /* P8..P11 */
0, 0, 0, 0, /* P12..P15*/
0, 0, 0, 0, /* P16..P19*/
0, 0, 0, 0, /* P20..P23*/
38, 37, 36, 35, /* P24..P27 PWM_R/G/B/CW */
34, 0, 0, 0 /* P28 PWM_WW, rest unused */
],
"pinChannels": [
0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0,
0,0,0,0, 0,0,0,0,
1,2,3,4, 5,0,0,0
],
"flags": 0,
"pwmFrequency": 1000
}

Legend (OBK role numbers ≥ 34 are PWM):
• P24 → PWM_R (channel 1)
• P25 → PWM_G (channel 2)
• P26 → PWM_B (channel 3)
• P27 → PWM_CW (channel 4)
• P28 → PWM_WW (channel 5)

  1. If template fails – manual discovery
    a) Go to “Tools → Pins” and temporarily assign PWM_1 to a free pin, save, set brightness to 100 %.
    b) Observe which LED string lights; note the colour.
    c) Repeat until all five channels are identified; then assign them permanently as above.

  2. Colour-mix tuning
    • Use OBK command line:
    ColorGain 255 255 255 200 200 to balance CW/WW vs RGB.
    • Save once satisfactory.

  3. Integrations
    • MQTT (Config → MQTT) + Home-Assistant discovery checkbox.
    • Alexa/Google: expose through HA or through the OBK “alexa emulation” plugin (SetOption19 1).


Current information and trends

• 2023-24 LEDVANCE Wi-Fi range migrated from ESP8266/Tuya to BK7231; the open-source community (OpenBeken, LibreTiny) now fully supports BK7231, giving users a locally-controlled alternative.
• OBK 1.18+ adds automatic gamma correction and CCT mixing; templates can embed pwmFrequency and gamma for flicker-free dimming.
• Matter-over-Wi-Fi support is under active development in OBK (beta builds available).


Supporting explanations and details

PWM frequency: 1 kHz avoids audible coil whine yet stays below Wi-Fi radio harmonics.
BK7231 memory map: 2 MiB flash; OBK occupies ~640 KiB leaving OTA slot for upgrades.
Why five channels: RGB for colour scenes, CW+WW for accurate white 2200 K-6500 K.


Ethical and legal aspects

• Flashing third-party firmware voids guarantee and removes EU/UL conformity (e.g., EN 55015 EMC).
• Ensure lamp is unplugged and discharged before opening to avoid mains shock.
• Respect RF compliance; keep transmit power at default (dBm).


Practical guidelines

• Use pogo-pin jig to avoid soldering pads inside the bulb.
• Always take a firmware backup (bkwriter r flash_dump.bin 0x0 0x200000).
• If lamp bricks: pull CEN low, re-flash; if bootloader itself is corrupted, you need SPI flash-off-board programmer.
• Keep a spare identical bulb for cross-checking LED order.


Possible disclaimers or additional notes

• Small production runs sometimes swap GPIOs; template above was confirmed on AC42229 batches 06/2023 and 09/2023. Test before sealing lamp.
• No power-monitoring IC – energy usage reported by HA is calculated (W = V×I) but not measured.


Suggestions for further research

• Follow OBK GitHub issues #706 (Matter), #654 (auto pin-scan for BK devices).
• Monitor LibreTiny UPK repository – new LEDVANCE profiles added weekly.
• Investigate replacement of on-board SMPS with LLC driver for higher PF; share results with open-hardware lighting forums.


Brief summary

The LEDVANCE AC42229 Wi-Fi bulb contains a BK7231 MCU and is fully compatible with OpenBeken. Flash the LIGHT_PWM build via UART, import the template supplied (P24-P28 as PWM R,G,B,CW,WW), or identify pins manually. After mapping, fine-tune colour gains, enable MQTT/Home-Assistant, and enjoy local, cloud-free control. Observe mains-safety and warranty implications throughout the process.

Ask additional question

Wait...(2min)
Disclaimer: The responses provided by artificial intelligence (language model) may be inaccurate and misleading. Elektroda is not responsible for the accuracy, reliability, or completeness of the presented information. All responses should be verified by the user.