i'm trying to understand how to connect this motor:
"Mitsumi 334P/R AB"
enter image description here
connections are:
GND - Obvious.
5v - Obvious.
rest of the connections are a bit confusing to me and i do not want to fry my arduino trying.
- do i need a driver or this looks like a built in one?
- do i need to add any electrical components like resistors and capacitors ect?
1 Answer 1
It's just a regular motor, with a (optical) rotary encoder inside. So the first two motor
pins are to run the motor. So connect to VCC and GND, or GND and VCC, if you want to run it in reverse. (VCC doesn't have to be 5v; it can be 3v to 30v).
Connect A and B to a digital input pin. You can see what kind of signal you can expect in the screenshot of the oscilloscope, attached to the ebay-listing. So you can measure the speed, and relative position of the motor-shaft.
-
is there a way to decide (like stepper motor) to rotate 200 right/left? or this is a different kind that only measures speed and rotations?Mike– Mike2015年04月07日 13:47:40 +00:00Commented Apr 7, 2015 at 13:47
-
1You can turn on the motor, measure how many steps it's making, and turn off the motor when you reach 200 "steps". This is however grossly oversimplified, as in reality, due to inertia, you will probably overshoot these 200 steps. You probably need to slow down the motor (using PWM), when it's closing in on 200. Some kind of PID control.Gerben– Gerben2015年04月07日 16:03:02 +00:00Commented Apr 7, 2015 at 16:03