Diagram:


Note this is for single series only, so single battery and parallel packs.

To use it with a series mod you keep the board's and the MOSFET's positives separated, and take the positive supply for the board from the same battery you take it's negative connection from (the one directly connected to the MOSFET)