2022-08-20 11:39:03 -07:00
|
|
|
#pragma once
|
|
|
|
|
2022-09-19 16:31:30 -07:00
|
|
|
// TS settings
|
2023-06-11 12:51:41 -07:00
|
|
|
#define TS_SIGNATURE "rusEFI 2023.05.10.wideband_f1"
|
2022-09-19 16:31:30 -07:00
|
|
|
|
2022-08-20 11:39:03 -07:00
|
|
|
// Fundamental board constants
|
|
|
|
#define VCC_VOLTS (3.3f)
|
|
|
|
#define HALF_VCC (VCC_VOLTS / 2)
|
|
|
|
#define ADC_MAX_COUNT (4095)
|
|
|
|
#define ADC_OVERSAMPLE 24
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Nernst voltage & ESR sense
|
|
|
|
// *******************************
|
2023-12-10 03:53:56 -08:00
|
|
|
#define NERNST_INPUT_GAIN (3.0f)
|
2022-08-20 11:39:03 -07:00
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Battery Sensing
|
|
|
|
// *******************************
|
|
|
|
// 100K + 10K divider
|
|
|
|
#define BATTERY_INPUT_DIVIDER (10.0 / (10.0 + 100.0))
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Heater low side Sensing
|
|
|
|
// *******************************
|
|
|
|
// 100K + 10K divider
|
|
|
|
#define HEATER_INPUT_DIVIDER (10.0 / (10.0 + 100.0))
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Vm output Sensing
|
|
|
|
// *******************************
|
|
|
|
// 100K + 10K divider
|
|
|
|
#define VM_INPUT_DIVIDER (10.0 / (10.0 + 100.0))
|
|
|
|
|
|
|
|
#define AFR_CHANNELS 1
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// Nernst voltage & ESR sense
|
|
|
|
// *******************************
|
|
|
|
#define VM_RESISTOR_VALUE (0)
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// AUX outputs
|
|
|
|
// *******************************
|
|
|
|
// OpAmp with 82K + 160K
|
|
|
|
#define AUXOUT_GAIN ((82.0 + 160.0) / 160.0)
|
|
|
|
|
|
|
|
// *******************************
|
|
|
|
// TunerStudio Primary Port
|
|
|
|
// *******************************
|
2022-10-06 11:24:11 -07:00
|
|
|
#define TS_PRIMARY_SERIAL_PORT SD1
|
|
|
|
#define TS_PRIMARY_BAUDRATE 115200
|