Firmware for the PowerTrol project