The purpose of this project is to emulate the physics of a motor using an arduino.

The motivation for doing this project was to have the option to tune the PID parameters for a CNC without have to be in the workshop. 

 

The arduino will read the analogue input voltage (simmulating the voltage to the motor), and update the tacho signals to take to account acceleration og the motor, friction, load and back EMF.

 

Current consumption and torque is also calculated in the simulation, and can be exported if needed.

 

The source code (incl a python simulator) can be found at:

https://gitlab.com/b2vn/motor_emulator