Arduino implementation of the CPX Control Plan device controller