Black Lives Matter - Action and Equality. ... Adafruit is open and shipping.
0

DHT22 not found
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

DHT22 not found

by ohnomrbill on Thu Jul 30, 2020 10:09 pm

Upgraded to circuitpython and DHT22 stopped working. Error message: DHT sensor not found, check wiring

Version.sh follows:
git:/opt/scripts/:[b39ec679648a6be8f25f48bd1c9784c1fc5a0c46]
eeprom:[A335BNLT000B1114BBBK1616]
model:[TI_AM335x_BeagleBone_Black]
dogtag:[BeagleBoard.org Debian Buster IoT Image 2020-04-06]
bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2019.04-00002-g07d5700e21]:[location: dd MBR]
UBOOT: Booted Device-Tree:[am335x-boneblack-uboot-univ.dts]
UBOOT: Loaded Overlay:[AM335X-PRU-RPROC-4-19-TI-00A0]
UBOOT: Loaded Overlay:[BB-ADC-00A0]
UBOOT: Loaded Overlay:[BB-BONE-eMMC1-01-00A0]
UBOOT: Loaded Overlay:[BB-HDMI-TDA998x-00A0]
kernel:[4.19.94-ti-r42]
nodejs:[v10.15.2]
/boot/uEnv.txt Settings:
uboot_overlay_options:[enable_uboot_overlays=1]
uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-19-TI-00A0.dtbo]
uboot_overlay_options:[enable_uboot_cape_universal=1]
pkg check: to individually upgrade run: [sudo apt install --only-upgrade <pkg>]
pkg:[bb-cape-overlays]:[4.14.20200722.0-0~buster+20200722]
pkg:[bb-wl18xx-firmware]:[1.20200702.0-0~buster+20200702]
pkg:[kmod]:[26-1]
pkg:[librobotcontrol]:[1.0.5-git20200715.0-0~buster+20200716]
pkg:[firmware-ti-connectivity]:[20190717-2rcnee1~buster+20200305]
groups:[debian : debian adm kmem dialout cdrom floppy audio dip video plugdev users systemd-journal bluetooth netdev i2c gpio pwm eqep remoteproc admin spi iio docker tisdk weston-launch xenomai cloud9ide]
cmdline:[console=ttyO0,115200n8 bone_capemgr.uboot_capemgr_enabled=1 root=/dev/mmcblk0p1 ro rootfstype=ext4 rootwait coherent_pool=1M net.ifnames=0 lpj=1990656 rng_core.default_quality=100 quiet]
dmesg | grep remote
[ 55.801451] remoteproc remoteproc0: wkup_m3 is available
[ 55.821468] remoteproc remoteproc0: powering up wkup_m3
[ 55.821498] remoteproc remoteproc0: Booting fw image am335x-pm-firmware.elf, size 217168
[ 55.821781] remoteproc remoteproc0: remote processor wkup_m3 is now up
[ 59.067926] remoteproc remoteproc1: 4a334000.pru is available
[ 59.082608] remoteproc remoteproc2: 4a338000.pru is available
dmesg | grep pru
[ 59.067926] remoteproc remoteproc1: 4a334000.pru is available
[ 59.068111] pru-rproc 4a334000.pru: PRU rproc node pru@4a334000 probed successfully
[ 59.082608] remoteproc remoteproc2: 4a338000.pru is available
[ 59.082760] pru-rproc 4a338000.pru: PRU rproc node pru@4a338000 probed successfully
dmesg | grep pinctrl-single
[ 0.949342] pinctrl-single 44e10800.pinmux: 142 pins, size 568
dmesg | grep gpio-of-helper
[ 0.962565] gpio-of-helper ocp:cape-universal: ready
lsusb
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
END

ohnomrbill
 
Posts: 25
Joined: Sat Jan 30, 2016 5:03 pm

Re: DHT22 not found

by drewfustini on Thu Jul 30, 2020 10:53 pm

Could you please post a photo of the wiring?

Thanks,
drew

drewfustini
 
Posts: 934
Joined: Sat Dec 26, 2015 1:19 pm

Re: DHT22 not found

by ohnomrbill on Fri Jul 31, 2020 8:02 am

py code:
import board
import time
import adafruit_dht
import datetime

#pin = 'P8_11' GPIO_45
dhtDevice = adafruit_dht.DHT22(board.P8_11)
#get time stamp which is GMT
timestamp = datetime.datetime.now().strftime('%Y-%m-%d/%H:%M:%S')

# location zipcode
loc = '75214'
temp_f=0.
humidity=0.
print ('X={}_{}_{}_{}'.format(timestamp,temp_f, humidity, loc))

i=1
#try five times to get a reading
while (i!=5):
try:
temp_f=(dhtDevice.temperature*1.8)+32
humidity=dhtDevice.humidity
print("Temp: {:.1f} F Humidity: {}% ".format(temp_f, humidity))
break
except RuntimeError as error:
print(error.args[0])
i=i+1
time.sleep(2.0)
#
Attachments
2020-07-31_06-37-28.jpg
2020-07-31_06-37-28.jpg (881.41 KiB) Viewed 57 times

ohnomrbill
 
Posts: 25
Joined: Sat Jan 30, 2016 5:03 pm

Re: DHT22 not found

by drewfustini on Sun Aug 02, 2020 1:53 pm

Thanks for posting the photo.

I'm waiting for a DHT22 to arrive so I can reproduce the issue and find a solution.

drewfustini
 
Posts: 934
Joined: Sat Dec 26, 2015 1:19 pm

Re: DHT22 not found

by ohnomrbill on Sun Aug 02, 2020 2:01 pm

thank you....

ohnomrbill
 
Posts: 25
Joined: Sat Jan 30, 2016 5:03 pm

Please be positive and constructive with your questions and comments.