Figure 3 shows the (literal) rats nest of wiring I needed to
make my remote vehicle. People ask why it is so hard to
make a robot — all the wires, man! All the wires!

The last little bit of hardware I used to complete my
design is a Hobby People two-cell, 25C 850 mAh Li-Po
battery pack. At full charge, this pack is about 8.4V which
is plenty of voltage for my vehicle motors and still well
below the 13V maximum for the motor driver chip I’m
using. Since most motor controllers don’t sense the voltage
and shut down before damaging the pack, remember you
need to watch your lithium-ion pack’s voltage. If the
battery is drained below about 2.5V (depends on the

}
}
void loop()
{
/*
You must Read Gamepad to get new values
you should call this at least once a
second
*/
if(error == 1) //skip loop if no controller
//found
return;

/*
* Read controller and set large motor to
* 'vibrate'
* this will set the large motor vibrate
* speed based on
* how hard you press the blue (X) button.
*/
ps2x.read_gamepad(false, vibrate);
vibrate = ps2x.Analog(PSAB_BLUE);