mirror of
https://github.com/MrUnknownDE/OpenIris-ESPIDF.git
synced 2026-05-07 14:16:04 +02:00
config: disable battery monitoring by default and clean up ADC settings
- Set CONFIG_MONITORING_BATTERY_ENABLE to n by default - Update help text for ADC pin configuration in Kconfig - Remove unused config options
This commit is contained in:
@@ -603,23 +603,6 @@ CONFIG_LED_EXTERNAL_PWM_FREQ=5000
|
|||||||
CONFIG_LED_EXTERNAL_PWM_DUTY_CYCLE=100
|
CONFIG_LED_EXTERNAL_PWM_DUTY_CYCLE=100
|
||||||
# end of OpenIris: LED Configuration
|
# end of OpenIris: LED Configuration
|
||||||
|
|
||||||
#
|
|
||||||
# OpenIris: Monitoring
|
|
||||||
#
|
|
||||||
CONFIG_MONITORING_LED_CURRENT=y
|
|
||||||
CONFIG_MONITORING_LED_ADC_GPIO=3
|
|
||||||
CONFIG_MONITORING_LED_GAIN=11
|
|
||||||
CONFIG_MONITORING_LED_SHUNT_MILLIOHM=22000
|
|
||||||
CONFIG_MONITORING_LED_SAMPLES=10
|
|
||||||
CONFIG_MONITORING_LED_INTERVAL_MS=500
|
|
||||||
CONFIG_MONITORING_BATTERY_ENABLE=y
|
|
||||||
CONFIG_MONITORING_BATTERY_ADC_GPIO=1
|
|
||||||
CONFIG_MONITORING_BATTERY_DIVIDER_R_TOP_OHM=10000
|
|
||||||
CONFIG_MONITORING_BATTERY_DIVIDER_R_BOTTOM_OHM=10000
|
|
||||||
CONFIG_MONITORING_BATTERY_SAMPLES=10
|
|
||||||
CONFIG_MONITORING_BATTERY_INTERVAL_MS=1000
|
|
||||||
# end of OpenIris: Monitoring
|
|
||||||
|
|
||||||
#
|
#
|
||||||
# Camera sensor pinout configuration
|
# Camera sensor pinout configuration
|
||||||
#
|
#
|
||||||
|
|||||||
@@ -204,7 +204,9 @@ menu "OpenIris: Monitoring"
|
|||||||
range 0 48
|
range 0 48
|
||||||
default 3
|
default 3
|
||||||
help
|
help
|
||||||
GPIO connected to the current sense input (ADC1 on ESP32-S3: 1..10 supported).
|
GPIO connected to the current sense input. On ESP32-S3 ADC1 channels
|
||||||
|
0..9 map to GPIO1..10; On ESP32 ADC1 channels 0..3 map to GPIO36..39,
|
||||||
|
channels 4..7 map to GPIO32..35; adjust if your board uses a different pin.
|
||||||
|
|
||||||
config MONITORING_LED_GAIN
|
config MONITORING_LED_GAIN
|
||||||
int "Analog front-end gain/divider"
|
int "Analog front-end gain/divider"
|
||||||
@@ -240,7 +242,7 @@ menu "OpenIris: Monitoring"
|
|||||||
|
|
||||||
config MONITORING_BATTERY_ENABLE
|
config MONITORING_BATTERY_ENABLE
|
||||||
bool "Enable battery voltage monitoring"
|
bool "Enable battery voltage monitoring"
|
||||||
default y
|
default n
|
||||||
help
|
help
|
||||||
Enables an ADC-based readout of the lithium battery voltage so the software
|
Enables an ADC-based readout of the lithium battery voltage so the software
|
||||||
can report remaining charge in commands or REST endpoints.
|
can report remaining charge in commands or REST endpoints.
|
||||||
@@ -252,7 +254,8 @@ menu "OpenIris: Monitoring"
|
|||||||
default 1
|
default 1
|
||||||
help
|
help
|
||||||
GPIO that is wired to the battery sense divider. On ESP32-S3 ADC1 channels
|
GPIO that is wired to the battery sense divider. On ESP32-S3 ADC1 channels
|
||||||
1..10 map to GPIO1..10; adjust if your board uses a different pin.
|
0..9 map to GPIO1..10; On ESP32 ADC1 channels 0..3 map to GPIO36..39;
|
||||||
|
channels 4..7 map to GPIO32..35; adjust if your board uses a different pin.
|
||||||
|
|
||||||
config MONITORING_BATTERY_DIVIDER_R_TOP_OHM
|
config MONITORING_BATTERY_DIVIDER_R_TOP_OHM
|
||||||
int "Battery divider top resistor (ohms)"
|
int "Battery divider top resistor (ohms)"
|
||||||
|
|||||||
Reference in New Issue
Block a user