Hardware and software requirements
Before we proceed, ensure that you have everything needed to build the two mini projects.
First, we will need the Galileo board. Again, all the projects in this book utilize the Galileo board Gen 2.
We will use two actuators: a relay module and a servomotor. The relay module used in this project is a Pololu 5V single-pole, double-throw (SPDT) relay. The module already includes a basic carrier PCB, terminal blocks for the switch connectors, and a straight male header for the controls.
Meanwhile, the servomotor used is a simple continuous full-rotation servo motor. This servo is rated at 4.8V – 6V. However, you can use any servomotor for this project.
We will also need a potentiometer and a push button to control the actuators. The potentiometer used in this project is a center-tap linear 10k Ohm type. The push button is a single-pole single-throw (SPST) switch rated at 50mA.
The other things that we will need to complete our project are: resistors, a...