External Voltage Measurement Heltec Wireless LoRa V3 #131

Closed
opened 2026-10-05 05:39:39 +02:00 by adam · 4 comments
Owner

I have been trying to read an external battery Voltage - without success.

I tried GPIO 46 (board pin 5). That appears to be unassigned. No luck. I just get a constant Voltage reported that it not related to the actual voltage on the pin. I can change the reported values by changing the resistor values in the web interface but the reported voltage is not related to the actual applied voltage. I tried changing the actual applied volt (1.37-2.84 volts) but the reported voltage remains unchanged at 3.84 Volts. I rebooted after the changes in case it was only sampled infrequently but no change.

This would be a useful facility as my solar digi runs the board off a 5 Volt USB supply so I need to be able to monitor the batteries directly to understand their state of charge. Thanks.

I have been trying to read an external battery Voltage - without success. I tried GPIO 46 (board pin 5). That appears to be unassigned. No luck. I just get a constant Voltage reported that it not related to the actual voltage on the pin. I can change the reported values by changing the resistor values in the web interface but the reported voltage is not related to the actual applied voltage. I tried changing the actual applied volt (1.37-2.84 volts) but the reported voltage remains unchanged at 3.84 Volts. I rebooted after the changes in case it was only sampled infrequently but no change. This would be a useful facility as my solar digi runs the board off a 5 Volt USB supply so I need to be able to monitor the batteries directly to understand their state of charge. Thanks. <!-- github-sync-id:2522722547 -->
adam closed this issue 2026-10-05 05:39:39 +02:00
Author
Owner

This is on an iGate - not a tracker. Woops I have put the problem in the wrong section. Sorry.

no problem, but now we are sure we are talking about igate firmware:

test GPIO 6 or GPIO7

> This is on an iGate - not a tracker. Woops I have put the problem in the wrong section. Sorry. no problem, but now we are sure we are talking about igate firmware: test GPIO 6 or GPIO7 <!-- github-comment-id:2346612319 -->
Author
Owner

remember to use voltage divider for voltages higher than 3.3v on the input pin

remember to use voltage divider for voltages higher than 3.3v on the input pin <!-- github-comment-id:2346613302 -->
Author
Owner

GPIO 7 works. I now realise that I needed a GPIO with an ADC. Thanks! I will put a note on the Wiki about this. https://sotaloraaprs.miraheze.org/wiki/Main_Page

GPIO 7 works. I now realise that I needed a GPIO with an ADC. Thanks! I will put a note on the Wiki about this. https://sotaloraaprs.miraheze.org/wiki/Main_Page <!-- github-comment-id:2346632859 -->
Author
Owner

great!

great! <!-- github-comment-id:2346635305 -->
Sign in to join this conversation.
No labels
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: adam/LoRa_APRS_iGate#131