Page 1 of 1

To interface GPS and humidity sensor to a microcontroller

PostPosted: Sun Feb 26, 2012 6:06 pm
by genycopz
Hi,
I'm a new member here. I have a project in hand and i'm stuck at where i am now. Can someone please enlighten me?
I have a humidity sensor, SN-HMD (http://cytron.com.my/viewProduct.php?pc ... y%20Sensor). When i look at the user manual, i see that pin3 (humidity, H) is connected through a resistor and a capacitor. While pin 1 (temperature, T) is connected through a resistor. What confused me is that when i look at the schematic of PR15-Reading Gas Humidity (http://www.cytron.com.my/attachment/Sch ... ematic.pdf),the pins (whether is temperature or humidity) are connected straight to the ADC pin of the microcontroller, that is without any use of capacitor nor resistor. Im using PIC16F877A (http://www.cytron.com.my/viewProduct.ph ... PIC16F877A).

I would be grateful if anyone can explain to me. Thanks a lot.

Have a nice day

Regards

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 11:50 am
by shahrul
The resistor and capacitor is only for filter. PIC reads the analog voltage. It's still working with or without the filter.
This is example use humidity sensor following the schematic like in the manual. This is for GPS.

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 6:23 pm
by genycopz
I really appreciate your reply, Mr Shahrul. Thank you so much.
I have look through at the two given link. The question that arise is how if im not connecting a LCD to the circuit? Where do i read the output from? Is there any software? And just wanna make sure, all this is compiled using MPLAB right?
Apologize as im really new to all this.
Thank you.

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 7:01 pm
by shahrul
genycopz WROTE:I really appreciate your reply, Mr Shahrul. Thank you so much.
I have look through at the two given link. The question that arise is how if im not connecting a LCD to the circuit? Where do i read the output from? Is there any software? And just wanna make sure, all this is compiled using MPLAB right?
Apologize as im really new to all this.
Thank you.

LCD is the best way to display the output. If not, you may use series of LED or display through serial port.
All that code compile with MPLab software and Hi-Tech compiler.

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 7:06 pm
by genycopz
Thank You Mr Shahrul for your reply.
Yes, im trying to display through serial port. Can you explain a little bit further please?
Apologize for the never ending questions.
Thank You

Regards

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 7:10 pm
by shahrul
Serial port just programming UART. Then, send through UART-to-USB. You can display on Hyperterminal or Visual Basic.

Re: To interface GPS and humidity sensor to a microcontrolle

PostPosted: Mon Feb 27, 2012 7:19 pm
by genycopz
Programming UART?
And Mr Shahrul, I have a silly question would it be possible to me you personally?
Thank You