Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
interfaces:dht11 [2024/05/29 12:44] darroninterfaces:dht11 [2024/11/28 07:53] (current) – [Resources] darron
Line 4: Line 4:
 {{:interfaces:dht11.jpg?200}} \\ {{:interfaces:dht11.jpg?200}} \\
 {{:interfaces:dht11-pinout.jpg?200}} \\ {{:interfaces:dht11-pinout.jpg?200}} \\
- 
 </wrap> </wrap>
  
 +Humidity and temperature sensor.
 +
 +The temperature sensor is reasonably accurate but humidity
 +is ludicrously inaccurate but can be used to determine humidity
 +changes?
 ===RPi=== ===RPi===
 +
 +In the past (2/1/2016) the kernel mode for reading the DHT11 did not work
 +reliably or at all but in 2024 it appears to be functional but may require
 +a few retries.
  
 ==config.txt== ==config.txt==
  
 <code> <code>
-#dtoverlay=dht11,gpiopin=17+dtoverlay=dht11,gpiopin=17
 </code> </code>
  
 +==Temperature==
 +
 +<code>
 +cat /sys/bus/iio/devices/iio:device0/in_temp_input
 +26000
 +</code>
 +
 +==Humidity==
 +<code>
 +cat /sys/bus/iio/devices/iio:device0/in_humidityrelative_input
 +18000
 +</code>
 +===Resources===
 +
 +[[https://cdn-learn.adafruit.com/downloads/pdf/dht.pdf|Arduino guide]]
 +
 +[[https://www.mouser.com/datasheet/2/758/DHT11-Technical-Data-Sheet-Translated-Version-1143054.pdf|Translated data-sheet]]