Skip to content

Implement Battery Monitoring for promicro#2512

Open
todd-herbert wants to merge 2 commits into
meshcore-dev:devfrom
todd-herbert:promicro-battery
Open

Implement Battery Monitoring for promicro#2512
todd-herbert wants to merge 2 commits into
meshcore-dev:devfrom
todd-herbert:promicro-battery

Conversation

@todd-herbert
Copy link
Copy Markdown

A few tweaks to get battery monitoring working for the promicro variant:

  • modify equation in Promicroboard::getBattMilliVolts
  • correct AREF_VOLTAGE, lower ADC_MULTIPLIER accordingly
  • raise ADC_RESOLUTION

@mattzzw
Copy link
Copy Markdown
Contributor

mattzzw commented May 15, 2026

Regading the default adc multiplier value:
Which promicro variant are you referring to?
The FakeTec boards for example use resistors of equal values for the adc voltage devider.

@todd-herbert
Copy link
Copy Markdown
Author

Regading the default adc multiplier value: Which promicro variant are you referring to? The FakeTec boards for example use resistors of equal values for the adc voltage devider.

Oh yes, sorry, well spotted!
I'd previously been using faketec boards with Meshtastic, which for some reason expects a 1MOhm-1.5MOhm divider.

It totally slipped my mind that this was abnormal. I'll update to reflect the official faketec setup with the two equal divider resistors.

Reflects the official faketec spec: two equal 1MOhm resistors
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.

2 participants