Adaptive predictive control with Arduino