How to turn my robot 90 degrees ?

  • Thread starter Thread starter ranoosh96
  • Start date Start date
  • Tags Tags
    Degrees Robot
AI Thread Summary
To achieve a precise 90-degree turn for a robot designed to draw squares, using encoders for wheel control is essential. The robot, which has two DC motors and a pen positioned centrally, can turn by activating one wheel in the opposite direction of the other for a calculated time. Accurate timing is crucial to account for acceleration, deceleration, and potential wheel slip. For improved precision, incorporating sensors like a magnetic compass or wheel encoders is recommended. Ultimately, the solution involves using encoders to ensure accurate turns and enhance the robot's performance.
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 :)
 
Thread 'Weird near-field phenomenon I get in my EM simulation'
I recently made a basic simulation of wire antennas and I am not sure if the near field in my simulation is modeled correctly. One of the things that worry me is the fact that sometimes I see in my simulation "movements" in the near field that seems to be faster than the speed of wave propagation I defined (the speed of light in the simulation). Specifically I see "nodes" of low amplitude in the E field that are quickly "emitted" from the antenna and then slow down as they approach the far...
Hello dear reader, a brief introduction: Some 4 years ago someone started developing health related issues, apparently due to exposure to RF & ELF related frequencies and/or fields (Magnetic). This is currently becoming known as EHS. (Electromagnetic hypersensitivity is a claimed sensitivity to electromagnetic fields, to which adverse symptoms are attributed.) She experiences a deep burning sensation throughout her entire body, leaving her in pain and exhausted after a pulse has occurred...

Similar threads

Back
Top