Replace Tuya CB2L, WB2L, BW2L Modules with ESP

blakadder
Written by blakadder on
Replace Tuya CB2L, WB2L, BW2L Modules with ESP

Summary

Replace Tuya TYWE2L, CB2L, WB2L, WR2L, WBR2L, BW2L and similar Wi-Fi modules with an Espressif ESP32 or ESP8266 light module.

Full disclosure: Links to Amazon, AliExpress and Banggood are affiliate links and I earn a small commission when you buy through them which helps fund future projects and reviews

All the listed modules have a similar footprint and same pinout for pins labelled in the image.

Module Shape

For this you will need the following:

  • soldering heat gun aka rework station - I use the JCD from AliExpress. You can try without one but it’s harder than it looks in the video.
  • a soldering iron - I recommend a modern pen style iron with TS or T12 tips such as Sequre Si012 (AliExpress, Amazon*, Sequre, Banggood, ), PTS100 (AliExpress, Banggood) or Pinecil (Amazon)
  • good solder and flux - don’t get the super cheap stuff and definitely don’t use unleaded solder. I typically get Mechanic brand from AliExpress and also their RMA223 flux.
  • desoldering braid - not a must have but helps in cleaning up old solder. Mechanic brand from AliExpress of course.
  • IPA for cleaning

Work on a heat resistant surface. I use a cheap cooking silicone mat (AliExpress).

Disassemble the device and take the PCB out if it makes it easier to work with. This example features the eWeLink E14 Candle bulb.

Prepare the PCB

Put flux on the bottom row of pads and solder them liberally. The leaded solder you use will mix with the factory non-leaded solder and that will bring down the melting point and make the process faster and smoother.

Heat the module

Set the heat gun to 350-400°C and start moving it left to right on the bottom of the module. Once you see the solder liquifying, nudge the module up with tweezers or whatever you have handy.

Module removed

DO NOT apply a lot of pressure and force it, that will only result in torn pads. If everything has heated up to the right temperature the module will slide off.

Clean up old solder

Clean up left over solder with the desoldering braid.

Clean up flux

Clean the surface with IPA or other alcohol.

Pads need to be clean

Now is the time to flash the replacement module with firmware you’ll be using.

Module comparison

Put blobs of solder on the pads on the back of the module.

Put blobs of solder on the pads on the back of the module

Solder wires that will connect to your USB adapter. You need to solder 3V3, GND, TX, RX, IO9 is optional since it only needs to be grounded during power up. I still solder the wire and keep it connected to ground during the flashing process.

Solder wires that will connect to your USB adapter

Flash the module with your firmware and make sure it’s working correctly. Don’t forget to unground IO9 to boot the module in normal working mode.

Flashing in progress

Clean up the solder from the back pads with the solder wick. This is required if the module sits flush with the PCB in the device you’re replacing it.

Clean pads on the module

Align the module with the pads and secure it with tape so it doesn’t move while soldering.

Line up the pads

Fill each pad with solder. Make sure your soldering iron is hot enough and use plenty of flux to help the solder flow. You don’t need to make it look pretty, you just need good connections between the module and the PCB pads.

Solder new module

Clean up your work with more IPA and its ready to be reassembled.

Job finished

Congratulate yourself on a job well done!

blakadder

Chief shenaniganeer!

Comments

comments powered by Disqus