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.
dht22_cfg_setup
Config Object Initialization function. dht22_init
Initialization function. dht22_get_measurement_data
DHT22 get measurement data from the sensor function. dht22_start_signal
DHT22 sends start signal to the sensor function. dht22_check_sensor_response
DHT22 release the bus to wait the sensor response signal function. This is a example which demonstrates the use of DHT22 Click board by measuring temperature and relative humidity.
The demo application is composed of two sections :
Initializes the SDA data pin depending on the selected GPIO pin (SDA1/SDA2) and log module.
Reads the temperature and humidity from the sensor and displays the values on the USB UART.
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.