Hi all !
I have a question regarding the following code:
main:
readadc 0,b1
readadc 1,b2
if b2<20 and b2>230 then gosub stop
if b1<120 then check
if b1>135 then check
goto Main
Would anyone recommend a pause from the analog inputs?
Or would it be better to use readc10 (10 bit resolution)?
the reason I ask is because I'm trying to control a dc motor with this code but it jitters when position is reached.(this is not the full code) I could post it if anyone is interested.
Once again thanks for your help !!!
I have a question regarding the following code:
main:
readadc 0,b1
readadc 1,b2
if b2<20 and b2>230 then gosub stop
if b1<120 then check
if b1>135 then check
goto Main
Would anyone recommend a pause from the analog inputs?
Or would it be better to use readc10 (10 bit resolution)?
the reason I ask is because I'm trying to control a dc motor with this code but it jitters when position is reached.(this is not the full code) I could post it if anyone is interested.
Once again thanks for your help !!!