jnthbdn / rs-dht-pio Goto Github PK
View Code? Open in Web Editor NEWA PIO driver for DHT sensor
License: MIT License
A PIO driver for DHT sensor
License: MIT License
Thanks for a great attempt at making a PIO base DHT crate.
I have tried to make your crate work, but without success. The readback of data fails with a timeout. I can see (with oscilloscope) that the readback is correctly triggered and that the protocol timing looks ok. Setting breakpoints in the dht.rs read_data() I can see that the response from the DHT22 is immediately after the self.tx_fifo_write(1). So the sm is running. But there is no data sampled and self.rx_fifo.read() always returns None. I cannot see any obvious flaws in the pio program, but I am not an expert at this. Any idea of what could cause this?
I have also compiled your example (using gpio10 btw) and it also returns timeout.
Br.
Geir
My DHT reported -3275.1C when the temp outside was a bit below 0C
DHT22: -3275.1C, 76.5%
Pretty sure it was not that cold outside ๐ค
Regards,
Geir
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.