Controlling relay with a BeagleBone