Yea lm35, I overlooked that. You have right. I had no info about Cobuccit's setup, wiring, etc. Difficult to gave correct advice. If he use your posted schematic, and code it must be run whitout problems.
Yea lm35, I overlooked that. You have right. I had no info about Cobuccit's setup, wiring, etc. Difficult to gave correct advice. If he use your posted schematic, and code it must be run whitout problems.
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 schematic leads to pointless speculation and wasted time and resources
if you are using a version of pbp that noah had in the ark at least tell us.
gigo garbage in garbage out
lucky covid has us all trapped inside bored shitless
Warning I'm not a teacher
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
samples = samples + temp
PAUSE 40 ' Wait 1/4 seconds per reading
NEXT sample
temp = (samples/10) -558 'subtract 2.73 v offset count
temperature= temp */ quanta
LCDOUT $FE, 1 ' cancella LCD
lcdout "Temp ",dec2 (temperature/10),".", dec1 (temperature//10),$DF,"C"
lcdout $FE, $C0,"temp raw ", dec temp
If temperature > (Tmax*10) then
rele=1
else
rele=0
Endif
goto main
Last edited by richard; - 10th April 2020 at 08:29.
Warning I'm not a teacher
Bookmarks