How to turn my robot 90 degrees ?

  • Thread starter Thread starter ranoosh96
  • Start date Start date
  • Tags Tags
    Degrees Robot
Click For Summary

Discussion Overview

The discussion revolves around the challenge of programming a robot to turn precisely 90 degrees while drawing a square. Participants explore various methods and technologies to achieve accurate turning, including motor control strategies and sensor integration.

Discussion Character

  • Exploratory
  • Technical explanation
  • Debate/contested
  • Mathematical reasoning

Main Points Raised

  • One participant describes their robot's configuration, noting it has two DC motors and a pen in the center, which complicates achieving a precise 90-degree turn.
  • Another participant suggests that to turn 90 degrees, one motor should be activated for a specific time, but this would result in a curved turn rather than a sharp angle.
  • It is proposed that to correct for the curvature, both motors could be activated in opposite directions for a shorter duration to achieve a more accurate turn.
  • Concerns are raised about the need for precise timing due to factors like acceleration, deceleration, and wheel slip, with recommendations for experimentation to estimate motor timings.
  • Some participants recommend using sensors, such as wheel encoders or a magnetic compass, to improve accuracy in turning and to measure the robot's position.
  • A later reply indicates that using encoders to control the wheels can simplify achieving a right angle by reversing one wheel's direction relative to the other.

Areas of Agreement / Disagreement

Participants express a range of views on the best approach to achieve a 90-degree turn, with no consensus on a single method. Some advocate for timing and experimentation, while others emphasize the importance of sensor integration for accuracy.

Contextual Notes

Participants mention various factors that could affect the robot's turning accuracy, including wheel slip and the need for precise measurements, but these aspects remain unresolved within the discussion.

Who May Find This Useful

This discussion may be useful for robotics enthusiasts, hobbyists working on similar projects, and individuals interested in motor control and sensor integration for precise movement in robotic applications.

ranoosh96
Messages
3
Reaction score
0
how to turn my robot 90 degrees ??

firstly I am an arabian so I wish you can talk an easy accent ^^


I will try to tell you every thing about my project in english
am working on robot which makes a square

but I couldn't turn it 90 degrees exactly

my robot has two motors dc every motor connected with one wheel
the task of my robot is Draw a square ...

I used pwm to controll the wheels so that the speed of each wheel with especially then The robot goes towards at least the wheel speed of the other

If you have an Idea to make a square without pwm please tell me ^_^

I wish my article is right hhhhhh sorry I am not so good at english ^^
 
Last edited by a moderator:
Engineering news on Phys.org


Oops! I forget to tell you that , my robot has pin in the middle of the structure of the robot
so ... the robot draws wherever it walks
 


I'm going to presume that your 'bot has two wheels with the pen in the center between them (rather than something like a regular car which has four wheels where only the front ones turn). To make a 90deg turn "all you need to do" is turn on one of the motors for a specific amount of time, but this will make it turn around the other wheel rather than the pen in the center and you'll draw a curved corner. To get around that you can turn on the other wheel, going in the opposite direction, for the same amount of time -- actually, turn both on for half the time of the single motor since that will add up to the same effective distance traveled.

The problem is knowing the exact amount of time to get 90 deg, including acceleration, deceleration and wheel slip. If all you need to draw is something that looks sort-of-like a rectangle, then you can just estimate the motor on time with some experiments. Otherwise you need sensors. If your project needs accurate turn angles and repeatability you'll need to use some combination of wheel-encoders to tell you how far the wheels have gone and location devices like an electronic compass or ground sensors (In some cases the guts of a computer mouse could be used).
 


schip666 has good advice. In addition I think you will need better accuracy for making a 90 deg. turn than timing the motors. Perhaps you could incorporate a magnetic compass to tell you when you've turned 90 deg.

http://www.robotshop.com/magnetic-sensors-compass.html
 


closed loop control schipp is suggesting is always better than just "aim and shoot".

funamental principle - measure where you've gone and apply corrections to get where you're going. good life advice, too.

i like the idea of mouse sensors. they're made to measure where mouse has gone.

check out hobby robotics sites

my two cents...
 
Last edited:


oky thanks for all ... I found the solution finally it's so simple ..just use encoder to controll the wheels .. and when U want to make right angle (90 deg ) Make the wheel goes in the opposite direction of the second wheel ... ^_^ thank U schip666 :)
 

Similar threads

Replies
18
Views
3K
  • · Replies 19 ·
Replies
19
Views
3K
  • · Replies 6 ·
Replies
6
Views
1K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 9 ·
Replies
9
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K
  • · Replies 10 ·
Replies
10
Views
4K
Replies
2
Views
4K
  • · Replies 7 ·
Replies
7
Views
3K
  • · Replies 11 ·
Replies
11
Views
2K