Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 4848

Beginners • Re: DHT11 sensor with Raspberry Pi Pico

$
0
0
From Thonny, look at the files on your Pico (if you don't have the Files pane, go to View → Files to enable it). Find the dht.py (it might be in /lib) and delete it (either right-click contect menu after selecting it, or the hamburger menu at the top of the files pane). If it's not there, don't worry! The version frozen into the firmware should always get picked up.

As for the pull-up resistor, either of these will work, and use whichever is more convenient to you:
  • between DATA and VCC on the DHT11; or
  • between the VCC breadboard power rail and DATA on the DHT11;
  • (between the VCC breadboard power rail and GP16 on the Pico would also work)
As with all DHT sensors, don't try to read them too often, and make plans for when they decide to return no value. They sometimes do that: it's nothing you're doing wrong, they just sometimes don't feel like returning a reading. That's why I use AHT2x sensors now.

Statistics: Posted by scruss — Sun Jun 23, 2024 11:52 pm



Viewing all articles
Browse latest Browse all 4848

Trending Articles