The first step is to describe the electric motor as some use AC and others DC. That in turn drives the type of current control circuit. But let me suggest you might study "buck" switching circuits as micro-controller driven switching allows very sophisticated, control.
BTW, I would recommend planning and doing your first work on a bench with serious consideration of including a data recording system. Trying to operate a car while monitoring engineering data usually has a bad outcome.
Bob Wilson
__________________
2019 Tesla Model 3 Std. Range Plus - 215 mi EV
2017 BMW i3-REx - 106 mi EV, 88 mi mid-grade
Retired engineer, Huntsville, AL
|