Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Firmware for ZTH01 and ZTH02 #13

Closed
baetzst opened this issue Jun 4, 2024 · 4 comments
Closed

Firmware for ZTH01 and ZTH02 #13

baetzst opened this issue Jun 4, 2024 · 4 comments

Comments

@baetzst
Copy link

baetzst commented Jun 4, 2024

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
Copy link
Owner

pvvx commented Jun 4, 2024

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
Copy link
Author

baetzst commented Jun 4, 2024

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 pvvx changed the title Firmware for ZTH01 Firmware for ZTH01 and ZTH02 Jun 5, 2024
@pvvx
Copy link
Owner

pvvx commented Jun 5, 2024

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

@baetzst baetzst closed this as completed Jun 5, 2024
@philrich123
Copy link

Nice my zigbee ZTH02 works now perfectly !
Is there a way to setup offsets for temperature and humidity (via a zigbee send command for example)?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants