Skip to content

Added a new branch with added battery status for ORIC firmware#1

Open
CIumsy wants to merge 2 commits into
origininterconnect:mainfrom
CIumsy:I2C-Battery
Open

Added a new branch with added battery status for ORIC firmware#1
CIumsy wants to merge 2 commits into
origininterconnect:mainfrom
CIumsy:I2C-Battery

Conversation

@CIumsy
Copy link
Copy Markdown

@CIumsy CIumsy commented May 31, 2025

Added battery monitoring support via I2C:

  • Integrated BQ27546 battery gauge communication (I2C address 0x55)
  • Added readBatteryPercentage() function for State of Charge monitoring
  • Appended battery data as last byte in data packets (8000→8001 bytes)
  • Implemented low battery warning (red NeoPixel blink x3 if ≤10% at startup)
  • Optimized battery reads outside ISR to avoid timing delays
  • Maintained backward compatibility with existing data structure(timestamp + sample number + 8-channel ADC data + battery byte)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant