Elektroda.com
Elektroda.com
X
Elektroda.com

Arlec PCTH01HA - Bunnings - CB3S BK7231N

359r 522 3
  • First post, hope this is useful, see topic here also as ByteMangler added some i2c info

    https://github.com/openshwprojects/OpenBK7231T_App/issues/584

    Unit is from Bunnings here in Aus, has power monitoring and temp/humidity, more on that later, first some pics:

    https://grid-connect.com.au/smart-home-products/climate/

    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    Seems to be welded shut mainly in corners, few bashes with rubber mallet (ok gentle whacks!) and spudger and case came open, no damage, just go easy is my input

    Board and chips:

    Arlec PCTH01HA - Bunnings - CB3S BK7231N Arlec PCTH01HA - Bunnings - CB3S BK7231N Arlec PCTH01HA - Bunnings - CB3S BK7231N Arlec PCTH01HA - Bunnings - CB3S BK7231N

    In terms of flashing, tried a few times with windows version before reading comments that for the N version, python is the better way.

    Loaded up ras pi with spare sd card, raspbian lite installed and using python method, worked straight away. No desoldering any chips needed, just directly soldered jumpers to the chip vcc, gnd, rx and tx - all to cheap generic usb to serial dongle.

    My command was this, renamed the downloaded firmware to file.bin for easier typing:

    sudo python3 uartprogram /home/pi/file.bin --unprotect --startaddr 0x0 -d /dev/ttyUSB0 -w

    That's it, bang straight away it came up with open access point, added wifi credentials, up and running in web ui, fantastic!

    P8 Relay
    P7 Button_n
    P6 LED
    P9 SCL
    P14 SDA

    P26 BL0937 CF1
    P24 BL0937 CF
    ADC3 BL0937SEL

    Linked up to HA via mqtt and works great for relay and power readings from 937 chip.

    Outstanding is only the i2c CHT8305 chip data to get linked up for temp/hum

    See the above github link for more chatter or any posts after this.

    Edit: The temp/hum sensor sits in a nice, somewhat isolated compartment so it might be useful!..

    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    Hope this helps, thanks to the OpenBk team :)

    Cool? Ranking DIY
    About Author
    359r
    Level 2  
    Offline 
    359r wrote 2 posts with rating 1. Been with us since 2022 year.
  • #2
    p.kaczmarek2
    Moderator Smart Home
    Nice, I didn't even know there such kinds of devices. This is also interesting:
    359r wrote:

    P9 SCL
    P14 SDA

    BK7231 has two hardware I2C ports and they are already working in OpenBeken.
    I2C1 is P20/P21:
    Arlec PCTH01HA - Bunnings - CB3S BK7231N
    I2C2 is P0/P1:
    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    P9 is not a hardware I2C..
    Arlec PCTH01HA - Bunnings - CB3S BK7231N

    That means we need a software I2C... of course assuming that the target chip is using a non-modified I2C protocol... I will check this soon
  • #3
    359r
    Level 2  
    Awesome, thanks for the reply. The plug is currently monitoring the dishwasher, once it finishes, I'll unplug and double check the pins with meter. Will update this post in around an hour or so, cheers

    Edit time, confirmed, P9 SCL and P14 SDA

    Added after 1 [hours] 21 [minutes]:

    Arlec PCTH01HA - Bunnings - CB3S BK7231N
  • #4
    p.kaczmarek2
    Moderator Smart Home
    Thanks to our contributor, a simple CHT8305 driver has been added.
    USAGE:
    - select CLK pin
    - select data pin
    - save pins
    - for data pin, select two channels to store temperature and humidity (not the same channel! Two different ones...):
    Arlec PCTH01HA - Bunnings - CB3S BK7231N
    Please try it out.