Personal-Data-Acquisition / sensor_lib_aht20

A library for the AHT20 sensor module, meant to be used as a git sub-module
BSD 3-Clause "New" or "Revised" License
0 stars 1 forks source link

Clarification needed on Datasheets #11

Closed jake-g00dwin closed 9 months ago

jake-g00dwin commented 10 months ago

Currently there are around 3-4 versions or revisions of the AHT20 datasheets running around online from the manufacturer.

They all seem mostly similar but have various translation mistakes and disagree with each other on what bits are reserved or not.

The data sheets in question also list parameter bytes that have an unexplained purpose.

These need to be looked into and some tests need to be preformed with the physical sensor to ensure that the data-sheets and physical hardware correspond to each-other correctly.

I'm thinking maybe building a small tool/program to interactively allow I2C usage. Or perhaps another way to verify sensor functionality.

GOALS

v1.0 2021 v1.1 202X???

jake-g00dwin commented 9 months ago

So far I'm moving forwards by doing my best to just kinda glue the datasheets info together in the code implementation. I think verification will have to be done physically on the bluepill+sensor combo. So I'll work on figuring that part out next.

jake-g00dwin commented 9 months ago

Datasheets v1.0 and v1.1 are in conflict. Under section 5.4 in both datasheets they have conflicting information of the 6bytes of data they are supposed to send.

V1.0 indicates two 20bit sequences for the humidity and temperature respectively; where as v1.1 indicates a 24bit humidity reading and a 16bit temperature reading.

V1.1 image

V1.0 image

Example data image

jake-g00dwin commented 9 months ago

I've documented the sensor interaction in the test's I've written using the actual data.