logo elektroda
logo elektroda
X
logo elektroda

Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout

EnYo15 492 4
ADVERTISEMENT
  • #1 21902976
    EnYo15
    Level 2  
    Posts: 3
    I recently purchased a TNCE Tuya Wifi Smart Socket (Model: TCOGCZ20).
    I have successfully flashed it with OpenBeken and figured out the correct pin mapping for power monitoring, which was a bit tricky due to the LN882H pin grouping.

    Hardware Details

    Device: TNCE Tuya Wifi Smart Socket EU Plug 16/20A
    Model: TCOGCZ20
    Main Chip: LN882H
    Power Monitoring Chip: BL0937

    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout
    Tuya TCOGCZ20 LN882H Smart Socket EU Plug BL0937 power monitor pinout

    Flashing Procedure

    The device has accessible pads on the bottom of the PCB. I used the BK7231 GUI Flash Tool (which supports LN882H).
    Wiring Map for Flashing:

    3V3 => 3V3
    TX0 (A2) => RX (of your USB-TTL adapter)
    RX0 (A3) => TX (of your USB-TTL adapter)
    GND => GND
    A9 => GND (Bridge to GND during boot to enter flash mode)

    Working Pin Configuration

    P5: LED (Channel 1)
    P6: Btn (Channel 1)
    P7: Rel (Channel 1)
    P11 (B3): BL0937CF
    P12 (B4): BL0937SEL
    P20 (A12): BL0937CF1

    Configuration Template

    Code: JSON
    Log in, to see the code
  • ADVERTISEMENT
  • #2 21903306
    dmitrykit
    Level 2  
    Posts: 2
    I have same board, but not showing voltage with this config.
  • ADVERTISEMENT
  • #3 21903674
    EnYo15
    Level 2  
    Posts: 3
    >>21903306

    Yeah, you are right, there was a typo in the config.

    Just to double-check, these are my pin settings:

    Screenshot of “Pin Settings” showing pins 0–25 with selected roles: LED, Btn, Rel, and BL0937 entries.
  • ADVERTISEMENT
  • #4 21904145
    dmitrykit
    Level 2  
    Posts: 2
    Thanks, now working, maybe someone have calibration setting for BL0937?
  • #5 21904424
    EnYo15
    Level 2  
    Posts: 3
    >>21904145

    Unfortunately, no.

    You can go to Launch Web Application => Tools => Power Metering and use the guide to calibrate your plug.

    I have a power monitoring plug with a display and used a hair dryer as a load to calibrate the plug.
ADVERTISEMENT