Pack Sniffer 2 / Controller 2
In Pack Sniffer mode, it is
designed to be powered from USB 5V power pack (or an external 12V source), to read out
the state of a battery pack and display
user configurable info,
(Individual cell voltages,
temperature, current, state of charge / health, etc...).
This allows the user to check that the battery pack and all the cells are not damaged before purchase.
In Pack Controller mode, the
battery pack output can be enabled, (pre-charger, high and low side contactors
can be controlled, for up to 2 packs).
Status outputs can be configured to trigger based on warnings and / or errors, (pack / cell voltage, current, temperature).
For example to protect the
battery: A low battery indication can be configured below a user defined
And the pack can be disabled, if the voltage on a single cell drops below a user defined voltage, to protect the cells from over discharge.
Different operating modes and configurations can be changed by editing the config file or loading new firmware via the micro SD card Flash Bootloader.
The Pack Sniffer 2 and accessories are available in the Store.
features of the Pack Sniffer
Microchip dsPic33EP256MU806 microcontroller, running at 120 Mhz (60MIPs).
16 character x 2 line display.
Micro SD card (used for firmware updates and config file changes).
Micro USB port (used for power, but could be used to read/write to the micro SD card).
5V to 12V boost converter (5W max).
2 CAN bus channels.
3 12V Source bits (2A each, with fly back suppression diode).
7 GND Sink bits (2A each, with fly back suppression diode).
2 Analog inputs (0-16.384V full scale).
1 RS232 Serial port.
1 I2C port (internal).
The Pack Sniffer 2 is designed to run off 5V USB or an external 12V
The built in boost converter can draw up to 2A (current limited) at 5 volts and output up to 800mA at 12V.
Caution: If a 5V USB and an external 12V supply are both connected, loss of 12V supply will cause the boost converter to attempt to power the 12V rail, an external blocking diode is recommended (see wiring diagram below).
can be purchased in the
or you can make your own.
These are the recommended wiring diagrams for the Pack Sniffer 2 connectors, 7x2 (14-pin) and 5x2 (10-pin), click the image for the .pdf file.
Pack Sniffer 2 Boot Loader:
The Pack Sniffer 2 boot loader requires Intel .hex
files with the following naming convention:
WT_PS2_vX.Y.hex Where X is the major version and Y is the minor version.
The boot loader will write to main program flash the highest version found in this directory:
Available Firmware files:
WT_PS2_v0.1.hex # 7x2 Connector Hardware Test Program, (Tests all I/O, do
not use when connected to a real battery pack).
WT_PS2_v0.2.hex # 5x2 Connector Hardware Test Program, (Tests all I/O, do not use when connected to a real battery pack).
WT_PS2_v0.5.hex # Pack Sniffer 1 Application, ported to Pack Sniffer 2 Hardware.
WT_PS2_v0.8.hex # Pack Sniffer 2 Application, Display: Volt, Current, Cell High, Cell Low, Temp, SOC, Health (Pre-charge, POS, NEG Contactor).
WT_PS2_v1.0.hex # Pack Sniffer 2 / Controller 2 Application, User Configurable via Config File.
WT_PS2_v1.1.hex # Pack Sniffer 2 / Controller 2 Application, Added support for dual battery packs.
WT_PS2_v1.2.hex # Pack Sniffer 2 / Controller 2 Application, Fixed (Cell Span, Average, High, Low) display not updating due to a timing glitch.
Pack Sniffer 2 Configuration File:
The Pack Sniffer 2 boot loader
and application requires text .cfg file with the following naming convention:
The boot loader and application configuration file must be found in this directory:
Available Configuration files:
Pack Sniffer 2 / Pack Controller User Configuration file, (Configures: Boot
Loader, Config Loader, I/O).
LCD_DISPLAY.cfg # LCD Display User Configuration File, (Configures: Information displays).
LEAF_PACK_A.cfg # Battery Pack A User Configuration File, (Configures: pack I/O, warning and error limits).
LEAF_PACK_B.cfg # Battery Pack B User Configuration File, (Configures: pack I/O, warning and error limits).
All the above files for the SD card:
Note: The highest version number will be boot loaded... If this is not want you want delete / rename the unwanted files.
WT_PS2.zip # Download and unzip onto an SD card.
Video showing the Pack Sniffer 2 boot loading the Pack Sniffer 1
application from the micro SD card.
Then reading the Nissan Leaf battery pack cell voltages and state of charge and health.
Video showing how to use and modify config files.
More Pack Sniffer 2 videos
If you Pack Sniffer 2 (purchased before 2019), reboots
when you insert a micro SD card,
This video shows how to solder a 10uF 0805 10V(or higher voltage) capacitor onto the 3.3V power supply rail, to fix the problem:
Gen 2 plug (2014 and later) housing for Dupont connectors, click the image for
the .stl file.
Note: The Leaf battery pack pin spacing is 2.5mm, the Dupont connectors are 2.54mm, thus use only 1, 2,or 3 pin Dupont connectors.
Nissan Leaf Gen 1 plug (2012 and earlier, E-mail to check for availability).
The Pack Sniffer 2 comes with a 3D printed black PLA enclosure, if you wish to 3D print your own out of a different material/color, click the images below for the .stl files.
Reading and writing the micro SD
card over USB.
Menu driven Serial terminal to adjust configuration settings.
Send Serial and/or CAN messages to tell battery chargers to start / stop charging.
Send Serial and/or CAN messages to tell motor controllers / inverters to go into "limp home" / shut down modes.
Support CAN buses at different bit rates (for example BMS at 500k, and battery charger at 250k).
USB to serial/CAN bus.
SD card logging.
Support for more battery packs.
Support for more battery chargers.
More Electric Vehicle Projects