7 years, 7 months ago.

Testing DHT22 sensor with NUCLEO F401RE board using mbed OS 5

I want to test the DHT22 Temperature and Humidity sensor with my NUCLEO F401RE board (direct connection without a pullup resistor) I imported this code https://developer.mbed.org/teams/Skovbrynet/code/DHT22tester/ using "mbed import https://developer.mbed.org/teams/Skovbrynet/code/DHT22tester/" after adjusting the data and Error pins to my board (DigitalOut Error(PA_10); DHT dht22(PB_10,DHT22); ) I was able to compile it without errors. But when I used the minicom as a serial console I couldn`t get any reading for the temperature or Humidity as shown in the picture: /media/uploads/Mias/bildschirmfoto_vom_2016-08-30_12-42-46.png

why no results coming out from dht22.ReadTemperature(CELCIUS) and dht22.ReadHumidity() Can anyone help me with this?

Thanks in advance,

Maria

Be the first to answer this question.