Correct.I'm quite busy at the moment (school work) but I will finish the relay driver shortly.
So here's the plan:
When accelerating forward, motor is put into forward position using relays. MOSFET is driven with a PWM signal through a gate driver IC.
When accelerating backwards, motor is put into backwards position using relays. MOSFET is driven with a PWM signal through a gate driver IC. Max speed in reverse 50-60% full speed.
.When pot released, MOSFET switching stops, and relays connect to the resistive brake. (Maybe make it so they don't connect to the resistive brake? But it would require 4 relays total, or another power MOSFET.)
When E-brake pressed, both relays connect to resistive brake. After 3 seconds (RC delay - approximate) the relay connects to the shorted position so the motor stalls. MOSFET switching is also inhibited.
The whole idea about breaking is a bit perplexing as I do not know if the new motor controller will react differently from the old one with respect to the slowing of the scooter.
A few more specs of the operation of the old motor controller.
Speed: - 4.25mph
reverse - 60%
Range/charge - 25mi. Ha!
Braking - Electronic regenerative, electromechanical.
I removed the electromechanical braking as I was not too keen on it's jerking stop. The combination of friction, electronic regenerative braking brought the scooter to stop reasonable quick (within 2ft - 3ft max, maybe 5ft on hills.)
Thus I'd be more inclined to pursue the regenerative breaking and leave out the resistive breaking, in other words, follow RB's method of a half-bridge.
What are your thoughts?
Not sure just yet.So the final solution requires 3-4 relays and one or two MOSFETs to add all the requested features. Is this good for you?
I should be able to use two LM324s and some 2N2222 transistors for the most part, and a gate driver IC from Microchip.[/QUOTE]
Do you have a program to simulate this circuit. I have pretty much all the parts. MOSFETS, transistors, Relay's, etc. except the gate driver IC from Microchip you would want to order. I too have a parts order pending and could add the gate driver IC to it. Would just need the part number.
The relay's, if 4 are required can certainly be off the printed circuit board andI think it will be best to keep all relays off the main PCB - and just solder wires to the terminals and connect those to the PCB. This would also make the PCB smaller and cheaper.
wired via connectors.