Temperature

spinnaker

Joined Oct 29, 2009
7,830
Hi,
Have my 16F690 with a big "rain" program in it.
Works fine, but i would like a temperatur in it also.
Any hint on how that could be possible ?

use TMP36GT9Z could be possible ?
Do i have enough input left for that ?

http://forum.allaboutcircuits.com/showthread.php?t=66348
it how it was done,.

Rgds
FroceMaster.

I assume you mean thermometer and not "temperatur". Yes you can use the TMP36GT9Z but it is an analog device and you will need an available analog input.

You don't post a schematic of your circuit so there is no way to determine if you have a pin available or not. Never ask a question without providing as much information as possible. A schematic is an important piece of information.


An easier chip to use (IMHO) is something like the DS18B20. It uses one wire protocol and all that is needed is an digital I/O pin. The problem is that you will most likely need a library to talk to the chip but there are a few libraries out there.
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Hi.
Sorry, yes a thermometer,

i have the RC4 RA0 RA1 and RA3 free on the 16f690
Could it be possible to use one of these.
i could post a scematic, but do not have an updated version.
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Davs. :)

You need to read the section in the datasheet containing the Analog-to-Digital converter. I think it is chapter 9.
Yes chapter 9,
RA0 would be a great input to use.
Could i just measure from 0.1v to 2 v it would be great
could i just read out the the input voltage ?

0.1 v = -40 C, 2v= +150 C
1900 mv 190 degree.
10mv pr degree.
 

nerdegutta

Joined Dec 15, 2009
2,689
Yes chapter 9,
RA0 would be a great input to use.
Could i just measure from 0.1v to 2 v it would be great
could i just read out the the input voltage ?

0.1 v = -40 C, 2v= +150 C
1900 mv 190 degree.
10mv pr degree.
What will be "sensing/reading" the temperature. LM35 or and NTC thermistor, or something else?

I did almost something like this in this thread:

http://forum.allaboutcircuits.com/showthread.php?t=72245
 

t06afre

Joined May 11, 2009
5,934
Hi,
Have my 16F690 with a big "rain" program in it.
Works fine, but i would like a temperatur in it also.
Any hint on how that could be possible ?

use TMP36GT9Z could be possible ?
Do i have enough input left for that ?

http://forum.allaboutcircuits.com/showthread.php?t=66348
it how it was done,.

Rgds
FroceMaster.
From what I remember. You have still some free pins on PORTA. If your PIC is using 5 volt as supply voltage, and keep things simple. You will get about .5 degree accuracy.
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
From what I remember. You have still some free pins on PORTA. If your PIC is using 5 volt as supply voltage, and keep things simple. You will get about .5 degree accuracy.
Yes,
Like this

and use RA0 as input,
and in software let it shift from temperature to rain, every 5 seconds.
it shouldnt be that hard or ?
could wish some "min" and "max" temperature since last reset.
 

Attachments

spinnaker

Joined Oct 29, 2009
7,830
Hi.
Sorry, yes a thermometer,

i have the RC4 RA0 RA1 and RA3 free on the 16f690
Could it be possible to use one of these.
i could post a scematic, but do not have an updated version.
Yes you could with the chip that I mentioned. Check your datasheet. Are one of them an analog pin? If so you could use the chip you mentioned.

You know you need to do some of the work too.
 

spinnaker

Joined Oct 29, 2009
7,830
Yes,
Like this

and use RA0 as input,
and in software let it shift from temperature to rain, every 5 seconds.
it shouldnt be that hard or ?
could wish some "min" and "max" temperature since last reset.
According to your schematic, You would need to use RA1. Or actually AN1. Not RA0. According to the schematic it is not analog. That is if you wanted to use the chip you mentioned. To use the chip I mentioned, it does not matter.
 

t06afre

Joined May 11, 2009
5,934
Yes,
Like this

and use RA0 as input,
and in software let it shift from temperature to rain, every 5 seconds.
it shouldnt be that hard or ?
could wish some "min" and "max" temperature since last reset.
Should not be any problem at all. How much RAM and ROM are you using now? But start simple just displaying the temprature. Then get the extras after that
 

Thread Starter

FroceMaster

Joined Jan 28, 2012
708
Should not be any problem at all. How much RAM and ROM are you using now? But start simple just displaying the temprature. Then get the extras after that
2318 of 4096
and
64 of 255

Memory Summary:
Program space used 90Dh ( 2317) of 1000h words ( 56.6%)
Data space used 40h ( 64) of 100h bytes ( 25.0%)
EEPROM space used 0h ( 0) of 100h bytes ( 0.0%)
Configuration bits used 1h ( 1) of 1h word (100.0%)
ID Location space used 0h ( 0) of 4h bytes ( 0.0%)

Should i use shielded wire or just ordinary ?
 

t06afre

Joined May 11, 2009
5,934
According to your schematic, You would need to use RA1. Or actually AN1. Not RA0. According to the schematic it is not analog. That is if you wanted to use the chip you mentioned. To use the chip I mentioned, it does not matter.
RA0 is a analog input named AN0.
 
Top