range sensor + encoder + motor controller
tehmoordar
Posts: 52
HI,
I need to adjust my code as such that my motors should be runing and I am conitnously getting range and encoder giving me the rpm of my wheels.
I am using pololu micro dual motor controller. Which I am telling in the code to move from 50 to 127 that is its maximum speed.
I am attaching my code and I have been trying ti fix it but once it goes into speed of controlling motors it stops giving me my range and rpm -- what should I do
Thanks
I need to adjust my code as such that my motors should be runing and I am conitnously getting range and encoder giving me the rpm of my wheels.
I am using pololu micro dual motor controller. Which I am telling in the code to move from 50 to 127 that is its maximum speed.
I am attaching my code and I have been trying ti fix it but once it goes into speed of controlling motors it stops giving me my range and rpm -- what should I do
Thanks
Comments
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·
I have done the mdification as you suggested. I am not sure whether I have done right as you suggested . Have a look at it.
What happenig is that one it reads range and then it goes into main: and the it does speed up the motor as specified slowly and then stays there. I want once it is speeding up the motors it should continue to updating range and rpm aswel. All functions to happen simultaneously..
I am not getting what I want.
Thanks
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
Can I make it more quickly update the data of the sensors. at the moment to me it look jerky.
Thankyou for your help.
Dave
▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
Dave Andreae
Tech Support
dandreae@parallax.com
www.parallax.com
·