Author: Matthew Long Date: 2026-03-21
A software-defined battery adapter enabling compatibility between power tool ecosystems using:
- Real-time regulation
- Typed compatibility models
- Embedded control (Rust)
- Safety-first design
No single tool will simulate everything (power + firmware + thermals + real-world spikes)
You need a stack of simulations, each covering a different layer.
- Voltage regulation behavior
- Current limits
- Transient spikes (startup, stall)
- Control loop stability
- Thermal behavior (approximate)
- Efficiency losses
- Real tool load behavior
- Battery BMS quirks
- Connector resistance under vibration
👉 Simulation gives ~70–80% confidence
👉 Hardware testing gives the final 20%
- Free, industry standard
- Simulate:
- Buck/boost converters
- Voltage stability
- Current spikes
- MOSFET switching
- System-level power + control simulation
- Better for full system modeling
- Advanced modeling + control theory
Use:
- Python
- Simulink
Input: battery voltage + internal resistance
Load: tool current profile
Controller: regulation logic
Output: regulated power
Drill:
- spikes: 5–20A
- idle: near zero
Saw:
- steady: 10–15A
- spikes: 20–30A
- Basic thermal modeling
- ANSYS
Simulate:
- MOSFET heat
- Converter heat
- Enclosure buildup
Simulate system while running real firmware.
Tools:
- STM32 dev board
- Signal injection / DAC
- Simulate converter in LTspice
- Validate 20–30A spikes
- Model behavior in Python/Simulink
- Estimate heat behavior
- Test Rust control loop
- Build real hardware
You are not simulating an adapter.
You are simulating a: real-time energy system with constraints
- LTspice (power)
- Python (control)
- Fusion 360 (thermal)
- Only steady-state simulation
- Ignoring spikes
- No thermal modeling
- Jumping to hardware too early
Simulation is essential — but cannot replace real testing.
Critical real-world factors:
- Heat
- Transients
- Edge cases
This project is a: software-defined, typed, real-time energy compatibility layer