|
Posted by D Herring on August 26, 2009, 9:28 pm
Boniq wrote:
> I have just bought an arduino microcontroller and as one of my first
> projekts I would like to make a small self balancing platform like
> segway (but tiny one). There is a dc motorcontroller add on to arduino
> that lets me control two motors (a motor shield). It seems to me that
> the only thing you can control with any of the shelf controllers is
> motor speed. But if the platfor is a bit out of balance a would like
> to stter the motor torque to get it back in balance. Not the speed.
> The speed would naturally follow. Does that make sense? But how do you
> control the torque output of (any) dc (brushless?) motor?? Or am I
> way of here...
I think you're on the right track. If you can calculate the angular
offset from vertical (e.g. with an ADXL accelerometer), then you can
calculate and apply a correcting torque.
These links show the sensors and control strategy used by another
balancing bot.
http://coecsl.ece.uiuc.edu/ge423/spring04/group9/objectives_sensors.htm
http://coecsl.ece.uiuc.edu/ge423/spring04/group9/technical_control.htm
- Daniel
|
> projekts I would like to make a small self balancing platform like
> segway (but tiny one). There is a dc motorcontroller add on to arduino
> that lets me control two motors (a motor shield). It seems to me that
> the only thing you can control with any of the shelf controllers is
> motor speed. But if the platfor is a bit out of balance a would like
> to stter the motor torque to get it back in balance. Not the speed.
> The speed would naturally follow. Does that make sense? But how do you
> control the torque output of (any) dc (brushless?) motor?? Or am I
> way of here...