balancing and position control
Posted: 17 Jan 2011, 20:54
Hi guys (and gals?)
I'm new to Mindstorms but recently managed to build a robot that is balancing on two wheels (you might call it a nxtway).
I'm quite satisfied so far
Now i want to have it drive forwards or backwards, i.e. controlling the position. But i don't really know how to do that.
For balancing, I control the light value from the sensors by adjusting the motorpower with a PID controller.
How do i control the position? Another PID controller controlling the position (i.e. the value of degrees that the motors rotated) by using the motorpower, too?
I guess the controllers would kind of work against each other.
But how could you do it? Any ideas or advices for me?
I'm new to Mindstorms but recently managed to build a robot that is balancing on two wheels (you might call it a nxtway).
I'm quite satisfied so far
Now i want to have it drive forwards or backwards, i.e. controlling the position. But i don't really know how to do that.
For balancing, I control the light value from the sensors by adjusting the motorpower with a PID controller.
How do i control the position? Another PID controller controlling the position (i.e. the value of degrees that the motors rotated) by using the motorpower, too?
I guess the controllers would kind of work against each other.
But how could you do it? Any ideas or advices for me?