I am planning to drive a 24v motor from a 12v battery, using a DC-DC boost circuit to generate the 24v and an H-bridge to PWM drive the motor.
A problem arises when the motor goes into the regen quadrant. The motor will just dump energy into the high-side capacitors of the boost circuit, overcharging them since there is no way to send current back out to the battery.
So here is my idea: Place a P-channel mosfet between the high and low sides of the boost circuit, with a voltage comparator and reference connected to the gate. This way, the mosfet would be programmed to dump from the high-side capacitors to the low-side whenever the output is above 25v.
Obviously this would put a lot of stress on the caps and mosfet, so I'm looking for any advice on how to achieve this more elegantly. Maybe if I threw an inductor in there somewhere it wouldn't be such a harsh dump of current?