Wednesday, December 21, 2016

homework and exercises - Yaw angle calculation for a two-wheeled inverted pendulum


[Sorry, if this is a basic question. I'm a software engineer, learning mechanical engineering concepts by trying to build a self-balancing robot]


I'm unable to understand the yaw angle equation:

ϕ=(RW)(θrθl)
used in NXT two-weheeled self balancing bot.


R - radius of the wheel.
W - Distance between the centres of the wheels.
θr, θl - Rotation angle of the right and left wheels respectively.
ϕ - yaw angle.


Coordinate system diagram for the two wheeled inverted pendulum model



Answer



The yaw angle is the rotation around a vertical axis.


It is easiest to understand if θl=0. In that case, the l wheel stays fixed and the r wheel travels in a circle around it. The distance the r wheel travels is Rθr. The robot rotates through an angle ϕ=R/Wθr.



If θr>θl>0, the robot drives around in a circle like a car turning. The r side travels farther. The center is on the l side of the robot. A line from wheel to wheel stays pointed at the center of the circle.


Each wheel drives around the same angle, ϕ=distance/radius.


ϕ=R/Rrθr=R/Rlθl.


For small angles, you can also calculate ϕ from the difference between the wheels' travel.


ϕ=Δdistance/Δradius=[(Rθr)(Rθl)]/W=R/W(θrθl)


No comments:

Post a Comment

classical mechanics - Moment of a force about a given axis (Torque) - Scalar or vectorial?

I am studying Statics and saw that: The moment of a force about a given axis (or Torque) is defined by the equation: $M_X = (\vec r \times \...