Current Driven DC Motor
Basically you need a DC motor PWM control, as you already found out, you control the motor voltage. Then you do need to measure the current and control the current by controlling the voltage. For this purpose a PI controller in your MCU shall be used.



simulate this circuit &ndash; Schematic created using CircuitLab