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

Czy wolisz polską wersję strony elektroda?

Nie, dziękuję Przekieruj mnie tam

CB2S/WB2S cheap dev board made from NiceMCU_WB3S_V1 (replace WB3S with WB2S/etc)

p.kaczmarek2  11 2121 Cool? (+3)
📢 Listen (AI):

TL;DR

  • NiceMCU_WB3S_V1 became a cheap CB2S/WB2S dev board by replacing its BK7238 module with a Tuya WB2S or CB2S while keeping the board's GPIO markings correct.
  • The mod removes the BK7238 module with hot air, then solders Ethernet wires from each module pad to the matching board pad.
  • The board sells for as low as $1-2, and the example uses a BK7231M CB2S with the same pinout as BK7231N.
  • The finished board routes every CB2S pin, including RX2 and TX2, and the onboard LED still works through PWM0 and PWM4.
  • A separate CB2S/WB2S-to-CB3S/WB3S converter exists, but it skips RX2/TX2 and makes the board much taller.
Generated by the language model.
NiceMCU_WB3S_V1 board with mounted CB2S module and connected wires.
NiceMCU_WB3S_V1 is a very cheap (possible to buy for as low as 1-2$) Beken development board. It comes with BK7238 chip, but with some soldering it's also possible to very easily swap the BK7238 module with any classic Tuya WB2S or CB2S and still get correct GPIO markings. Here I will show you how I've done it.

The basic idea is to just get WB2S/CB2S, get some Ethernet wires and just solder the pads to their correct places, so the GPIO names on the board are correct.

So first, you obviously need NiceMCU_WB3S_V1 board, which has been already discussed here:
NiceMCU XH-WB3S BK7238 Flashing, Testing, Pinout, Development, Porting
You can get it for as low as about 1$ when you create new account:
NiceMCU WB3S development board with BK7238 Bluetooth module, displayed on an online store page.
Then you need to do a hot air BK7238 module removal, just like in my previous dev board hack (NodeMCU):


By the way, here is pinout of BK7238 module:
Comparison of pinouts for TUYA CB3S (BK7231N) and XH-WB3S_V2.0 (BK7238).
Here is the other side view:
Three different electronic modules lying on a wooden table, including NiceMCU_WB3S_V1 with visible pin labels.
Ok, with this information, we can just mark which pin goes where:
NiceMCU_WB3S_V1 board with replaced CB2S module
In this particular case, I've used BK7231M (not N) CB2S, but it does not matter, pins are the same.
I'm using such wires:
Several colored Ethernet wires on a workbench.
Soldering should be very easy. Just follow the simple guidelines:
- always keep soldering iron tip clean
- use flux and Pb soldering iron (as it has lower melting point)
- first apply solder separately to wire and to the pad, then solder wire to the pad
- make sure to strip insulation from wires first
- avoid bending wires repeatedly or they may snap
While soldering wires, make sure to check where they should go and chose the best wire orientation:
NiceMCU_WB3S_V1 board with soldered Ethernet wires Development board with attached Ethernet wires in a holder.
Placement time:
NiceMCU_WB3S_V1 development board with soldered wires.
Some little corrections:
Close-up of NiceMCU_WB3S_V1 board with attached wires.
Initial test with our flasher:



Almost ready:
Close-up of NiceMCU_WB3S_V1 board with attached CB2S module.
Complete product:
NiceMCU_WB3S_V1 board with mounted CB2S module and connected wires.

Now all of CB2S pins (even RX2 and TX2, which are on module back) are routed to their correct places on the board. Futhermore, the onboard LED also works (PWM0 and PWM4 pins seems to control it).

This way our new CB2S dev board is complete and it's better than NodeMCU hack because the markings on the board (like P9, P1, etc, TX, etc) are correct, so it's easier to quickly assembler a test setup with it. Now it's ready to be used for some OpenBeken development and testing.

PS: There is also our CB2S/WB2S to CB3S/WB3S converter available, which we've shown here, but it does not route RX2/TX2 and the module is perpendicular to mother board, which increases it's height greatly...

About Author
p.kaczmarek2
p.kaczmarek2 wrote 14241 posts with rating 12148 , helped 647 times. Been with us since 2014 year.

Comments

rufus4 28 Dec 2024 19:37

Nice mod! That's quite useful for quick tests and experiments. Are these Beken boards and chips only sold directly to companies assembling it to electronic goods for the final market? I do really wonder... [Read more]

p.kaczmarek2 28 Dec 2024 23:46

We've tried ordering those Tuya modules once, can you guess what firmware they had on them when their arrived? Here is our experience: Our experience with buying "brand new" Tuya modules like CB2S,... [Read more]

rufus4 29 Dec 2024 10:27

I have LoraTap chines curtain switches with additional RF board. The old ones came with TYWE2S/ESP8285, new ones with CB2S/BK7231N. They are identical, only the board with the microprocessor changed. Both... [Read more]

p.kaczmarek2 29 Dec 2024 10:59

It's very interesting result, I may move it to separate topic soon so we don't do offtopic in the dev board thread. I'm just wondering, does this 23% change really makes a difference in the energy cost?... [Read more]

rufus4 29 Dec 2024 14:11

Yes, sure it's better if you move it somewhere else. It is off-topic, but for me it is a very interesting point. It's not basically the question about saving energy or money, it's about saving the lifetime... [Read more]

