Closed jake-g00dwin closed 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.
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
V1.0
Example data
I've documented the sensor interaction in the test's I've written using the actual data.
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???