May 5th 2016
Know How... 209
Servo Motor vs. Stepper Motor
Learn how to build your own pan and tilt device.
We show how to build a pan and tilt for your camera using stepper motors and an Arduino.
Servomotor vs. Stepper Motor in a Servo Mechanism
Servomotor:
- A servo is a device that uses a motor with few poles (4-12+) along with some kind of feedback to move a shaft to a particular position.
- In the case of the servos we're accustomed to using, a simple potentiometer connected to the gearing allows us to put a servo in a particular position.
Stepper Motor:
- A stepper motor is built on a multi-phase motor, with a large number of poles, (50-100+) that moves in "steps"
- These steps are made by pulsing the various phases of the motor to achieve rotation
- Stepper motors are usually NOT used with feedback, instead counting on their inherent angular position (created by the way the coils and magnets are laid out in the can) to "step" to particular positions.
Pro/Cons:
- Stepper motors offer more torque at low speeds AND offer "holding torque" because of its inherent angular position.
- Stepper motors tend to be cheaper
- Stepper motors can be used without a position encoder
- Stepper motors lose as much as 80% of their initial torque at 90% speed
- Stepper motors are slow and not good at accelerating an opject
- Because they have no positional feedback, it's possible to miss a step
- Stepper motors suffer from vibration and resonance problems (annoying whine)
- Servos can move much more quickly (up to ~2,000rpm)
- Servos have more torque at high speed
- Servos are more efficient
- Servos don't vibrate as much as stepper motors
- Servos require complicated feedback and drive circuitry
- Complicated gearboxes (prone to destruction)
- More expensive
Now... let's take a look at OUR Stepper Motor!
28BYJ-48 Motor + ULN2003 Driver
Important Specs:
- 5 Volts
- 4 Phase
- Stride Angle: 5.625
- Speed Variation Ratio: 1/64
What does this tell us?
- This will work on the same 5V power source we're using for the Arduino
- A "stride angle" of 5.625 gives us 64 steps for a full rotation of the shaft. (360 / 5.625 = 64)
- It is down-geared 64 times: That means the motor shaft has to spin 64 times for every time the stepper shaft rotates once.
- This means we have 4096 steps for full rotation of the stepper shaft: (360 degrees / (5.625 / 64) = 4096)
OK... let's build!
Parts List:
Arduino of your Choice
Stepper Motor and Driver
5V Power Supply
Breadboard
What's What?
- Show the power input and switch
- Show IN1-4
- Show the motor connector
Let's put it together!
- Connect the motor to the driver board
- Attach a 5V power supply to the power-in on the driver board
- Connect IN1-4 to Arduino digital pins 4-7
- Connect power to the Arduino
That's It!
Let's Program!
The Code is Available at the link below:
https://www.dropbox.com/s/ty21w4exs6ruka9/KH209_Stepduino.zip?dl=0
The STL Files for our 3D Printed frame is at the link below:
https://www.dropbox.com/s/jfpn6furd033irn/KH209_Stepduino_STL_Files.zip?dl=0
<p>Connect with us!</p><ul><li>Don't forget to check out our large library of projects at <a href="https://twit.tv/shows/know-how">https://twit.tv/shows/know-how</a>.</li… our Google+ Community at <a href="https://plus.google.com/communities/102778909882340711425" target="_blank">http://gplus.to/twitkh</a></li><li>Tweet at us at <a href="https://twitter.com/PadreSJ" target="_blank">@PadreSJ</a>, <a href="https://twitter.com/Cranky_Hippo" target="_blank">@Cranky_Hippo</a>, and <a href="https://twitter.com/Anelf3" target="_blank">@Anelf3</a></li></ul>