Adding the electronics to your fish
The first step in adding the electronics is to add a servo controller; you'll use the same controller that was introduced in Chapter 3, Building a Wall-E Robot. First, you'll hook the three servos up to the servo controller, like this:
Now you can connect the servo controller to the battery. This is a bit complicated, as you'll need to connect the battery to the servo controller and to the Raspberry Pi. For the connection to the Raspberry Pi, you'll want to use a voltage regulator to convert your LiPo battery voltage to the 5V required by the Raspberry Pi. Here is an image of such a regulator:
These are available at most online electronics retailers. And you'll want to make sure you have a power switch so that you can turn your entire system on and off. These are also available at most online electronics retailers. Here is a diagram of the entire power system:
Once you have the servo controller connected to the servos and battery, you'll want to connect...