logo elektroda
logo elektroda
X
logo elektroda

Tuya ZY-TH01ProCB3S_v1.4 Temp & Humidity Sensor Firmware Programming

Dnomis77 87 6
ADVERTISEMENT
  • #1 21784000
    Dnomis77
    Level 2  
    Close-up of CB3S module with visible pins and PCB antenna on wooden surface
    TH01ProCB3S electronic module with sensor and antenna on wooden background
    Printed circuit board with AAA 1.5V markings and pin headers
    Printed circuit board with battery holders and visible soldered wire connections

    I have a couple of Tuya ZY-TH01ProCB3S_v1.4 temp & humidity sensors with LCD display; see the attached pictures.

    I tried to use CloudCutter on the first one and that seemed to go well and I managed to reflash it OTA with what I now assume is rubbish.
    So, I have been trying to reflash it using a serial TTL adapter...

    USB to UART converter module with FTDI chip on red PCB

    The problem seems to occur when I try to get it to reset the card using the Reset pin on the CB3S card; nothing happens.
    I have tried connecting directly to the CB3S card, but even if I put the power and TX/RX connections directly on the pins there, it still powers up the LCD display and will not reset.

    Anybody have any ideas on where I am going wrong with this board, please?

    AI: Can you provide more details or a diagram of how you’ve connected the serial TTL adapter to the CB3S card, including which pins you’re using and what voltage your adapter supplies?
    I have tried both to the pins as shown in the picture and to the CB3S card directly.
    The TTL adapter is sending out 3.3 V.
    AI: What exact steps are you following to try to put the CB3S into flashing mode—are you holding any buttons or using any specific software settings (like baud rate, reset sequence, etc.)?
    I have tried pressing the button once, several times, and holding it. I have tried grounding the top-left (RST) pin on the CB3S. I have tried 9600, 115200, and 1,000,000 baud. I have tried BK7231 Easy UART flasher on my Windows laptop and ltchiptool on my Linux laptop.
  • ADVERTISEMENT
  • ADVERTISEMENT
  • #3 21784320
    Dnomis77
    Level 2  
    Hi, thanks. I have tried using the top 2 RHS pins on the CB3S module directly also, but it didn't behave any differently. It never seems to reset, and seems to have a path to power for the LCD even if I apply power at the CB3S pins.
  • ADVERTISEMENT
  • #4 21784324
    divadiow
    Level 37  
    hmm yes. TuyaMCU is also known to get in the way of flashing so often rx and or tx needs to be isolated from the TuyaMCU. This can be done by removing the CB3S completely or severing a PCB trace then repairing it later. The LCD on these makes CB3S removal quite a chore. Your wires definitely short to CB3S RX/TX and they cross with your USB-TTL RX->TX and TX->RX?

    You may be able to hold the TuyaMCU is reset mode too I think I've seen reported, but I haven't had a device where that's been possible yet. More difficult if you can't even see the chip and then if it's pins are known.
  • #5 21784339
    Dnomis77
    Level 2  
    I've not tried removing a surface mount board before, it was hard enough trying to solder to it!
    I removed the wires from direct connection at the CB3S TX/RX and yes, I tried lots of combinations of TX - TX, TX -RX etc and baud rates, I saw someone posted that they had to use 15000000 so will try that tomorrow.
    Not sure how to go about removing the CB3S heat up and cut the join with a scalpel? Solder Pump? Presumably I only need to remove the 3.3v and Tx/ Rx lines
  • #6 21784350
    divadiow
    Level 37  
    I was thinking hot air gun removal after desoldering the LCD, but that's probably not an option.

    But actually, look, the RX/TX on CB3S do look to go those headers on the back. I hadn't spotted that. Looks like they each have a little trace breaking out to the TuyaMCU? maybe?

    Section of green PCB labeled MCU_TX, MCU_RX with solder joints and red arrows

    Maybe it'll just be a case of severing the CB3S's RX at that little junction so TuyaMCU can't transmit stuff and get in the way.

    How are you powering your device btw? external 3.3v power supply with common grounds to USB-TTL or powering whole thing from USB-TTL 3.3v or 5v with LDO?

    Added after 2 [minutes]:

    that assumes these two come off CB3S RX/TX

    View of PCB segment labeled for AAA 1.5V battery placement
  • ADVERTISEMENT
  • #7 21784365
    Dnomis77
    Level 2  
    I have tried powering it via just the TTL converter, via batteries and via one of those USB to 3v battery eliminators. The circuit board looks like multi layered so not easy to trace where those 2 go, ill have another look in the morning. I don't have a hot air gun suitable for SMD removal so that option is out. And I really didn't want to remove the LCD unless I have to.

Topic summary

The discussion focuses on reflashing the Tuya ZY-TH01ProCB3S_v1.4 temperature and humidity sensor with an LCD display. The main issue is the inability to reset the CB3S module via the Reset pin when attempting serial TTL programming after an unsuccessful OTA reflash using CloudCutter. It is suggested that the RX/TX pads on the device may be connected to the TuyaMCU rather than the CB3S, complicating direct serial communication. To successfully flash the CB3S, isolating or removing the TuyaMCU is recommended, potentially by severing PCB traces or removing the CB3S module, though the LCD presence makes physical removal challenging. Various wiring configurations and baud rates, including a high 15,000,000 baud rate, have been tested without success. Powering methods tried include USB-TTL 3.3V, batteries, and USB-to-3V battery eliminators. The complexity of multilayer PCB traces and lack of suitable SMD removal tools (e.g., hot air gun) further complicate the process. Visual inspection of PCB traces suggests possible points to sever the CB3S RX line to prevent interference from the TuyaMCU during flashing.
Summary generated by the language model.
ADVERTISEMENT