How does the power telemetry with INA219 even work? #6832
mich181189
started this conversation in
General
Replies: 1 comment
-
|
The telemetry.proto file reads in EnvironmentMetrics: |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
The Power Telemetry module supports using the INA219 sensor. What I can't see is how it actually works:
In PowerTelemetry.cpp:
m.which_variant = meshtastic_Telemetry_power_metrics_tag;...valid = ina219Sensor.getMetrics(m);Then in INA219Sensor.cpp:
measurement->variant.environment_metrics.has_voltage = true;As in, the variant tag is set to
power_metricshoweverenvironment_metricsis being filled in. Only the INA3221 sensor seems ot actually fill inpower_metrics.In the iOS app, the INA219 metrics seem to get attributed to channel 3, and I was wondering why (why not channel 1?) when I spotted this
Beta Was this translation helpful? Give feedback.
All reactions