The private monorepo for the capacitor condition monitoring project. Contains all simulation files, edge C++ code, and ML training pipelines.
/hardware-esp32— C++ code for the ESP32 to calculate ESR and Capacitance./simulation-matlab— Simulink models (.slx&.mdl) and the MATLAB runner script (.m)./ml-engine— Jupyter notebooks and Python scripts for FFT processing and XGBoost inference./data-pipeline— Scripts for generating synthetic physics-informed datasets.
- Open
/hardware-esp32/esr_c_calc.inoin the Arduino IDE. - Flash to the ESP32. Ensure the baud rate is set to
115200. - The ESP32 will wait for Serial inputs formatted as
V6,V12\n.
- Open MATLAB and navigate to the
/simulation-matlabfolder. - Run
run_simulation.m. - This script will automatically execute the Simulink model and export the dynamic
vdc_data.csvandtemp_reference.txtfiles to your local environment.
- Install Python dependencies:
pip install pandas numpy scipy xgboost paho-mqtt pyserial- Run the main processing script:
jupyter notebook ml-engine/fft_rul_hi_xgb.ipynb