How We Designed a Bidirectional Battery Switch for a Tracker

Share
Battery switch simulation showing a 48 mV voltage drop

In this project, we designed and simulated a bidirectional battery switch for a tracker powered by a single lithium cell. The switch lets the battery power the tracker during normal use and allows charging current to flow back through the same connection if needed.

The challenge was to keep voltage loss low while the switch was on and block current in both directions when it was off, even with a charging supply connected.

Project Overview

The switch sits in the positive supply line, which lets the battery and tracker share the same ground. The design accounted for battery voltages from 3.0 to 4.3 V and called for 5 V or 12 V control inputs. The tracker was expected to draw up to 1 A, and the switch had a 2 A design target.

The Challenges

A MOSFET can act as an electronic switch, but it contains a body diode that can still carry current in one direction when the MOSFET is off. In this circuit, either side can be at a higher voltage. The battery supplies the tracker during normal use, while a charging supply can raise the tracker side above the battery voltage.

Two MOSFETs connected back to back can block both paths when switched off, but their resistances add together when they’re on. As the battery discharges, there is also less voltage available to drive the MOSFET gates. This can increase the switch resistance, just as the tracker has less supply voltage available.

Hardware Design

Choosing the MOSFETs

We chose P-channel MOSFETs because they turn on when their gates are pulled below their source voltage. Pulling the gates toward the ground lets the circuit switch the positive supply line without generating a voltage above the battery.

We compared five P-channel MOSFETs under the same conditions in a 3.8 V simulation. The NTMS4177P had the lowest modelled voltage drop in that comparison. The comparison used two MOSFETs in parallel at each switch position. The final schematic uses one at each position. If a lower voltage drop is needed, adding a second matched device in parallel at each position would roughly halve the switch resistance, assuming the devices share current evenly.

Connecting the MOSFETs Back to Back

We tied the two source terminals together so the body diodes face in opposite directions and block both current paths when the switch is off.

The shared source also gives both gates a common reference. When the driver releases the gates, a 20 kΩ pull-up resistor brings them to the shared source voltage, turning both MOSFETs off. Joining the drains would leave the source terminals separate, so a single pull-up resistor could no longer bring both gates to their respective source voltages.

Driving the Switch

A DMN3010LFG N-channel MOSFET acts as the gate driver. When the control signal goes high, it pulls both P-channel gates toward ground through a 100 Ω resistor. This turns the pair on and lets current flow in either direction.

The 1 kΩ and 4.7 kΩ input resistors form a voltage divider sized for both control inputs. A 5 V input gives about 4.1 V at the driver gate, while a 12 V input gives about 9.9 V. Both values are below the driver’s ±20 V gate-to-source rating. The 4.7 kΩ resistor also holds the driver off if the control line is disconnected.

Bidirectional battery switch schematic

Figure: LTspice schematic of the bidirectional battery switch

Reference Component Role
M1, M2 NTMS4177P P-channel MOSFETs Form the bidirectional battery switch
M3 DMN3010LFG N-channel MOSFET Pulls both switch gates low
R1 4.7 kΩ resistor Forms the input divider with R2 and holds the driver off if the control input is disconnected
R2 1 kΩ resistor Sets the driver gate voltage together with R1
R3 100 Ω resistor Connects the gate driver to both P-channel gates
R4 20 kΩ resistor Returns both gates to the shared source voltage when the driver is off

Circuit Simulation

We used LTspice with MOSFET device models to check how the circuit responded to a repeating 5 V control pulse. We used a simplified ngspice model to estimate voltage drop, check the reverse current path, and examine the gate and source voltages. The simplified model represents each power MOSFET as a controlled switch with an assigned on-resistance and a body diode.

Test Simulation setup
Switching tracker power A 3.8 V battery supply, a 3 Ω load, and a repeating 0–5 V control signal over 600 ms in LTspice
Checking voltage drop A 3 Ω load at 3.8 V and 3.0 V battery voltages in ngspice
Checking the charging path A 4.2 V supply through a 1 Ω resistor on the tracker side, with the battery modelled at 3.8 V in ngspice
Checking how the MOSFETs turn off Gate and shared source voltages plotted during switching in ngspice

Tracker load voltage follows the control signal

Figure: LTspice waveform showing the tracker load switching on and off

MOSFET gate and source voltages match when the switch turns off

Figure: ngspice plot showing the MOSFET gate and source voltages during switching

Results

Switching Tracker Power

In LTspice, the voltage across the simulated tracker load rose close to the battery voltage when the switch turned on and returned near zero when it turned off. Under the modelled conditions, ngspice reported an off-state load voltage below 0.1 µV.

Voltage Drop

With a 3.8 V battery and a 3 Ω load, the ngspice model estimated a voltage drop of about 48 mV, or 1.3% of the battery voltage. The model used a datasheet on-resistance specified at −4.5 V of gate drive, while the simulated circuit provided about −3.76 V. The actual voltage drop may therefore be higher.

At 3.0 V with the same load, the switch continued to conduct in the model, but the drop increased to about 92 mV using an estimated on-resistance. This illustrates how weaker gate drive at a lower battery voltage can increase the voltage lost across the switch.

Charging Path

In the reverse-current simulation, about 385 mA flowed toward the battery with the switch on. When the switch turned off, the model showed the reverse path being blocked.

MOSFET Turn-Off

When the switch turned off, the gate and shared source voltages settled at the same level. This brought the gate-to-source voltage of both MOSFETs to approximately 0 V.

Gate-Drive Current

At a battery voltage of 3.8 V, the gate pull-down resistor path draws about 190 µA while the switch is on. The current through that path stops when the driver turns off.

If you’re building a battery-powered product and facing similar challenges, we’d be happy to help. Feel free to Contact Us for battery switching, charging circuit design, and power management support.

Subscribe Our Newsletter