Skip to the content
4 layers58.8 × 29 mmSparkAltBatteryBoardV1, the printed circuit board in 3D

A custom research-oriented battery interface and telemetry board for the DJI Spark platform, built around a standard 3S LiPo battery pack instead of the discontinued, hard-to-find OEM Smart Battery.

Size
58.8 × 29 mm
Copper layers
4
Thickness
1.6 mm
Parts
46
Nets
37
Pads
137
Tracks, vias
201, 160
Pours
11
Routed
Yes
KiCad
KiCad 10.0 (file 20260206)
Created
6 Jul 2026
Updated
9 Jul 2026

Overview

SparkAltBatteryBoardV1 is an open-source printed circuit board by fahreddinaykut, from the fahreddinaykut/SparkAltBatteryBoard repository on GitHub. It is a 4-layer board of 58.8 × 29 mm with 46 parts on 37 nets, routed with 201 tracks and 160 vias.

It is built around the ATMEGA328P-AU, AP63203WU and TPD2E2U06DCK, with the MGFL1608F100MT-LF, SFE3015A-4R7M-F-HF and SMAJ15A among its other parts. Its parts include 13 capacitors, 11 resistors, 4 ICs, 4 connectors and 2 diodes. It belongs with the AVR (ATmega, ATtiny) boards of this library.

Main components

7

README

README.md

SparkAltBatteryBoard

A custom research-oriented battery interface and telemetry board for the DJI Spark platform, built around a standard 3S LiPo battery pack instead of the discontinued, hard-to-find OEM Smart Battery.

This project documents a reverse-engineered I2C/SMBus smart-battery communication interface, originally developed to study how the DJI Spark flight controller communicates with its battery pack. The board sits between a standard 3S pack and the drone, reads the real cell voltages and current, and reproduces that communication interface.

DJI Spark flying on SparkAltBatteryBoard

How it works

  1. The original DJI Spark Smart Battery was disassembled and its I2C/SMBus traffic with the flight controller was captured with a Saleae Logic Analyzer.
  2. That traffic was decoded to recover the SBS + DJI-proprietary command set (auth handshake, cell voltages, PEC/CRC-8, etc.) — see Docs/I2C_BMS_PROTOCOL.md.
  3. A custom PCB replicates the OEM battery's form factor and connector, with resistor dividers for per-cell voltage sensing and an INA199 current shunt amplifier.
  4. An ATmega328P on the board reproduces the Smart Battery communication interface over I2C in real time — computing PEC on the fly and clock-stretching where needed. See Firmware/README.md for the full protocol implementation.

Original DJI Spark battery, disassembled for reverse engineering

Repository structure

FolderContents
Hardware/KiCad project: schematics, PCB layout, 3D connector models, Gerbers, BOM
Firmware/PlatformIO project for the ATmega328P I2C/SMBus battery emulator
Mechanical/Battery mount 3D model (STEP)
Docs/Schematic PDF, protocol reverse-engineering notes, raw sniffed I2C sessions, reference photos/video

Hardware

TopBottomLayout
PCB top 3DPCB bottom 3DPCB layout
  • MCU: ATmega328P — chosen specifically because its hardware TWI peripheral supports I2C clock stretching reliably, which the DJI FC's polling requires (see Firmware/README.md for why an ESP32 doesn't work here).
  • Sensing: 3-way resistor divider network for per-cell voltage taps, INA199 shunt amplifier for pack current.
  • Full schematic: Docs/SparkAltBatteryBoardV1.pdf
  • Fabrication outputs: BOM · Gerbers
  • Battery mount: Mechanical/batterymount.stp

PCB Design / Manufacturing Notes

The PCB revision was prepared as a manufacturing-oriented KiCad project, not only as a proof-of-concept schematic.

Design considerations include:

  • Hierarchical schematic structure
  • Separated MCU, power, sensing, and connector blocks
  • 3.3 V I2C/SMBus logic interface
  • ADC-scaled cell-voltage sensing inputs
  • RC filtering on analog measurement lines
  • INA199 high-side current-sense frontend
  • Kelvin-style shunt measurement routing approach
  • Buck-regulated 3.3 V system rail
  • I2C pull-up resistors
  • ESD/TVS protection on external communication lines
  • AVR ICSP programming/debug header
  • Wide copper routing/polygon strategy for battery current path
  • Manufacturing outputs prepared: BOM and Gerber package

Firmware

PlatformIO project targeting the ATmega328P (Arduino Uno/Nano pinout). Handles the I2C slave logic, ADC reads, CRC-8 PEC calculation, and all SBS/DJI command responses.

text
pio run -e uno
pio run -e uno -t upload

Full pin map, supported command table, and known limitations: Firmware/README.md.

Protocol reverse engineering

The raw logic analyzer captures used to decode the protocol are included for reference:

Legacy Prototype Flight Test

The video below shows an earlier prototype tested around 4 years ago. It does not represent a flight test of the redesigned PCB revision in this repository.

Your browser can't play the embedded video — watch/download it here.

Disclaimer

This is a hobbyist reverse-engineering project, shared for educational purposes. Flying with a modified battery/BMS is at your own risk — verify cell voltages, current limits, and wiring yourself before flight. Not affiliated with or endorsed by DJI.

The original prototype was flight-tested in the past. The redesigned PCB revision in this repository has not yet been flight-tested because the original test drone was later damaged in a crash.

License

