some things are working but regulation is fucked!

This commit is contained in:
2025-05-13 17:51:47 +02:00
parent 643861529f
commit 5b329b710a
12 changed files with 429 additions and 64 deletions

38
buck_specs.h Normal file
View File

@@ -0,0 +1,38 @@
/*
* buck_specs.h
*
* Created on: 13. maj 2025
* Author: Christian L. V. Madsen (OZ1CM)
*/
#ifndef BUCK_SPECS_H_
#define BUCK_SPECS_H_
// Voltages
#define VIN 20.0 // Volt
#define VOUT_TARGET 4.2 // Volt
// Component Values:
#define L_INDUCTOR 100e-6 // Henry
#define C_CAPACITOR 100e-6 // Farad
// Sample time
#define SAMPLE_TIME 25e-6
// Load
#define R_LOAD 100 // Ohm
// Simulation parameters
#define SIMULATION_TIME 1.0 // Seconds
// Plot specific
// OutputFile:
#define BUCK_OUTPUT_FILE "buck_regulation_emul.csv"
#define RUN_CMD "cmd.exe /c python ../plotscript/python_csv_plotter.py %s"
#endif /* BUCK_SPECS_H_ */