Skip to content
View in the app

A better way to browse. Learn more.

Armbian Community Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

DHT11 on NanoPi Neo Core 2

Featured Replies

Hi. I would like to ask you how to add and read temperature and humidity from sensor DHT11 on Nano Pi Neo Core 2 with armbian.
I want to use PA13 pin (CS form SPI1) I try to enable overlay:

 

sudo modprobe dht11
cat /sys/bus/iio/devices/iio:device0/in_temp_sclae
return : -119

 

When I try add dht11 to overlay in /boot/armbianEnv.txt this module after reboot is still disable. Any suggestions?

12 minutes ago, Rafal said:

When I try add dht11 to overlay in /boot/armbianEnv.txt

Which overlay are you talking about ?

Although it look physically to be a OneWire interface, it is not compatible on software side to real OneWire !

You would need to use libraries that do software bitbanging over plain GPIO, like this one : https://github.com/adafruit/Adafruit_Python_DHT.git

  • Author
Quote

You would need to use libraries that do software bitbanging over plain GPIO, like this one : https://github.com/adafruit/Adafruit_Python_DHT.git

 

I tried to read data from this phyton library but when I try to simpletest.py the error is:

 File "/usr/local/lib/python3.5/dist-packages/Adafruit_DHT-1.4.0-py3.5-linux-aarch64.egg/Adafruit_DHT/common.py", line 63, in get_platform
    raise RuntimeError('Unknown platform.')
RuntimeError: Unknown platform.

 

  • Author

Thanks for the links. I' m working on armbian 5.75 stable debian on my nano pi neo core 2.
I modify WiringNP library to my armbian version and it works great.

Guest
This topic is now closed to further replies.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.