?? hardware_settings.h
字號:
/* * Hardware settings for the digital dc power supply * http://www.tuxgraphics.org/electronics/ * * In this file you can: * - calibrate the ampere and voltmeter * - choose your hardware type: 22V 3A or 30V 2.5A */#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.60// 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/* ================= uncomment this section for the model 30V 2.5A *//* remove this line to uncomment#define U_MAX 300#define I_MAX 250// internal adc ref voltage (should be 2.56V, can vary from uC to uC)#define ADC_REF 2.60// the divider R7/R8 [(R8+R7)/R8], you can calibrate here the voltmeter:#define U_DIVIDER 13.19// 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 remove this line to uncomment */#endif //CAL_HW_H
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -