Tell me, how is the internal voltage level controlled?
I enabled the monitoring option, but it goes into sleep mode. The internal voltage shows 0.
My board is LILYGO®TTGO LoRa32 V2.1_1,6 433 МГц and is powered by a 3.6 V battery through a standard connector.
Now I have no access to the device and cannot reprogram it.
What should I do?
Tell me, how is the internal voltage level controlled?
I enabled the monitoring option, but it goes into sleep mode. The internal voltage shows 0.
My board is LILYGO®TTGO LoRa32 V2.1_1,6 433 МГц and is powered by a 3.6 V battery through a standard connector.
Now I have no access to the device and cannot reprogram it.
What should I do?
<!-- github-sync-id:2666003280 -->
you should validate that the battery is read correctly on the board before you put the monitoring process.
if it works Fine, the monitoring process should validate that the voltage is higher than the SleepVoltage and if lower it will sleep
so first: check that the board reads the battery voltage
pin35 is the internal battery monitoring pin.
you should validate that the battery is read correctly on the board before you put the monitoring process.
if it works Fine, the monitoring process should validate that the voltage is higher than the SleepVoltage and if lower it will sleep
so first: check that the board reads the battery voltage
<!-- github-comment-id:2481319912 -->

Is this correct?
What are the resistor values?
<!-- github-comment-id:2482068434 -->
You don't need to do anything. The internal voltage is internally connected on the board, the voltage divider is already on the board and the measurement should work without any modifications.
As @richonguzman says, disable voltage monitoring for now for easier troubleshooting until you get a valid voltage reading. Enable "Send internal voltage" and observe if the screen shows 3.6V or similar. If it shows 0V, you have two options:
a) you didn't flash the correct firmware for this board and the power management chip is not detected
b) your board is broken. Measure the voltage between PIN 35 and GND with a voltmeter and see if the voltage is non-zero.
The external voltage divider is only for external voltage measurements via pin 34.
You don't need to do anything. The internal voltage is internally connected on the board, the voltage divider is already on the board and the measurement should work without any modifications.
As @richonguzman says, disable voltage monitoring for now for easier troubleshooting until you get a valid voltage reading. Enable "Send internal voltage" and observe if the screen shows 3.6V or similar. If it shows 0V, you have two options:
a) you didn't flash the correct firmware for this board and the power management chip is not detected
b) your board is broken. Measure the voltage between PIN 35 and GND with a voltmeter and see if the voltage is non-zero.
The external voltage divider is only for external voltage measurements via pin 34.
<!-- github-comment-id:2482132794 -->
At pin 35 this function does not work ;(

<!-- github-comment-id:2482156997 -->
Try to monitor USB during boot (using VS Code) and see if the power management chip is detected correctly. (my point a) above).,
Try to monitor USB during boot (using VS Code) and see if the power management chip is detected correctly. (my point a) above).,
<!-- github-comment-id:2482171200 -->
I just took a fresh Lora32 2.1 out of the box, flashed it with Lora32 2.1/1.6.1 firmware and enabled "Send internal Voltage". I can see the voltage on screen and on pin35 (lowered by the onboard internal voltage divider).
I just took a fresh Lora32 2.1 out of the box, flashed it with Lora32 2.1/1.6.1 firmware and enabled "Send internal Voltage". I can see the voltage on screen and on pin35 (lowered by the onboard internal voltage divider).


<!-- github-comment-id:2482199827 -->
For this example I used the latest firmware, 2024.11.6. But any other firmware from earlier this year should work, the voltage measurement code is old and hasn't changed in a long time.
For this example I used the latest firmware, 2024.11.6. But any other firmware from earlier this year should work, the voltage measurement code is old and hasn't changed in a long time.
<!-- github-comment-id:2482255275 -->
If you measure 0V on pin35, it is not a matter of firmware. It means that your board is somehow broken. Try with another board if you have it.
If you measure 0V on pin35, it is not a matter of firmware. It means that your board is somehow broken. Try with another board if you have it.
<img width="739" alt="image" src="https://github.com/user-attachments/assets/4c252541-b39a-4699-abef-56587f445f4a">
<!-- github-comment-id:2482268364 -->
This is not the best solution. It seems we will have to give up this option :(
we have to stop and make this post a little more clear:
@RA3TOX , can you please confirm:
your board is Lora32V2.1 (or V1.6.1)?
if (1) is YES, then..
when powering the board (with power switch in ON position) does IO35 read any voltage?
if (2) is YES, does it read the right voltage? (voltage read * 2 should be almost the same as battery real readings)
if all from before is YES you should be able to send battery voltage with good values
> This is not the best solution. It seems we will have to give up this option :(
we have to stop and make this post a little more clear:
@RA3TOX , can you please confirm:
1) your board is Lora32V2.1 (or V1.6.1)?
if (1) is YES, then..
2) when powering the board (with power switch in ON position) does IO35 read any voltage?
3) if (2) is YES, does it read the right voltage? (voltage read * 2 should be almost the same as battery real readings)
4) if all from before is YES you should be able to send battery voltage with good values
<!-- github-comment-id:2482640676 -->
@richonguzman
My board is Lora32V2.1 (or V1.6.1)
When I powering the board IO35 read 0 Volt
My firmware from 2024.10.25
@richonguzman
My board is Lora32V2.1 (or V1.6.1)
When I powering the board IO35 read 0 Volt
My firmware from 2024.10.25

