Pic16f870 and LM35

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Pic16f870 and LM35

Post by Henk »

Hello there,

The LM35 is a temperature sensor and 10mV is 1 degree.
I use a pic 16f870 and I use the analoge input that is 0 to 1023
and I use a 4 digit led.
Is it possible to make a calculation so that I can see 0,1mV is 1 bit?

Henk

Sean
Valued Contributor
Valued Contributor
Posts: 548
Joined: Tue Jun 26, 2007 11:23 am
Has thanked: 6 times
Been thanked: 44 times
Contact:

Re: Pic16f870 and LM35

Post by Sean »

Hello.

The 10-bit ADC conversion, with the default 5v reference, resolves down to 4.88mV. The resolution can be increased to 1.95mV by selecting one of the external reference voltage options (requires a modified .fcd file for the device - http://www.matrixmultimedia.com/mmforum ... hilit=vref, http://www.matrixmultimedia.com/mmforum ... vref#p7981) and providing an accurate 2v reference.

Further increases in effective resolution could only be achieved by amplifying the original signal (a minimum gain of approximately 20 would be required)

Henk
Posts: 40
Joined: Sun May 20, 2007 11:03 am
Location: Nederland
Contact:

Re: Pic16f870 and LM35

Post by Henk »

sean wrote:Hello.

The 10-bit ADC conversion, with the default 5v reference, resolves down to 4.88mV. The resolution can be increased to 1.95mV by selecting one of the external reference voltage options (requires a modified .fcd file for the device - http://www.matrixmultimedia.com/mmforum ... hilit=vref, http://www.matrixmultimedia.com/mmforum ... vref#p7981) and providing an accurate 2v reference.

Further increases in effective resolution could only be achieved by amplifying the original signal (a minimum gain of approximately 20 would be required)
Sean,
Thanks for your information.

Henk

Post Reply