Source-available for personal, educational, and research use. Commercial use is not permitted without written permission. See LICENSE (MIT with Commons Clause).

Parts

46
QtyValueFootprintReferences
7100nFCapacitor_SMD:C_0603_1608MetricC2, C6, C10, C11, C12, C13, C14
6DNPTestPoint:TestPoint_Pad_D1.5mmTP1, TP2, TP3, TP4, TP5, TP6
410KResistor_SMD:R_0603_1608MetricR3, R8, R10, R12
422uFCapacitor_SMD:C_0805_2012MetricC3, C7, C8, C9
3MountingHole_PadMountingHole:MountingHole_3.2mm_M3_DIN965_PadH1, H2, H3
218pFCapacitor_SMD:C_0603_1608MetricC4, C5
25.1KResistor_SMD:R_0603_1608MetricR5, R6
11KResistor_SMD:R_0603_1608MetricR4
120KResistor_SMD:R_0603_1608MetricR9
12mRResistor_SMD:R_1206_3216MetricR2
133KResistor_SMD:R_0603_1608MetricR11
14.7KResistor_SMD:R_0603_1608MetricR7
16PIN_BLADE_CONKardLab:Female_Blade_Socket_2mm_6PJ2
1AP63203WUPackage_TO_SOT_SMD:TSOT-23-6U3
1ATmega328P-APackage_QFP:TQFP-32_7x7mm_P0.8mmU1
1AVR ICSPConnector_PinHeader_2.54mm:PinHeader_2x03_P2.54mm_VerticalJ3
1INA199xxDCKPackage_TO_SOT_SMD:SOT-363_SC-70-6U2
1JST-XH-4PConnector_JST:JST_EH_B4B-EH-A_1x04_P2.50mm_VerticalJ1
1LED_SmallLED_SMD:LED_0603_1608MetricD3
1MGFL1608F100MT-LFInductor_SMD:L_0603_1608MetricL1
1SFE3015A-4R7M-F-HFInductor_SMD:L_Coilcraft_LPS3010L2
1SMAJ15ADiode_SMD:D_SMAD2
1TPD2E2U06DCKPackage_TO_SOT_SMD:SOT-323_SC-70U4
1X32258MOB4SICrystal:Crystal_SMD_3225-4Pin_3.2x2.5mmY1
1XT60Connector_AMASS:AMASS_XT60IPW-M_1x03_P7.20mm_HorizontalJ4

Similar boards

  • 2 layers125 × 78.2 mmRC ESP32 V2, the printed circuit board in 3D

    RC ESP32 V2

    Poent/RC-Snowblower

    Working on designing the impeller and auger portion of the snowblower. Switched from using a worm gear assembly to a custom ring and pinion setup using a spiral bevel gear.

    84 parts2
  • 4 layers80 × 50 mmGlowbuck, the printed circuit board in 3D

    Glowbuck

    Diamantenmine/glowbuck

    Together with Firefly Luciferin, you can create your own ambilight that connects via USB-C to your computer and draws power from a USB-C PD power supply. Glowbuck is in no way associated with the linked project.

    132 parts1GPL-3.0
  • 2 layers100 × 80 mmPower board, the printed circuit board in 3D

    Power board

    WestianPKl/pcb-docs

    A collection of custom PCB designs created in KiCAD, centered around the Raspberry Pi Pico (RP2040) platform. Each board is a standalone module that connects to the Main Board and extends its functionality via I2C, SPI…

    75 parts
  • 2 layers70 × 91 mmMerged lights, the printed circuit board in 3D

    Merged lights

    leogmendoza/skateboard-f25

    Building an electric skateboard!💨

    74 parts2
  • 2 layers100 × 75 mmChassis controller, the printed circuit board in 3D

    Chassis controller

    KPI-Rover/ecu_hw

    Development of a printed circuit board (PCB) for the chassis controller.

    151 parts2
  • 4 layers100 × 50 mmMMS3, the printed circuit board in 3D

    MMS3

    ArthorH/MMS3

    Mini ModuCard System ❤️

    198 parts1
  • 4 layers90 × 90 mmCLOCK, the printed circuit board in 3D

    CLOCK

    Han-ZenX/CLOCK

    High-precision frequency meter clock generation module

    162 parts1
  • 4 layers42 × 44.4 mmSTM32 FlightController, the printed circuit board in 3D

    STM32 FlightController

    JLjoestar23/STM32_FlightController

    PCB, software, firmware, and other files related to a custom made STM32-based flight controller.

    56 parts1

Questions

How big is the SparkAltBatteryBoardV1 PCB?

It measures 58.8 × 29 mm and has 4 copper layers, 1.6 mm thick.

What parts does the SparkAltBatteryBoardV1 use?

46 parts, built around the ATMEGA328P-AU, AP63203WU, TPD2E2U06DCK and MGFL1608F100MT-LF. The full list of its parts is on this page, with links to each part's symbol and footprint where PCBKit's library has them.

Where can I download the SparkAltBatteryBoardV1 KiCad files?

From the fahreddinaykut/SparkAltBatteryBoard repository on GitHub, at the commit this page was made from: the board is Hardware/SparkAltBatteryBoardV1.kicad_pcb and its schematic Hardware/01_Battery_Input.kicad_sch. PCBKit opens the board in the browser, with nothing to install.

Can I use the SparkAltBatteryBoardV1 design in my own project?

Its repository states no licence, so its author keeps all rights: ask fahreddinaykut before reusing the design.