This article covers the topic of how to use system identification techniques with MATLAB and the System Identification Toolbox to characterize a DC motor being driven an Arduino Uno board. It shows how a linear model can be identified from a number of data sets, and goes on to show how a nonlinear model that incorporates hysteresis can be generated from data sets.
For more details, please go to Motor Control with Arduino: A Case Study in Data-Driven Modeling and Control Design - MATLAB & Simulink