Hi Malc,
Use ...
Setpoints(ADchan)
<br>
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
.
Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
.
There simply is no "Happy Spam" If you do it you will disappear from this forum.
Thanks, but really the credit for the coding goes to Darrel.
I'm still a rookie in PBP, and it's taking me hours to try and work this out and I'm still having trouble getting the value from the pot to change the set temperature
Still need help (Darrel ??)
andCode:FOR ADchan = 0 to 3 GOSUB GetADC pots(ADchan) = ADvalue SetPoints(ADchan) = (Advalue / 100) if SetPoints(ADchan) <200 then SetPoints(ADchan) = 200 if SetPoints(ADchan) >500 then SetPoints(ADchan) = 500 NEXT ADchan
Gives a value on the LCD of between 1 and 8184 as the pot is turned from one extreme to the otherCode:LCDOUT $FE,$C0, DEC pots(0)>>1," "
however
Gives a static number, of 100 regardless of what position the pot is set toCode:LCDOUT $FE,$C0, DEC SetPoints(0)>>1," "
I would also like to know what to change to get the PC display to show the value of the setpoints - it still remains the same value (26 degrees) set by EE_setpoint value in the initial stages even though I've changed the setmode to manual
Managed to get this part to work.
Now get a value between 0 and 818 when the pot is movedCode:FOR ADchan = 0 to 3 GOSUB GetADC pots(ADchan) = ADvalue/10 SetPoints(ADchan) = pots(ADchan) if SetPoints(ADchan) <200 then SetPoints(ADchan) = 200 if SetPoints(ADchan) >500 then SetPoints(ADchan) = 500 LCDOUT $FE,$C0, dec pots(0)>>1," "
Maybe I jumped to soon...
strange thing is that whist the lcd is showing a value of 71, which I would assume would give a set point of 7.1 degree, the value on the PC is showing as 14.3![]()
Bookmarks