Dtynin
Dtynin
How to Fetch and Display Data from DHT22 Sensor on AVR32UC with Zephyr OS?
finally gushh😂 , I choked it, I enabled detailed logging, which revealed an I/O error. I then double-checked the GPIO configuration, verified d pin setup, and added a pull-up resistor. After increasing delays and adding debug prints in d driver code, I finally moved the sensor to a different GPIO pin. I think I'm making progress in this, the sensor is now successfully fetching and displaying data. see this
[00:00:00.000,000] <inf> dht: DHT driver initialized
[00:00:00.000,001] <dbg> dht: Starting data fetch
[00:00:00.000,002] <dbg> dht: Starting measurement
[00:00:00.000,003] <dbg> dht: Reading data
Temperature: 25.4 C
Humidity: 60.7 %
[00:00:00.000,000] <inf> dht: DHT driver initialized
[00:00:00.000,001] <dbg> dht: Starting data fetch
[00:00:00.000,002] <dbg> dht: Starting measurement
[00:00:00.000,003] <dbg> dht: Reading data
Temperature: 25.4 C
Humidity: 60.7 %
11 replies