Servo Library
Moving things around on a screen is pretty cool, but let’s now look at how we can physically move material things around. The best way to move something with the Arduino is to use a motor. We already looked at a simple motor with the DC fan in Project 4, which is functionally equivalent to controlling any simple DC motor. Two other common types of motors include the hobby servo and the stepper motor. Both of these motors can be difficult to work with without the awesome libraries that are a part of the Arduino platform. The first motor that we’ll discuss, the hobby servo, typically moves in 180° arcs. While initially used in radio-controlled hobby applications, the servo has quite the following in robotics and animatronics because ...
Get Beginning Arduino Programming now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.