-
Notifications
You must be signed in to change notification settings - Fork 0
/
A2D_Sense_Board_V1.0.h
32 lines (23 loc) · 1.05 KB
/
A2D_Sense_Board_V1.0.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
//Board Description File for A2D_Sense_Board_V1.0 Board
#include "ADS1219.h"
#include "Arduino.h"
//MUX settings
#define A2D_SENSE_BOARD_MUX_CURRENT ADS1219_MUX_P_AIN0_N_AIN1
#define A2D_SENSE_BOARD_MUX_VOLTAGE ADS1219_MUX_P_AIN2_N_AGND
#define A2D_SENSE_BOARD_MUX_TEMP ADS1219_MUX_P_AIN3_N_AGND
//Valid I2C Address
#define A2D_SENSE_BOARD_MIN_I2C_ADDR 0x40
#define A2D_SENSE_BOARD_MAX_I2C_ADDR 0x4F
#define A2D_SENSE_BOARD_LED_PIN LED_BUILTIN
//scaling
#define A2D_SENSE_BOARD_DEFAULT_V_REF 2.5
#define A2D_SENSE_BOARD_V_SCALING 10.35 // (18.7k + 2k)/2k
#define A2D_SENSE_BOARD_DEFAULT_V_OFFSET 0
#define A2D_SENSE_BOARD_I_SCALING (-10.0) //2mOhm and 50V/V amp
#define A2D_SENSE_BOARD_DEFAULT_I_OFFSET 0
#define A2D_SENSE_BOARD_T_SCALING 1.0 //the voltage scaling on the temp input
#define A2D_SENSE_BOARD_T_I_SOURCE_A 0.0000225 //22.5uA
//Default Thermistor - NXRT15XV103
#define A2D_SENSE_BOARD_DEFAULT_SH_A 0.001119349044
#define A2D_SENSE_BOARD_DEFAULT_SH_B 0.0002359019498
#define A2D_SENSE_BOARD_DEFAULT_SH_C 0.00000007926382169