I'm trying to model a dc motor for an hev vehicle. My aim is to let the motor produce a target torque. I get the reference current with I=T/K then I compare this value to the current generated by the motor and I regulate armaturevoltage with a PID.
1) I get very high voltage values. It seems to me they are too high. Don't know if they are realistic.
2) I'd like to connect the motor to a simplified battery model. I don't have idea how to do it. Should I regulate the motor voltage so that it is equal to battery one?
I don't want to use Simscape.