Calling out for help to you kind experts.
I'm working on a prototype of an Electric Bike. I am trying to use regenerative energy from the electric motor during freewheeling, to charge back the battery. I want this to be semi-automated and hence I'm trying to use high power MOSFET switches to smoothly switch between charge and discharge configurations. Below is the scenario and problem statement. Check the diagram for reference
What I have:
1. 1000W E-bike controller with throttle
2. 48V Lead Acid battery
3. Buck/Boost regulator (currently set to 54V)
How things work:
When battery is connected to controller and throttle is engaged, the controller draws power from the battery and powers the motor
When I don't engage the throttle and the vehicle is still moving, there's "regenerative" voltage at the same terminals of the controller that are connected to the battery. This regenerative voltages varies with speed.
What I wish to achieve:
1. When I engage the throttle, power should be drawn from the battery and supplied to the controller
2. When I don't engage the throttle and the vehicle is still moving, the output of the controller should get connected to the input of the buck/boost regulator. Output of the booster connects to the battery so that battery can be charged
The switch S1 will enable me to switch between charge and discharge (ofcourse that can also be automated, but that's the easy part for me). The diode on the charging leg side is added to ensure current flows only in one direction to the battery.
I managed to get a circuit fixed and refined with help of some experts like you and I built that circuit as well, but it doesn't seem to work as expected. Below is what is happening while testing with a simple LED load:
1. When I test both MOSFET switches individually without the common D and S connection, both switches work just fine. The ON and OFF switching is immediate
2. With both MOSFETs combined with a common D and S connection as shown in the figure, the appropriate MOSFET/LED turns ON after supplying gate voltage but it stays turned ON. This is happening with both MOSFETs.
I see that the LED is dimming very slowly implying that the voltage at the gate seems to be held up by a capacitor. Probably the internal capacitance combined with the gate pull down resistor? I'm currently using a 13k pull-down resistor on the gate. I could use a 1k resistor, but if the gate capacitance is what is holding up the charge and leaving the MOSFET ON for longer is indeed the reason, then a 1k resistor would still leave the MOSFET ON for lot longer. I need an immediate switch (couple hundred microseconds) of the MOSFETs.
Can someone help me understand and troubleshoot this circuit? Might be using a simulation tool could help, which I don't have one
I have broken my head a lot on this circuit and am desperate to get this to work. So any help on this would be truly and greatly appreciated.
Regards,
Deepak