In this recipe, you will learn how to control a DC motor using the Circuit Playground Express and CRICKIT board. DC motors are simpler to interact with than servos, since they don't need any initial configuration. This recipe will give you the basic skills required to turn DC motors on and off for your projects.
Turning on a DC motor
Getting ready
You will need access to the REPL on the Circuit Playground Express to run the code presented in this recipe.
How to do it...
Let's go over the steps required for this recipe:
- Run the following lines of code in the...