This paper designs a direct current (DC) motor controller based on Arduino and Simulink to solve the problems of poor openness, complicated programming and difficult signal detection of the existing teaching experimental equipment. The controller integrates the Model-Based Design (MBD) concept, involving single-chip microcomputer, system modeling, micromotor, automatic control and other technologies. The hardware system includes Arduino, encoder, driver, input/output and other interfaces. The software system uses Simulink as the software development platform of the experimental device. It has the functions of algorithm design, simulation, execution, real-time data observation, etc. The limiting incremental PID control algorithm is used to control the speed of the DC motor, and the experimental results verify the design requirements. The hardware and software systems have the characteristics of good openness, fast implementation, safe and reliable, low cost, can complete the verification and improvement of various algorithms such as motor control, and can meet the teaching and research needs of the training of new engineering and technology.