some things are working but regulation is fucked!
This commit is contained in:
38
buck_specs.h
Normal file
38
buck_specs.h
Normal 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_ */
|
||||
Reference in New Issue
Block a user