- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hey folks,
I am trying to extract data out of a DHT11 Temperature sensor. Can you tell me whether there exists an example project or a library?
Trying to write it myself wasn't successful yet...
Solved! Go to Solution.
- Labels:
-
BLE
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Bratwust,
closest 1-wire library would be one made for DS18B20 by 'pavloven'. See this thread, and this website.
You likely have to modify it - timing and reading is different, may be not worth the effort.
odissey1
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Just looked into the DHT11 datasheet. First approach could be done with counters and a piece of logic.
When that works you could try to conquer by using an UDB and the datapath.
Challenging!!!
Bob
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
thank you all for help so far 🙂
I actually tried to prog it myself but I am not sure about the bidirectional pin. Do I have to switch somehow the data direction or can I just use the readpin and writepin functions?
like (pseudocode)
writepin(1);
CyDelay(20);
pinstate = readpin();
Thank you all again 🙂
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
See 7.1 of the following -
http://www.cypress.com/?rID=93401 AN86439 - PSoC® 4 - Using GPIO Pins
Regards, Dana.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hello Bratwurst, were you successful with the DHT11?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
I can offer you a simple project for PSoC4.
I used the library from this source: STM32 + DHT11
DHT11.cywrk.Archive01.zip
I have corrected the link..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Hi Pavloven. I'm dealing with the DHT22. I'm trying to download your project but the link seems to be not working. Can you share the link again?
Thank you.