Temperature sensor to OP Amps

Forum for problems or queries regarding other Flowcode Components. Eg LEDs, Switches, LCD, Gfx LCD etc

Moderators: Benj, Mods

Sufre Haji Muhamad
Flowcode V4 User
Posts: 16
Joined: Sat Jan 17, 2009 4:22 am
Has thanked: 4 times
Contact:

Temperature sensor to OP Amps

Postby Sufre Haji Muhamad » Wed Feb 03, 2010 11:45 pm

HI, I am working with PIC16F877A to operate a motor using a temperature sensor (LM35DZ) reading in Deg Celcius with output 10mV = 1C, as far as I know, it needs LM358 (operational amplifier). Does any body have experience how to connect these components to the PIC? Is there any other technique being used for this purpose? Help me please....

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 8236
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2358 times
Been thanked: 3346 times
Contact:

Re: Temperature sensor to OP Amps

Postby medelec35 » Fri Feb 05, 2010 7:23 am

If you use a 10 Bit ADC (ReadAsInt) then Resolution is approx 4.9mV. Or have though of a using lower external reference voltage for ADC to increase sensitivity? I believe that requires the FCD file for you chip to be modified. I'm not saying these are better, just a bit eaiser.
Martin

If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Sufre Haji Muhamad
Flowcode V4 User
Posts: 16
Joined: Sat Jan 17, 2009 4:22 am
Has thanked: 4 times
Contact:

Re: Temperature sensor to OP Amps

Postby Sufre Haji Muhamad » Mon Feb 08, 2010 4:48 pm

I don't understand what is FCD file, please explain...Thanks.

User avatar
Benj
Matrix Staff
Posts: 13980
Joined: Mon Oct 16, 2006 10:48 am
Location: Matrix TS Ltd
Has thanked: 4244 times
Been thanked: 4006 times
Contact:

Re: Temperature sensor to OP Amps

Postby Benj » Tue Feb 09, 2010 2:00 pm

FCD files are the definition files used by Flowcode to give specific information about your microcontroller. In v3 the FCD file also contains the code to perform an ADC conversion.