problem with encoders
stamp_demon
Posts: 69
Tonight I installed the bs2px. Sence I have the wheel encoders seem to be acting up.. After start up, it just spins in a circle.. All lines seem to be connected correct, but it just spins in circles. The encoders were originally hooked up a few weeks ago, and has performed quite well up till now...
· Thanx again _Duane
· Thanx again _Duane
Comments
·· Some of the timing parameters for the BS2px are different than some of the other BS2 models, perhaps you should post your code and we can see what's going on.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
Post Edited (Chris Savage (Parallax)) : 5/18/2005 3:29:13 AM GMT
· You're going to need to test your code in smaller sections or something.· Frankly I can't see how this code worked anyway, since it appears to be missing sections.· There are GOSUBs to several labels that don't exist.· Therefore it's impossible to help you because this code won't run any any BASIC Stamp.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com
it was something like this....
main:
do
pulsout 12,850
pulsout 13,650
pause 20
loop
it just spun in circles .. wich leads me to belive that there is a difference in timming/pulsout· for the bs2px.. sadlly i donot know what value is required for forward,reverse, right,and left turns....
thanx again duane
·· Yes, I explained this at the beginning of the thread.· Try changing the values to those used for the BS2p.· You're using the BS2 timing for the PULSOUT, and those won't work.· If you have any questions, look in the help file under PULSOUT.· It explains the differences in the timing there.
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Chris Savage
Parallax Tech Support
csavage@parallax.com