AHT10 Sensor
Oh it also sweats
AHT10, the new generation of temperature and humidity sensors sets a new standard in size and intelligence: it is embedded for reflow soldering. This sensor gives a calibrated digital signal outputs in standard I2C format. The AHT10 is equipped with a newly designed ASIC-specific chip, an improved MEMS semiconductor capacitive humidity sensing element and a standard on-chip temperature sensing element. Its performance has been greatly improved beyond the reliability level of previous generation sensors. More about the sensor and its functions can be found out at Aosong AHT 10 Datasheet.
#
Struct definition#
Usage:#
Trait implementationnew
for AHT10
#
Impl Returns pointer to the struct .
#
Usage:initialise
for AHT10
#
Impl #
Usage:Initiates the transmission by self initiating the sensor.
Returns true if done otherwise false.
soft_reset
for AHT10
#
Impl #
Usage:- Restart sensor, without power off.
- The sensor system begins to reinitialize and restores the default settings after this command
- The function takes less then 20 ms
read_to_buffer
for AHT10
#
Impl #
Usage:- Reads data from slave.
trigger_slave
for AHT10
#
Impl #
Usage- Triggers the AHT10 to read temperature/humidity.
wait_for_idle
for AHT10
#
Impl #
Usage:- Causes delay of 5ms when status bit is 0 and sensor is busy.
perform_measurement
for AHT10
#
Impl #
Usage:- Performs measurement .
status
for AHT10
#
Impl #
Usage:- Reads status bit returned by the slave.
relative_humidity
for AHT10
#
Impl #
Usage:- Reads 20 bit raw humidity data and returns relative humidity.
temperature
for AHT10
#
Impl #
Usage:- Reads 20 bit raw temperature data and returns temperature.