<!-- github-comment-id:2482836862 -->
Possibly. But @S57PNX also shows incorrect voltage.
this is reading the pin directly (and you have to multiply by two and add a minor correction for the board to get the real value)
the lora32v2.1 board has internal 1/2 voltage divider with two 100K resistors.
So @S57PNX is having a correct reading of the voltage it enters pin35
> @richonguzman
>
> > your board is bad..
>
> Possibly. But @S57PNX also shows incorrect voltage.
this is reading the pin directly (and you have to multiply by two and add a minor correction for the board to get the real value)
the lora32v2.1 board has internal 1/2 voltage divider with two 100K resistors.
So @S57PNX is having a correct reading of the voltage it enters pin35
<!-- github-comment-id:2483068545 -->
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
Tell me, how is the internal voltage level controlled?
I enabled the monitoring option, but it goes into sleep mode. The internal voltage shows 0.
My board is LILYGO®TTGO LoRa32 V2.1_1,6 433 МГц and is powered by a 3.6 V battery through a standard connector.
Now I have no access to the device and cannot reprogram it.
What should I do?
pin35 is the internal battery monitoring pin.
you should validate that the battery is read correctly on the board before you put the monitoring process.
if it works Fine, the monitoring process should validate that the voltage is higher than the SleepVoltage and if lower it will sleep
so first: check that the board reads the battery voltage
How to properly connect voltage to contact 35?
Is this correct?
What are the resistor values?
You don't need to do anything. The internal voltage is internally connected on the board, the voltage divider is already on the board and the measurement should work without any modifications.
As @richonguzman says, disable voltage monitoring for now for easier troubleshooting until you get a valid voltage reading. Enable "Send internal voltage" and observe if the screen shows 3.6V or similar. If it shows 0V, you have two options:
a) you didn't flash the correct firmware for this board and the power management chip is not detected
b) your board is broken. Measure the voltage between PIN 35 and GND with a voltmeter and see if the voltage is non-zero.
The external voltage divider is only for external voltage measurements via pin 34.
At pin 35 this function does not work ;(

Try to monitor USB during boot (using VS Code) and see if the power management chip is detected correctly. (my point a) above).,
I just took a fresh Lora32 2.1 out of the box, flashed it with Lora32 2.1/1.6.1 firmware and enabled "Send internal Voltage". I can see the voltage on screen and on pin35 (lowered by the onboard internal voltage divider).
@S57PNX What is your firmware date?
For this example I used the latest firmware, 2024.11.6. But any other firmware from earlier this year should work, the voltage measurement code is old and hasn't changed in a long time.
@S57PNX and still this function does not work correctly ...
How to set the correct voltage?
If you measure 0V on pin35, it is not a matter of firmware. It means that your board is somehow broken. Try with another board if you have it.
This is not the best solution.
It seems we will have to give up this option :(
we have to stop and make this post a little more clear:
@RA3TOX , can you please confirm:
if (1) is YES, then..
when powering the board (with power switch in ON position) does IO35 read any voltage?
if (2) is YES, does it read the right voltage? (voltage read * 2 should be almost the same as battery real readings)
if all from before is YES you should be able to send battery voltage with good values
@richonguzman

My board is Lora32V2.1 (or V1.6.1)
When I powering the board IO35 read 0 Volt
My firmware from 2024.10.25
it seems your board is bad.. as it should read battery voltage on pin35 with battery connected.
@richonguzman
Possibly.
But @S57PNX also shows incorrect voltage.
this is reading the pin directly (and you have to multiply by two and add a minor correction for the board to get the real value)
the lora32v2.1 board has internal 1/2 voltage divider with two 100K resistors.
So @S57PNX is having a correct reading of the voltage it enters pin35