divadiow 20 Jan 2025 22:26

going to do one too. Maybe CB3S. Fluxed, 63/37 pb solder to help lower melting point on each pad then air gun remove https://obrazki.elektroda.pl/3158998300_1737408256_thumb.jpg https://obrazki.elektroda.pl/3124393200_1737408249_thumb.jpg... [Read more]

p.kaczmarek2 20 Jan 2025 22:30

Keep in mind that CB3S pinout is not exactly the same a BK7238 WB3S version (which is also not the same as BK7231 WB3S), so you might need to cross out some IO markings or just remember they may be mi... [Read more]

divadiow 20 Jan 2025 22:31

duly noted [Read more]

divadiow 04 Feb 2025 21:15

visual mapping aid if using the NiceMCU for CB3S or WB3S https://obrazki.elektroda.pl/7961610200_1738696791_thumb.jpg Added after 55 [minutes]: Uascent uHome CB3S now in place https:... [Read more]

p.kaczmarek2 04 Feb 2025 21:24

I've been wondering, would be it possible to just print new silkscreen on some sticky paper with classic printer and glue it over the board? [Read more]

divadiow 04 Feb 2025 22:35

hmm. was thinking maybe just guillotine Brother tape labels in half down to 5-6mm width. bit fiddly https://obrazki.elektroda.pl/2902166700_1738704902_thumb.jpg [Read more]

FAQ

TL;DR: CB2S drops idle draw to 6.5 mA—23 % less than TYWE2S "Wi-Fi on" [Elektroda, rufus4, post #21366887] “Always keep soldering iron tip clean” [Elektroda, p.kaczmarek2, post #21364324] Swap modules on a $1 NiceMCU with four wires and flux.

Why it matters: Lower current eases thermal stress and extends cheap IoT lifetimes.

Quick Facts

• NiceMCU_WB3S_V1 board price: US $1–2 on promotions [Elektroda, p.kaczmarek2, post #21364324] • Supported modules: WB2S, CB2S, CB3S (3.3 V, 2 × 11 castellated pads) [Elektroda, p.kaczmarek2, post #21402379] • Typical idle current: CB2S 5.7–6.5 mA; ESP8285 6.4–8 mA [Elektroda, rufus4, post #21366887] • On-board LED pins: PWM0 & PWM4 after swap [Elektroda, p.kaczmarek2, post #21364324] • Hot-air removal temp: approx. 250 °C with 63/37 solder pre-coat [Elektroda, divadiow, post #21402375]

What is the NiceMCU_WB3S_V1 board?

It is a minimal Beken development board originally populated with a WB3S (BK7238) Wi-Fi module. The PCB breaks out every GPIO, has 3.3 V LDO, reset key and costs about US $1–2 when discounted [Elektroda, p.kaczmarek2, post #21364324]

Why swap WB3S for CB2S or WB2S?

CB2S/WB2S use BK7231 chips, run OpenBeken, consume up to 23 % less power, and their pin pitch matches the emptied footprint, letting you reuse the cheap carrier [Elektroda, rufus4, post #21366887]

Which pins align after the swap?

All 22 castellated pads line up, including RX2 and TX2 on the module rear, so the silkscreened P1–P26 labels remain valid for CB2S/WB2S [Elektroda, p.kaczmarek2, post #21364324]

Three-step hot-air swap procedure?

  1. Flood every pad with 63/37 solder and flux.
  2. Heat whole module at ~250 °C, lift with tweezers.
  3. Solder four pre-tinned wires from new module pads to matching PCB pads, then secure with tape [Elektroda, divadiow, post #21402375]

What tools and consumables are recommended?

Use flux, Pb-based solder, a clean conical tip, 30 AWG enamel or Ethernet strands, and low-flow tweezers. Clean the tip between every joint [Elektroda, p.kaczmarek2, post #21364324]

How much energy can I save?

Average idle current falls from 8 mA (1.85 W at 230 V AC) to 6.5 mA (1.5 W), a 0.35 W saving per device, or ~3 kWh yearly [Elektroda, rufus4, post #21366887]

Does lower current really extend device life?

Yes. The original 2 W draw overheats the switching transistor, browning the plastic. Reducing to 1.5 W keeps junction temperatures within spec, giving 2–3 year lifetime instead of 6–9 months [Elektroda, rufus4, post #21367265]

Any pitfalls when buying Tuya modules separately?

Bulk-ordered CB2S units often arrive flashed with production Tuya firmware, blocking serial boot and requiring extra erase steps or risk of bricking [Elektroda, p.kaczmarek2, post #21366615]

Edge case: what if wires bend repeatedly?

Thin copper strands work-harden quickly; excessive flexing can snap the connection and leave floating GPIOs, causing boot loops [Elektroda, p.kaczmarek2, post #21364324]

Do CB3S modules fit the same silkscreen?

CB3S shares pad positions but signal names differ from BK7238 WB3S; cross-reference or over-label the PCB to avoid mis-wiring [Elektroda, p.kaczmarek2, post #21402379]

How do I flash firmware after the swap?

Connect 3.3 V, GND, RX, TX to a USB-TTL adapter and run BK7231GUIFlashTool; OpenBeken boots immediately after a verify pass [Elektroda, p.kaczmarek2, post #21364324]
Generated by the language model.
%}