Comments (3)
I think I found the root cause: the pin is not pulled low long enough!
The datasheet asks for at least 18ms and I'm measuring ~8us!
Edit: It's weirder than this, now the timing is good, but the DHT11 is not even responding...
from hipi-sensor-kit-v4.0.
I find that the issue is those two lines:
HiPi-Sensor-kit-v4.0/Python/28_humiture.py
Lines 29 to 30 in f8d8c8e
Reason:
When the pin is set up as an output, it goes low for ~7us before the next code line brings it UP.
Solution:
Set up the GPIO as output and specify the initial level at the same time:
GPIO.setup(DHTPIN, GPIO.OUT, initial=GPIO.HIGH)
Replacing the two lines with the above code fixes initialization issues, and the lesson code works reliably!
from hipi-sensor-kit-v4.0.
Fixed in commit https://github.com/Martin-HiPi/HiPi-Sensor-kit-v4.0/blob/cad43bf2dee7c40b0e8bf08987dc044e28a46675/Python/28_humiture.py
from hipi-sensor-kit-v4.0.
Related Issues (2)
- ds1302 cant set the time HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from hipi-sensor-kit-v4.0.