I have a motor controller designed using a microcontroller to control the speed with a PWM signal. the schematic looks something like this
I am trying to power a 30A, 12V motor and am getting a lot of noise on my 12V line which is causing my MCU's logic to crash and fail.
I've read up on using a diode like FR302 to direct the backfeed from the motor and a small capacitor, but this isn't helping very much.
I am sure the cause of the logic failing is the motor generating too much voltage, I see spikes and dips all over the place on the 12V line with a scope. I've added a zener diode in the circuit to prevent the large spikes, which has worked, but now the dips still exist.
I know that this design kind of works because I can control a small 1A motor without any issues.
any ideas on how to fix this?
I am trying to power a 30A, 12V motor and am getting a lot of noise on my 12V line which is causing my MCU's logic to crash and fail.
I've read up on using a diode like FR302 to direct the backfeed from the motor and a small capacitor, but this isn't helping very much.
I am sure the cause of the logic failing is the motor generating too much voltage, I see spikes and dips all over the place on the 12V line with a scope. I've added a zener diode in the circuit to prevent the large spikes, which has worked, but now the dips still exist.
I know that this design kind of works because I can control a small 1A motor without any issues.
any ideas on how to fix this?