How to turn my robot 90 degrees ?

  • Thread starter Thread starter ranoosh96
  • Start date Start date
  • Tags Tags
    Degrees Robot
Join the discussion
Ask a follow-up here, or get your own question answered by working scientists, mathematicians and engineers — people, not an autocomplete.
Real named experts · corrections over time · the nuance an AI answer skips
5 replies · 11K views
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).
 


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 :)