PDA

View Full Version : DHT11 Temperature/Humidity sensor



mircogomiero
- 20th January 2013, 16:48
Hi all
Iam starting to use this DHT11 sensor with PBP compiler and my Pic16f877.

I thought it was easier, but is not so.
I have to use port RC0 of PIC and change from output to input to enable the reading of DHT11
for mi is a big problem..
Does anyone have any idea?

This is a link for an example in mikroC compiler for ths DTH11 but I do not know how I can convert it in PBP


http://embedded-lab.com/blog/?p=4333

Many thanks
Mirco

Normnet
- 21st January 2013, 00:33
Hi all
Iam starting to use this DHT11 sensor with PBP compiler and my Pic16f877.

I thought it was easier, but is not so.
I have to use port RC0 of PIC and change from output to input to enable the reading of DHT11
for mi is a big problem..
Does anyone have any idea?

This is a link for an example in mikroC compiler for ths DTH11 but I do not know how I can convert it in PBP


http://embedded-lab.com/blog/?p=4333

Many thanks
Mirco

See DHT11 temperature sensor from china (http://www.protonbasic.co.uk/showthread.php/66835-DHT11-temperature-sensor-from-china?highlight=DHT11) at an other compiler site.


Norm

Acetronics2
- 22nd January 2013, 07:23
Hi,

While "pasting" existing projects ...

you could download the example programs Mikroelektronika gives in the SHT11 module apps ...

there's a Mikrobasic example you could translate much easier ... ;)

Alain

gadelhas
- 22nd January 2013, 15:13
Hi,

While "pasting" existing projects ...

you could download the example programs Mikroelektronika gives in the SHT11 module apps ...

there's a Mikrobasic example you could translate much easier ... ;)

Alain

Hi Alain;

SHT11 is not the same as DHT11, they are much different!

mircogomiero
- 26th January 2013, 08:34
Hi
yes SHT11 is I2C device (data/clock)
SHT11 have one wire serial comunication.
I still have not solved the problem, but this weekend we'll be working.
I'll keep you informed.

Many thanks
Mirco


Hi Alain;

SHT11 is not the same as DHT11, they are much different!

Acetronics2
- 26th January 2013, 12:37
Hi Alain;

SHT11 is not the same as DHT11, they are much different!

Sure protocols are quite different !!!

but handling comms with PBP "already cooked" functions is very similar, if you have a closer look at it ... :rolleyes:

just need a little effort ...

Alain