Adaptive predictive control of SegWay with ATMega168