English | 简体中文 | 繁體中文 | 日本語 | Deutsch | 한국어
The AHT25 temperature and humidity sensor is equipped with a newly designed ASIC dedicated chip, an improved MEMS semiconductor capacitive humidity sensor element and a standard temperature sensor element, and its performance has reached the industry's advanced level. The improved new generation temperature and humidity sensor AHT25 has more stable performance in harsh environments and can maintain good accuracy in a larger measurement range. AHT25 uses standard-pitch plug-in connectors, which can be easily replaced in application. Every sensor has been rigorously calibrated and tested. Due to the improvement and miniaturization of the sensor, its cost performance has become higher.
LibDriver AHT25 is a full-featured driver for AHT25, launched by LibDriver.It provides temperature reading, relative humidity reading and additional features. LibDriver is MISRA compliant.
/src includes LibDriver AHT25 source files.
/interface includes LibDriver AHT25 IIC platform independent template.
/test includes LibDriver AHT25 driver test code and this code can test the chip necessary function simply.
/example includes LibDriver AHT25 sample code.
/doc includes LibDriver AHT25 offline document.
/datasheet includes AHT25 datasheet.
/project includes the common Linux and MCU development board sample code. All projects use the shell script to debug the driver and the detail instruction can be found in each project's README.md.
/misra includes the LibDriver MISRA code scanning results.
Reference /interface IIC platform independent template and finish your platform IIC driver.
Add the /src directory, the interface driver for your platform, and your own drivers to your project, if you want to use the default example drivers, add the /example directory to your project.
You can refer to the examples in the /example directory to complete your own driver. If you want to use the default programming examples, here's how to use them.
#include "driver_aht25_basic.h"
uint8_t res;
uint8_t i;
float temperature;
uint8_t humidity;
res = aht25_basic_init();
if (res != 0)
{
return 1;
}
...
for (i = 0; i < 3; i++)
{
aht25_interface_delay_ms(2000);
res = aht25_basic_read((float *)&temperature, (uint8_t *)&humidity);
if (res != 0)
{
(void)aht25_basic_deinit();
return 1;
}
aht25_interface_debug_print("aht25: temperature is %0.2fC.\n", temperature);
aht25_interface_debug_print("aht25: humidity is %d%%.\n", humidity);
...
}
...
(void)aht25_basic_deinit();
return 0;Online documents: https://www.libdriver.com/docs/aht25/index.html.
Offline documents: /doc/html/index.html.
Please refer to CONTRIBUTING.md.
Copyright (c) 2015 - present LibDriver All rights reserved
The MIT License (MIT)
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
Please send an e-mail to lishifenging@outlook.com.