pvvx / BLE_THSensor

BLE temperature and humidity sensor based on TS0201, TH03Z, ZTH01, ZTH02
Other
22 stars 5 forks source link

Firmware for ZTH01 and ZTH02 #13

Closed baetzst closed 4 weeks ago

baetzst commented 1 month ago

Hi, can you build a firmware for a modified ZTH01? I have removed the so16 and would wire the pins accordingly to the attached picture.

SCL (AHT30) - C3 SDA (AHT30) - C2 VDD (AHT30) - D2 Button - B4 LED - B5

Best regards, Stefan wiring

pvvx commented 1 month ago

The firmwares is the same for: TS0201 (_TZ3000_xr3htd96, _TZ3000_qsefbina): Tuya ZigBee TH03Z (TS0201 _TZ3000_dowj6gyi): Tuya ZigBee The differences are only in the number (name).

GPIO Function
PC3 I2C SCL
PC2 I2C SDA
PC0 KEY (to GND)
PB4 LED (to GND)

Sensor: SHT30 or CHT8305.

The sensor AHT20..AHT30 in TS0601 (TZE200..): Tuya ZigBee ZTH01 and TS0601 (_TZE200_9yapgbuv): Tuya ZigBee ZTH02 is not yet supported.

When drawings with jumpers for both options are ready, then perhaps firmware with support for AHT20..30 will appear...

baetzst commented 1 month ago

I measured my ZTH02. Pinout is the same as for ZTH01. I made some drawings for both versions with jumper wires.

ZTH01_2 ZTH02

pvvx commented 1 month ago

ZTH02 image BLE: image

ZTH01 image

GPIO_PB4 - KEY GPIO_PB5 - LED GPIO_PC2 - SDA GPIO_PC3 - SCL

Support sensors: SHT30, CHT8305, AHT20, AHT25, AHT30.

The test firmware is ready. https://github.com/pvvx/BLE_THSensor/tree/master/source/TS0201/bin