HB25 help
Miles. k
Posts: 34
i am building a robot with 2 HB25 motor controllers. Below is one of the subroutines.
FOR pulsecount = 0 TO 5
PULSOUT HB25, 850
PAUSE 1
PULSOUT HB25, 650
PAUSE 20
NEXT
when i run the program the right wheel spins about 1 second longer than the left wheel.
When both wheels are just suppose to stop at the same.
How can i fix this?
Thanks,
Miles. K
FOR pulsecount = 0 TO 5
PULSOUT HB25, 850
PAUSE 1
PULSOUT HB25, 650
PAUSE 20
NEXT
when i run the program the right wheel spins about 1 second longer than the left wheel.
When both wheels are just suppose to stop at the same.
How can i fix this?
Thanks,
Miles. K
Comments
Posting the rest of Your code would help.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
The Truth is out there············___$WMc%___···························· BoogerWoods, FL. USA
' {$PBASIC 2.5}
pulseCount VAR Byte
HB25 PIN 13
FOR pulsecount = 0 TO 5
PULSOUT HB25, 850
PAUSE 1
PULSOUT HB25, 650
PAUSE 20
NEXT
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
- Stephen
Thanks,
Miles