Is there a simple way to model a DC motor in LTSpice when controlling it with a PWM signal? Lets say the motor is 9V/2A.
I was thinking the safest way to measure the stall current and use the nominal voltage but I think there is more to handle this.
edit: Or should I say, can we model a DC motor as a resistance if we know at a particular rpm and voltage it draws known amount of current?
Best Answer
What are you modeling it for?
Noise immunity of nearby circuitry?
PID control loop characteristics, to allow loop tuning?
Short circuit, temperature and stall current protection?
Overvoltage protection, including driving the shaft without applied power? Or basic startup and speed control in the driver?
All of these require different simple models, or one really comprehensive model, which would be unnecessarily complicated in most scenarios..
For a simple model for a toy motor, you can ignore mechanical aspects like the inertia of the load.
I suggest running several models of increasing complexity or severity.