-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Expose INA219 measurement as battery voltage for Seeed Xiao ESP32S3 #6070
Expose INA219 measurement as battery voltage for Seeed Xiao ESP32S3 #6070
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We generally refrain from 'reserving' Pins for optional functionality not present on the PCB. Exypecially since these boards only have a very small number of available GPIO's. I'd rather accept a PR providing the INA functionality through other modifications not blocking a random GPIO Pin.
8cfd16e
to
1d680f3
Compare
@caveman99 Some variants.h are using |
What we need is this: #3409 |
I agree auto-detection would be nice. IMO this is out of scope of this pull request. |
Yes that would be an option, but every toolchain behaves quite differently. Did you actually test the mod? |
2052690
to
f6e0e26
Compare
Yes. The
|
f6e0e26
to
587974b
Compare
The Meshtastic firmware lacks the ability to publish INA power monitor measurements as battery voltage readings when
BATTERY_PIN
is not defined. This limitation affects users who want to monitor battery levels using INA sensors.Additionally, when a valid GPIO/A0 pin is assigned as
BATTERY_PIN
, users can measure analog voltage directly through that pin without requiring firmware recompilation. This feature provides more flexibility for hardware configurations.This improvement would benefit users by:
Related issues:
#5248
#5880