problem with Robot arm

EngOmaradel report abuse

1-iam using a dc motor on the shoulder of the robot's arm

2- iam using ultra sonic with a servo motor to Calculate the distance and find a container
3- the problem is how to let he dc motor moves to the place where the ultrasonic and the servo is looking at and stop at this point Automatic
need help with that



WeepingAngel report abuse


I'm assuming you're not goign to use super expensive DC stepper motors, which will position themselves accurately (and then the problem is just maths).

If you're using cheap motors then what you need is a shaft encoder, to find out what angle the motor has currently turned. Arduino supports lots of different encoder ( as this is a standard problem in SLAM robotics (the mobile robot needs to how far it has moved).

here is an easy tutorial explaing how to read one out:

Here is also information on how to control a robot arm with different encoders:

I hope that helps.

Himanshu_S report abuse

As you are using DC motor, you cannot program it by taking time into consideration. You need a feedback system for that as it has effect of gravity. If you are interested in the cheapest solution then, i would suggest you to use potentiometer at the shaft of your dc motor and take the input of potentiometer to an analog pin of the micro controller and program it accordinly i.e at particular angle it will given a particular voltage and so on.

Add Answer

Need support?

Just drop us an email to ... Show more Arrow right