andyquirot
Member
Hi all
I am building a 1/8th scale tank and i have found that when traveling slow is works ok but when it gets to a steep incline i have to blip the stick forwards to give it a bit of extra boost. I have put a shaft encoser on the back of the motor and reading it using pulsin reading it in input pin 0, and was hoping to read the radio control singel into input pin 1, So if the tank came to an incline and the motor slowed down the 14M would detect it and increse the mark space ratio for me to keep it at a constant speed heres what ive got to so far. I do not get a constent number from the encoder so the test servo jumps around> HELP HELP required
start:
pulsin 0,1,b1
debug
if b1 > 31 then servo 1,130
else servo 1,100
end if
pause 20
goto start
Regards Andy Quirot
Jersey Channel Islands
I am building a 1/8th scale tank and i have found that when traveling slow is works ok but when it gets to a steep incline i have to blip the stick forwards to give it a bit of extra boost. I have put a shaft encoser on the back of the motor and reading it using pulsin reading it in input pin 0, and was hoping to read the radio control singel into input pin 1, So if the tank came to an incline and the motor slowed down the 14M would detect it and increse the mark space ratio for me to keep it at a constant speed heres what ive got to so far. I do not get a constent number from the encoder so the test servo jumps around> HELP HELP required
start:
pulsin 0,1,b1
debug
if b1 > 31 then servo 1,130
else servo 1,100
end if
pause 20
goto start
Regards Andy Quirot
Jersey Channel Islands