cancel
Showing results for 
Search instead for 
Did you mean: 

Interfacing DHT22 with STM32F429i

ahm56523
Visitor

I'm trying to interface DHT22 with STM32F429i but the problem is that the sensor never responds with the high signal for 80 micro seconds after the intialization. Here you can find my code, so please tell me what could be wrong, I have been debuging this for the past week with no progress.

 

if ((HAL_GPIO_ReadPin (DHT22_PORT, DHT22_PIN))) Response = 1; // if the pin is high, response is ok

 

this if statement in line 126 never goes true. therefore the response is -1.

 

 

0 REPLIES 0