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 :)
 
Hey guys. I have a question related to electricity and alternating current. Say an alien fictional society developed electricity, and settled on a standard like 73V AC current at 46 Hz. How would appliances be designed, and what impact would the lower frequency and voltage have on transformers, wiring, TVs, computers, LEDs, motors, and heating, assuming the laws of physics and technology are the same as on Earth?
I used to be an HVAC technician. One time I had a service call in which there was no power to the thermostat. The thermostat did not have power because the fuse in the air handler was blown. The fuse in the air handler was blown because there was a low voltage short. The rubber coating on one of the thermostat wires was chewed off by a rodent. The exposed metal in the thermostat wire was touching the metal cabinet of the air handler. This was a low voltage short. This low voltage...
While I was rolling out a shielded cable, a though came to my mind - what happens to the current flow in the cable if there came a short between the wire and the shield in both ends of the cable? For simplicity, lets assume a 1-wire copper wire wrapped in an aluminum shield. The wire and the shield has the same cross section area. There are insulating material between them, and in both ends there is a short between them. My first thought, the total resistance of the cable would be reduced...

Similar threads

Back
Top