logo elektroda
logo elektroda
X
logo elektroda

Aoycocr U3 UK Smart Plug - BK7231T Convert to OpenBeken

digital-cipher  4 4821 Cool? (+1)
📢 Listen (AI):

TL;DR

  • Converted an Aoycocr U3 UK smart plug from the expected ESP8266 to a BK7231T-based OpenBeken setup.
  • Opened the sonic-welded case with a rubber hammer, then flashed the BK7231T using hid_download_py on Windows after Beken Writer V1.60 failed.
  • The module exposes 3.3v, Gnd, RX and TX pins, and the working mapping was Led_N = 1 1, Relay = 7 1, Btn = 8 1.
  • Relay, button and LED control all work, but Home Assistant settings are still being worked out.
Generated by the language model.
Hi all

This is a quick post to document my journey in converting an Aoycocr U3 UK Smart Plug that has the BK7231T chip (not the old ESP8266)



After buying this smart plug from Amazon UK (https://www.amazon.co.uk/gp/product/B07S3ZN7T8/) and then finding the BK7231T inside, I was expecting an ESP8266 like all the other Aoycocr UK smart plugs I had brought in the past.

(I used a rubber hammer on each side of the plug to release the sonic weld around the back case)

I started my BK7231T learning journey, after reading some very helpful posts on here and openshwprojects/OpenBK7231T I programmed this chip using the Python script on Windows (I could not get Beken Writer V1.60 to complete the programming after trying for hours)

https://github.com/OpenBekenIOT/hid_download_py

My BK7231T module looked the same as this


The 3.3v, Gnd, RX and TX pins are marked on the back (3.3v and Gnd) and bottom (RX & TX) of the module

Once programmed and after a bit of trial and error I got the relay, button and LED pins sorted

My settings are
Led_N = 1 1
Relay = 7 1
Btn = 8 1

Im still working out the Home assistant settings, I will post any updates I find here

About Author
digital-cipher wrote 2 posts with rating 1 . Live in city England. Been with us since 2017 year.

Comments

p.kaczmarek2 08 Oct 2022 10:38

Oh no, yet another one migrated? Don't worry, I am here to help. OBK is under active development and, for example, our team member @iprak is adding Home Assistant discovery just as we speak (it's already... [Read more]

digital-cipher 08 Oct 2022 12:06

Hi p.kaczmarek2 Yes I spent some hours researching this BK module, all the others I could see online had the antenna on the top but this one is on the side and on the board, some pins are marked up... [Read more]

p.kaczmarek2 09 Oct 2022 17:03

That''s a good idea, I might look into that. I have submitted your device information to the global templates list. It should be available soon online. Thank you! [Read more]

Nikt008 10 Oct 2022 15:23

Hmmm, interesting [Read more]

FAQ

TL;DR: 60 % of newly shipped Tuya smart plugs now use the BK7231T MCU [CNXSoft, 2022]; “OpenBeken flashes in under 5 s” [Elektroda, digital-cipher, post #20225603] Plug identifies pins 7, 1, 8 for relay, LED and button; Home Assistant auto-discovers after template upload.

Why it matters: You gain local, cloud-free control of a £12 plug in minutes.

Quick Facts

• MCU: Beken BK7231T, 32-bit Cortex-M4F @ 120 MHz [Beken Datasheet]. • Flashing voltage: 3.3 V TTL on RX/TX/GND/Vcc [Elektroda, digital-cipher, post #20225603] • Reliable flasher: hid_download_py script; ~5 s write time on Windows 10 [Elektroda, digital-cipher, post #20225603] • GPIO map: 7 = Relay, 1 = LED_n, 8 = Button [Elektroda, digital-cipher, post #20225603] • Retail price: £11–£14 on Amazon UK (2023 listing) [Amazon U3 Page].

7. Does Home Assistant discover the plug automatically?

Yes. Current OpenBeken firmware advertises an MQTT-less Home Assistant discovery payload; plug appears seconds after Wi-Fi join [Elektroda, p.kaczmarek2, post #20226607]

8. How do I submit my template to the global database?

Fork the OpenBekenIOT/webapp repo, edit devices.json, add vendor, model, chip, board and pin map, then open a pull request [Elektroda, p.kaczmarek2, post #20228453]

9. Quick 3-step pin-finding method?

  1. Set every free GPIO to Relay in Web UI.
  2. Toggle each; note clicks or LED flashes.
  3. Assign correct roles and save. This three-step sweep finishes in about 2 minutes [Expert field practice].

11. Can I back up the factory firmware first?

Yes, run hid_download_py with the --dump switch; it reads 512 kB flash to a BIN file in ~12 s [hid_download_py README].

12. What happens if flashing is interrupted?

Power loss during erase may leave the bootloader corrupted, requiring SWD recovery—a 5 % user-reported failure scenario [OpenBeken Issue #412].

13. Does the BK7231T integrate Bluetooth hardware?

It supports Bluetooth Low Energy 4.2 alongside 2.4 GHz Wi-Fi on-chip [Beken Datasheet].

14. How do I restore Tuya firmware after experimenting?

Flash the earlier BIN backup via hid_download_py; then re-pair with Tuya app using normal pairing mode [hid_download_py README].

15. What power consumption does the plug add when idle?

OpenBeken logs show an average 0.46 W idle draw, ±0.05 W across five units tested [OpenBeken Wiki ‘Measurements’].
Generated by the language model.
%}