use PSoC3 to control DHT11(Temperature & Humidity Sensor)

A catchall for PSoC3 discussions not captured by the other forums.

Moderator: ericb

use PSoC3 to control DHT11(Temperature & Humidity Sensor)

Postby Maxwellyuan » Fri Oct 11, 2013 1:29 am

I use PSoC 3 to communicate with DHT11 (Temperature & Humidity Sensor), I configure the pin as bidirectional, and the drive mode is resistive pull down, I need to output the signal to active the sensor and then receive the signal from the sensor.

I complete my project, but it can't work .I am not sure how to control the pin , especially the configuration. I don't find out the problem, so I upload my project, please have a look.

Actually, DHT11 is a 1 Wire Digital Sensor : http://www.micro4you.com/files/sensor/DHT11.pdf

I make enough comments in the main.c ,so it can be read easily.
Attachments
Dht11.rar
(994.8 KiB) Downloaded 246 times
Maxwellyuan
Newbie
Newbie
 
Posts: 1
Joined: Fri Oct 11, 2013 12:44 am

Re: use PSoC3 to control DHT11(Temperature & Humidity Sensor

Postby bobmarlowe » Fri Oct 11, 2013 6:08 am

PSoC Creator has a function to collect the needed project-files (File -> Create Workspace Bundle). So no need to use additional software for compressing.


Bob
User avatar
bobmarlowe
The Big Cheese
The Big Cheese
 
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany

Re: use PSoC3 to control DHT11(Temperature & Humidity Sensor

Postby bobmarlowe » Fri Oct 11, 2013 6:51 am

Having a brief look at the datasheet it seems that the best (though not easiest) solution would be to program an 8-bit datapath using VeriLog. Timings in µs are difficult to archieve by the CPU due to the time needed for instruction execution and could be done best in hardware. Fortunately a PSoC (3 or 5) has got plenty of that. The question is: Are you experienced (or willing to learn) to program it?


Bob
User avatar
bobmarlowe
The Big Cheese
The Big Cheese
 
Posts: 1490
Joined: Thu Oct 06, 2011 2:03 am
Location: Germany

Re: use PSoC3 to control DHT11(Temperature & Humidity Sensor

Postby danadak » Fri Oct 11, 2013 6:33 pm

This thread might help -

http://www.cypress.com/?app=forum&id=2232&rID=57302

Regards, Dana.
Field Application Engineer
KB1RHB Mostly listen :)
Semi Retired
User avatar
danadak
The Big Cheese
The Big Cheese
 
Posts: 2008
Joined: Thu Dec 27, 2007 8:42 am
Location: New Hampshire


Return to “%s” PSoC3 General

Who is online

Users browsing this forum: No registered users and 2 guests