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.
I can hazard a guess that changing this section of code
to thisCode:vt=adval * 500 vt=div32 1023 grup=vt+grup PAUSE 10
might save you a bit of code & ram space. But, I've not checked this, so, you'll beware. Again, if you notice,vt=adval >> 1
grup=vt+grup
PAUSE 10
I've used an approximation of divide by 2(500/1000) for 500/1023 instead of 1/2.046 I do not think it will matter much if you calibrate
the readings.
Wow ! Great support here ! Thanks to all !!!
In first post You can see : the temperature it's in Celsius degrees. The PID control it's a verry good ideea; sure I will use in future projects !
But...I try to do like Mr. Ioannis :
I think to reduce the "power" of heating by adjusting the pwm factors... It's OK ?!Code:if w1 < (calibra - 5) then pwm mosfet 255, 300 if w1 < (calibra - 3) then pwm mosfet 155, 250 if w1 < (calibra - 1) then pwm mosfet 100, 200 endif endif endif
Last edited by fratello; - 14th July 2011 at 06:26.
1. On the above code you do not need the 3 endif.
2. The credit is not for me. Maybe Jerson's?
Ioannis
Something like this : http://www.picbasic.co.uk/forum/show...7665#post97665
Oh, I see. OK, but take into account what I noted on the post.
It is slow and may oscillate. I am sure it will. Also depending on the resolution, the dead band may be large. Of course the larger it is the less it will oscillate.
Ioannis
I wrote this :
but the heating start ONLY when w1 < (calibra - 3) !Code:if w1 < (calibra - 3) then pwm mosfet 155, 250 if w1 < (calibra - 1) then pwm mosfet 100, 200
Why don't start when w1 < (calibra - 1) ?!?
Bookmarks