Calculate turning angle - 2 wheels car

Click For Summary
SUMMARY

The discussion focuses on calculating the turning angle for a two-wheeled model car using the difference in wheel speeds. The formula derived indicates that the turning radius (r) can be calculated using the wheel speeds (u and v) and the car's width (w) with the equation r = h * (u + v) / (u - v), where h is half the width of the car. Participants emphasize that knowing the desired turning radius allows for the computation of the necessary wheel speeds to achieve a specific turning angle, such as 30 degrees, without needing to measure the radius directly.

PREREQUISITES
  • Understanding of basic physics principles related to motion and turning.
  • Familiarity with mathematical equations involving ratios and proportions.
  • Knowledge of two-wheeled robot dynamics and control.
  • Experience with programming and controlling motors in robotics.
NEXT STEPS
  • Research the implementation of the turning radius formula in Python or C++ for robotics.
  • Learn about using shaft encoders for precise wheel speed measurement.
  • Explore the mathematics of circular motion and its application in robotics.
  • Investigate control algorithms for differential drive systems in mobile robots.
USEFUL FOR

Robotics enthusiasts, hobbyists building model cars, and engineers working on mobile robot navigation will benefit from this discussion.

alona1
Messages
2
Reaction score
0
i am looking for a function for calculating the turning angle, using the difference between two wheels speed.

i have a model car , with 2 engines and 2 wheels, without steering.

thanks.
 
Engineering news on Phys.org
Welcome to PF.
What do you mean by turning angle? Maybe the radius r, of the curve measured from the midpoint of the car to the centre of the arc would be a better measure. If the car has a width w, with half width being h=w/2, then the radii of the two wheel tracks about the centre of the turn will be r–h and r+h. The relative speeds of the two wheels, u and v, will be proportional to the ratio of the radii.
u/v = (r-h) / (r+h) which I think will give you something like r = h * (u+v) / (u-v)
The sign of r should give you the direction of the turn.
 
Thanks.
I can't measure the radius r while the car is driving. I know the width W between both wheels and can control the velocities of the wheels.
Is there opportunity to know the angle of the curve by these? For example, for turning 30 degrees what velocities will be needed in each wheel?
 
You do not need to measure the radius. You specify the radius you require, then compute the ratio of the wheel speeds needed to achieve that radius.

If you know the radius you can work out the distance you must travel to change direction by say 30°. Circumference = 2 Pi r,
therefore the distance needed to turn 30° is d = 2 π r * 30 / 360.
 
Are you programming a boe-bot?
 
How do you measure or control the wheel position or rates. Shaft encoders, stepper motors?
 

Similar threads

Replies
9
Views
2K
Replies
1
Views
1K
Replies
2
Views
1K
  • · Replies 24 ·
Replies
24
Views
4K
Replies
1
Views
675
Replies
2
Views
2K
  • · Replies 18 ·
Replies
18
Views
7K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 6 ·
Replies
6
Views
3K
  • · Replies 12 ·
Replies
12
Views
3K