简体   繁体   中英

Usinr DHT11 sensor on jetson nano using python

I am trying to connect and use a DHT11 Temp sensor on a jeston nano. I am using C_DHT.c lib

Below is the kind of error msg I get:

gpioSetDirection: Unknown error 517
gpioSetValue: Operation not permitted
gpioSetValue: Operation not permitted
gpioSetDirection: Unknown error 517
gpioSetDirection: Unknown error 517
gpioSetValue: Operation not permitted
TG(-39909.0, -39909.0, 0)

Build and install C_DHT.c done successfully with sudo.

I just fixed the permission issues, it was due to wrong pin number setup. But I am still always getting (-39909.0, -39909.0, 0) as response. so no real measure. If anybody could help with correct connections, info are welcome. Thanks.

I am using a 3 pin DHT11, left pin connected to 3.3v center pin to pin 37 of the jetson nano for the data right pin to grn through a 10k resistor.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM