-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy path02.wiring.ino
22 lines (18 loc) · 940 Bytes
/
02.wiring.ino
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
const pin_size_t PIN_SENSOR_SDA = 0;
const pin_size_t PIN_SENSOR_SCL = 1;
const pin_size_t PIN_PA_EN = 16; // to R_EN (1st IBT-2 module)
const pin_size_t PIN_PA = 17; // to RPWM (1st IBT-2 module)
const pin_size_t PIN_PB_EN = 18; // to L_EN (1st IBT-2 module)
const pin_size_t PIN_PB = 19; // to LPWM (1st IBT-2 module)
const pin_size_t PIN_PC_EN = 20; // to R_EN (2nd IBT-2 module)
const pin_size_t PIN_PC = 21; // to RPWM (2nd IBT-2 module)
// Phase A will be on M+ terminal on 1st IBT-2 module.
// Phase B will be on M- terminal on 1st IBT-2 module.
// Phase C will be on M+ terminal on 2nd IBT-2 module.
const pin_size_t PIN_ADS1115_SDA = 2;
const pin_size_t PIN_ADS1115_SCL = 3;
const pin_size_t PIN_ACCELERATOR = 0; // on ADS1115
const pin_size_t PIN_BRAKE = 1; // on ADS1115
const pin_size_t PIN_CLUTCH = 2; // on ADS1115
const pin_size_t PIN_LOADCELL_DT = 15;
const pin_size_t PIN_LOADCELL_CL = 14;