dht22
2.0.0.0
|
DHT22 click is a temperature and humidity measurement board carrying the sensor of the same name.
We provide a library for the Dht22 Click as well as a demo application (example), developed using MikroElektronika compilers. The demo can run on all the main MikroElektronika development boards.
Package can be downloaded/installed directly form compilers IDE(recommended way), or downloaded from our LibStock, or found on mikroE github account.
This library contains API for Dht22 Click driver.
void dht22_cfg_setup ( dht22_cfg_t *cfg );
DHT22_RETVAL dht22_init ( dht22_t *ctx, dht22_cfg_t *cfg );
void dht22_start_signal ( dht22_t *ctx );
uint8_t dht22_check_sensor_response ( dht22_t *ctx );
uint32_t dht22_get_sensor_data ( dht22_t *ctx );
It’s a low cost reliable solution that communicates with the target board microcontroller through a single Serial Data Line.
The demo application is composed of two sections :
Initialization driver enable's - GPIO and start write log.
This is a example which demonstrates the use of DHT22 Click board.
The full application code, and ready to use projects can be installed directly form compilers IDE(recommneded) or found on LibStock page or mikroE GitHub accaunt.
Other mikroE Libraries used in the example:
Additional notes and informations
Depending on the development board you are using, you may need USB UART click, USB UART 2 Click or RS232 Click to connect to your PC, for development systems with no UART to USB interface available on the board. The terminal available in all Mikroelektronika compilers, or any other terminal application of your choice, can be used to read the message.