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

Support for ZG-227Z #574

Open
h3ifri opened this issue Dec 5, 2024 · 4 comments
Open

Support for ZG-227Z #574

h3ifri opened this issue Dec 5, 2024 · 4 comments

Comments

@h3ifri
Copy link

h3ifri commented Dec 5, 2024

I received a couple ZG-227Z devices, labeled on the sticker as HZ-HT-03. The sensor is an AHT20.

Is it possible to support this device?

image
image

@h3ifri
Copy link
Author

h3ifri commented Dec 17, 2024

This should be the pin mapping:

// TLSR8253F512ET32 (ZG-227ZS)
// (03) GPIO_PA0 - free
// (04) GPIO_PA1 - free
// (05) GPIO_PA7 - SWS, free, header
// (06) GPIO_PB1 - UART_TX, free, header
// (14) GPIO_PB4 - free
// (15) GPIO_PB5 - free
// (16) GPIO_PB6 - free
// (17) GPIO_PB7 - UART_RX, free, header
// (20) GPIO_PC0 - SDA, used I2C AHT20
// (21) GPIO_PC1 - SCL, used I2C AHT20
// (22) GPIO_PC2 - LED (->GND)
// (23) GPIO_PC3 - free?
// (24) GPIO_PC4 - free?
// (31) GPIO_PD2 - free
// (32) GPIO_PD3 - free
// (01) GPIO_PD4 - KEY (->GND)
// (02) GPIO_PD7 - free

I'm unsure about PC3/PC4, they are connected to vias, but I can't trace them without unsoldering the PCB.

@h3ifri
Copy link
Author

h3ifri commented Dec 31, 2024

I unsoldered the PCB:

// (20) GPIO_PC0 - free
// (21) GPIO_PC1 - free
// (22) GPIO_PC2 - LED (->GND)
// (23) GPIO_PC3 - SDA
// (24) GPIO_PC4 - SCL

I2C is on PC3/PC4, which has no hardware support for it.

So this device is useless?

@pvvx
Copy link
Owner

pvvx commented Dec 31, 2024

For example, lktmzl02 uses a software implementation of I2C.

@h3ifri
Copy link
Author

h3ifri commented Jan 1, 2025

After a quick look, this is outside my skill set... I will try to rewire the sensor to PC0/PC1 :)

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

2 participants