Skip to content

Commit

Permalink
updates variants for new capacity measurement
Browse files Browse the repository at this point in the history
  • Loading branch information
Gabrielerusso committed Feb 14, 2024
1 parent 99ab386 commit 5ef0709
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 7 deletions.
6 changes: 3 additions & 3 deletions variants/chatter2/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
// lower dB for lower voltage rnage
#define ADC_MULTIPLIER \
5.0 // VBATT---10k--pin34---2.5K---GND
// Chatter2 uses 3 AAA cells
#define BAT_FULLVOLT 4800 // with the 5.0 divider, input to BATTERY_PIN is 900mv
#define BAT_EMPTYVOLT 3300
// Chatter2 uses 3 AAA cells
#define CELL_TYPE_ALKALINE
#define NUM_CELLS 3
#undef EXT_PWR_DETECT

// GPS
Expand Down
6 changes: 2 additions & 4 deletions variants/station-g1/variant.h
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,8 @@
#define ADC_CHANNEL ADC1_GPIO35_CHANNEL
#define BATTERY_SENSE_SAMPLES 30 // Set the number of samples, It has an effect of increasing sensitivity.
#define ADC_MULTIPLIER 6.45
#define BAT_FULLVOLT 12600
#define BAT_EMPTYVOLT 8200
#define BAT_CHARGINGVOLT 12600
#define BAT_NOBATVOLT 6690
#define CELL_TYPE_LION //same curve for liion/lipo
#define NUM_CELLS 3

// different screen
#define USE_SH1106
Expand Down

0 comments on commit 5ef0709

Please sign in to comment.