📄 hardware_settings.h
字号:
#ifndef CAL_HW_H#define CAL_HW_H/* ================= uncomment this section for the model 22V 2.5A */#define U_MAX 220#define I_MAX 250// internal adc ref voltage (should be 2.56V, can vary from uC to uC)#define ADC_REF 2.56// the divider R7/R8 [(R8+R7)/R8], you can calibrate here the voltmeter:#define U_DIVIDER 11.25// the shunt for current measurement (R4||R14|R34), you can calibrate here the // amperemeter.// If you use 3*1.5Ohm 2W then uncomment this:#define I_RESISTOR 0.50// If you use 3*3.3Ohm 1W then uncomment this://#define I_RESISTOR 0.55// short circuit protection limit (do not change unless you know what you do):#define SH_CIR_PROT 800/* ================= uncomment this section for the model 30V 2.0A *///#define U_MAX 300//#define I_MAX 200// internal adc ref voltage (should be 2.56V, can vary from uC to uC)//#define ADC_REF 2.56// the divider R7/R8 [(R8+R7)/R8], you can calibrate here the voltmeter://#define U_DIVIDER 13.24// the shunt for current measurement (R4||R14|R34), you can calibrate here the // amperemeter.// If you use 3*1.5Ohm 2W then uncomment this://#define I_RESISTOR 0.50// short circuit protection limit (do not change unless you know what you do)://#define SH_CIR_PROT 480#endif //CAL_HW_H
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -