i feel no shame , if it looks like a duck and it walks like a duck i'm prepared to say it could be a duck.
you misled us with the sensor type, provided code that really can't display a meaningful...
Type: Posts; User: richard; Keyword(s):
i feel no shame , if it looks like a duck and it walks like a duck i'm prepared to say it could be a duck.
you misled us with the sensor type, provided code that really can't display a meaningful...
seems likely when you analyse it a bit
how many newcomers can use the */ operator properly
temperature= (temp*10) */ quanta
or format a lcd line
lcdout $FE, 2, "Temp ",dec2...
guess its my fault , should have launched into defensive mode on first reply
like this
it looked too easy.
http://www.picbasic.co.uk/forum/showthread.php?t=24035
questions to ask
if your lm335 setup was used you need to subtract the offset
eg
main:
samples=0
FOR sample = 1 TO 10 'Take 10 samples
ADCIN 0, temp 'Read AN0 into temp variable
...
yes its a good reminder.
code snippets for debugging are a pointless exercise
code without a config section or at least in some way describing the config settings is a waste of time
code without a...
this won't work properly with those readings either
670 */ 1250 = 3271 and would display as 27.1 deg with following code
temperature= temp */ quanta ; this result is now 4 digits
i see no schematic anywhere and post 1 says a lm35, a pullup for a lm35 is not warranted.
this has turned into a pointless exercise in guesswork.
i think i see the problem, if louis is using a 16f690 then the adc settings used are totally inappropriate
adc control on a 16f690 is quite different to a 16f88
define osc 4 ;there is no...
i get same result from proteus
88208821
'****************************************************************'*
'* Name : 16F88_LM35.BAS *
'* Author : ...
correct 10 bit 1024 counts @5v vcc
not sure whats going on here
my LM35 has a 0.3 volt output @30c, adc value 61 [10mV/deg]
an adc read of 675 would need 329 deg
lcdout $FE, $C0," TEmpe", dec temperature
removing all the unused/unecessary stuff " just noise" , using a proper config and displaying a result more in keeping with lm35 accuracy
this...
lcdout $FE, $C0," TEmpe", temperature
what does this line display the temperature value as ?
Tmax=Tmax*100 you cannot do this ,Tmax is a byte var
If temperature > Tmax then
rele=1
else
rele=0
Endif
goto main
for a Temperature of 30 deg the temperature var would equal 3000 , what 3 digit number are we talking about, the display is to two
decimal points the comparison must be on equal terms
If...
DatoEE is never defined
i see that no data is stored to eeprom therefore tmax and tmin = 255
then --
If temperature > Tmax then
PORTA.6=1
Endif
why would porta.6 change if temperature <...