forked from OSCSYS/brewtroller
-
Notifications
You must be signed in to change notification settings - Fork 4
/
HWProfile.h
115 lines (93 loc) · 4.09 KB
/
HWProfile.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
/*
OpenTroller DX1 RIMS/Direct Fired Hardware Configuration
*/
#ifndef BT_HWPROFILE
#define BT_HWPROFILE
#define ENCODER_I2C
#define ENCODER_I2CADDR 0x01
#define ALARM_PIN 2 //OUT14
#define PVOUT_TYPE_GPIO
#define PVOUT_COUNT 10 //10 Outputs
#define VALVE1_PIN 28 //OUT1
#define VALVE2_PIN 29 //OUT2
#define VALVE3_PIN 30 //OUT3
#define VALVE4_PIN 31 //OUT4
#define VALVE5_PIN 7 //OUT5
#define VALVE6_PIN 6 //OUT6
#define VALVE7_PIN 3 //OUT7
#define VALVE8_PIN 4 //OUT8
#define VALVE9_PIN 12 //OUT9
#define VALVEA_PIN 15 //OUT10
#define HLTHEAT_PIN 1 //OUT13
#define MASHHEAT_PIN 13 //OUT12
#define KETTLEHEAT_PIN 14 //OUT11
#define DIGITAL_INPUTS
#define DIGIN_COUNT 6
#define DIGIN1_PIN 21
#define DIGIN2_PIN 20
#define DIGIN3_PIN 19
#define DIGIN4_PIN 18
#define DIGIN5_PIN 5
#define DIGIN6_PIN 22
#define HLTVOL_APIN 7
#define MASHVOL_APIN 6
#define KETTLEVOL_APIN 5
#define STEAMPRESS_APIN 4
#define UI_LCD_I2C
#define UI_LCD_I2CADDR 0x01
#define UI_DISPLAY_SETUP
#define LCD_DEFAULT_CONTRAST 100
#define LCD_DEFAULT_BRIGHTNESS 255
// BTPD_SUPPORT: Enables use of BrewTroller PID Display devices on I2C bus
#define BTPD_SUPPORT
// BTNIC_EMBEDDED: Enables use of on-board I2C Ethernet module
#define BTNIC_EMBEDDED
#define HEARTBEAT
#define HEARTBEAT_PIN 0
//**********************************************************************************
// OneWire Temperature Sensor Options
//**********************************************************************************
// TS_ONEWIRE: Enables use of OneWire Temperature Sensors
// TS_ONEWIRE_I2C: Enables use of DS2482 I2C 1-Wire Bus Master
#define TS_ONEWIRE
#define TS_ONEWIRE_I2C
// TS_ONEWIRE_PPWR: Specifies whether parasite power is used for OneWire temperature
// sensors. Parasite power allows sensors to obtain their power from the data line
// but significantly increases the time required to read the temperature (94-750ms
// based on resolution versus 10ms with dedicated power).
#define TS_ONEWIRE_PPWR 1
// TS_ONEWIRE_RES: OneWire Temperature Sensor Resolution (9-bit - 12-bit). Valid
// options are: 9, 10, 11, 12). Unless parasite power is being used the recommended
// setting is 12-bit (for DS18B20 sensors). DS18S20 sensors can only operate at a max
// of 9 bit. When using parasite power decreasing the resolution reduces the
// temperature conversion time:
// 12-bit (0.0625C / 0.1125F) = 750ms
// 11-bit (0.125C / 0.225F ) = 375ms
// 10-bit (0.25C / 0.45F ) = 188ms
// 9-bit (0.5C / 0.9F ) = 94ms
#define TS_ONEWIRE_RES 11
// TS_ONEWIRE_FASTREAD: Enables faster reads of temperatures by reading only the first
// 2 bytes of temperature data and ignoring CRC check.
#define TS_ONEWIRE_FASTREAD
// DS2482_ADDR: I2C Address of DS2482 OneWire Master (used for TS_OneWire_I2C)
// Should be 0x18, 0x19, 0x1A, 0x1B
#define DS2482_ADDR 0x1B
//**********************************************************************************
//**********************************************************************************
// Serial0 Communication Options
//**********************************************************************************
// COM_SERIAL0: Specifies the communication type being used (Pick One):
// ASCII = Original BrewTroller serial command protocol used with BTRemote and BTLog
// BTNIC = BTnic (Lighterweight implementation of ASCII protocol using single-byte
// commands. This protocol is used with BTnic Modules and software for
// network connectivity.
// BINARY = Binary Messages
//**********************************************************************************
//#define COM_SERIAL0 ASCII
#define COM_SERIAL0 BTNIC
//#define COM_SERIAL0 BINARY
// BAUD_RATE: The baud rate for the Serial0 connection. Previous to BrewTroller 2.0
// Build 419 this was hard coded to 9600. Starting with Build 419 the default rate
// was increased to 115200 but can be manually set using this compile option.
#define SERIAL0_BAUDRATE 115200
#endif