Whether it's a robot, an RC toy, a CNC, a 3D printer, or a high-end industrial machine, motion control is one of the most popular subjects in physical computing.
In our examples, we'll be using BoneScript to run our devices, beginning with a DC motor and then following with a servomotor.
However, first you should learn a little about the type of pins that we will use in the following recipes.
They're fun. They're cheap. They're everywhere. The little motors that have been driving toys for decades still remain a mainstay for projects where locomotion is part of the picture. Understanding how to drive a DC motor requires more complex and powerful mechanisms, such as robotics.
You will need several items for this recipe: ...