lhuet / beaglebone-project

Resources for beaglebone & raspberry pi
8 stars 4 forks source link

Beagle Bone Black DHT22 #1

Open paulrichards19 opened 11 years ago

paulrichards19 commented 11 years ago

Hey,

I just wondered if you've every tried this script (DHT22) on the new BeagleBone Black. I've just tried it and i'm getting a checksum error. When I uncomment that line the values are a bit wild as you might expect. I also had to move the pin it was attached to because that is used internally, just wondered what your thoughts were.

Thanks

lhuet commented 11 years ago

I've no BeaggleBone Black and thus, have not tried the DHT22 script on that board. Have you checked that the Beagle_GPIO (https://github.com/majestik666/Beagle_GPIO) lib is ok for BBB ? The timings are tricky. In the Beagle_GPIO_dht22.cc (https://github.com/lhuet/beaglebone-project/blob/master/DHT22/Beagle_GPIO_dht22.cc#L80), there is a "threeshold" (40 µs). Perhaps it's not the correct one for BBB ?