Chapter 24
Challenge 6: Examining the Software
With the Challenge 6 gizmo, you’ve got a small controller (consisting of the Arduino and a potentiometer) that can control the movement of a servo motor. Most 6V hobby servo motors work in an identical manner, no matter their size, which means you can test your controller on a small servo. Once you’ve determined that the controller works, you simply connect it to a larger servo motor (with a larger power supply, of course).
You have the Challenge 6 gizmo built, so hopefully you have a good sense of how it’s wired up—and that means it’s time for the sketch that will control the hardware. We’re going to walk you through the short sketch that will let you tune the servo so it can alert you when ...
Get Arduino Adventures: Escape from Gemini Station 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.