-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathcustom.h
43 lines (38 loc) · 2.52 KB
/
custom.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
33
34
35
36
37
38
39
40
41
42
43
// batterytester slave
// ---------------------------------------------------------------------------
//--------------------------------------------------------------------------
// Comment out the one you are not using
// PCB Version - 1.1 or 2.0
//#define ASCD_1-1
#define ASCD_2-0
// Network Mode - Ethernet or WIFI
#define ETHERNET_MODE
//#define WIFI_MODE
// USB Barcode Scanner Mode - HID KB or HID KB UNIVERSAL
#define HID_KB
//#define HID_KB_UNIVERSAL
//--------------------------------------------------------------------------
const float shuntResistor = 10.0; // In Ohms - Shunt (Discharge) resistors resistance
const float referenceVoltage = 4.68; // 5V Output of Arduino
const float defaultBatteryCutOffVoltage = 2.8; // Voltage that the discharge stops ---> Will be replaced with Get DB Discharge Cutoff
const byte restTimeMinutes = 1; // The te in Minutes to rest the battery after charge. 0-59 are valid
const int lowMilliamps = 1000; // This is the value of Milli Amps that is considered low and does not get recharged because it is considered faulty
const int highMilliOhms = 500; // This is the value of Milli Ohms that is considered high and the battery is considered faulty
const int offsetMilliOhms = 13; // Offset calibration for MilliOhms
const byte chargingTimeout = 8; // The timeout in Hours for charging
const byte tempThreshold = 7; // Warning Threshold in degrees above initial Temperature
const byte tempMaxThreshold = 10; //Maximum Threshold in degrees above initial Temperature - Considered Faulty
const float batteryVolatgeLeak = 2.00; // On the initial screen "BATTERY CHECK" observe the highest voltage of each module and set this value slightly higher
// You need to run the Dallas get temp sensors sketch (ASCD_Test_Get_DS18B20_Serials.ino) to get your DS serails
/*DeviceAddress tempSensorSerial[9]= {
{0x28, 0xFF, 0x81, 0x90, 0x63, 0x16, 0x03, 0x4A},
{0x28, 0xFF, 0xB8, 0xC1, 0x62, 0x16, 0x04, 0x42},
{0x28, 0xFF, 0xBA, 0xD5, 0x63, 0x16, 0x03, 0xDF},
{0x28, 0xFF, 0xE7, 0xBB, 0x63, 0x16, 0x03, 0x23},
{0x28, 0xFF, 0x5D, 0xDC, 0x63, 0x16, 0x03, 0xC7},
{0x28, 0xFF, 0xE5, 0x45, 0x63, 0x16, 0x03, 0xC4},
{0x28, 0xFF, 0x0E, 0xBC, 0x63, 0x16, 0x03, 0x8C},
{0x28, 0xFF, 0xA9, 0x9E, 0x63, 0x16, 0x03, 0x99}
}; */
const char userHash[] = "xxxxxx"; // Database Hash - this is unique per user - Get this from Charger / Discharger Menu -> View
const byte CDUnitID = 0; // CDUnitID this is the Units ID - this is unique per user - Get this from Charger / Discharger Menu -> View -> Select your Charger / Discharger