To interface GPS and humidity sensor to a microcontroller

Discussion about projects that used PIC Microcontroller, Hardware Interface, Programming Algorithm and etc......

To interface GPS and humidity sensor to a microcontroller

Postby genycopz » Sun Feb 26, 2012 6:06 pm

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
genycopz
Freshie
 
Posts: 4
Joined: Sun Feb 26, 2012 5:56 pm

Re: To interface GPS and humidity sensor to a microcontrolle

Postby shahrul » Mon Feb 27, 2012 11:50 am

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: To interface GPS and humidity sensor to a microcontrolle

Postby genycopz » Mon Feb 27, 2012 6:23 pm

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.
genycopz
Freshie
 
Posts: 4
Joined: Sun Feb 26, 2012 5:56 pm

Re: To interface GPS and humidity sensor to a microcontrolle

Postby shahrul » Mon Feb 27, 2012 7:01 pm

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.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: To interface GPS and humidity sensor to a microcontrolle

Postby genycopz » Mon Feb 27, 2012 7:06 pm

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
genycopz
Freshie
 
Posts: 4
Joined: Sun Feb 26, 2012 5:56 pm

Re: To interface GPS and humidity sensor to a microcontrolle

Postby shahrul » Mon Feb 27, 2012 7:10 pm

Serial port just programming UART. Then, send through UART-to-USB. You can display on Hyperterminal or Visual Basic.
User avatar
shahrul
Professional
 
Posts: 812
Joined: Sat May 16, 2009 9:54 pm
Location: Selangor

Re: To interface GPS and humidity sensor to a microcontrolle

Postby genycopz » Mon Feb 27, 2012 7:19 pm

Programming UART?
And Mr Shahrul, I have a silly question would it be possible to me you personally?
Thank You
genycopz
Freshie
 
Posts: 4
Joined: Sun Feb 26, 2012 5:56 pm


Return to PIC Microcontroller

Who is online

Users browsing this forum: No registered users and 2 guests

cron