To drive a relay from the Pi, one needs to cobble up a fairly simple circuit where the 3.3V GPIO pin turns on a transistor that drives the relay. This is such a common requirement that I figured ...