Internal voltage level controll #145

Open
opened 2026-10-05 05:42:16 +02:00 by adam · 17 comments
Owner

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 -->
Author
Owner

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

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 -->
Author
Owner

How to properly connect voltage to contact 35?

How to properly connect voltage to contact 35? <!-- github-comment-id:2482047394 -->
Author
Owner

pinout_ttgo-int-akkum
Is this correct?
What are the resistor values?

![pinout_ttgo-int-akkum](https://github.com/user-attachments/assets/f94a585d-1e41-45da-9bf4-ab656b8c4170) Is this correct? What are the resistor values? <!-- github-comment-id:2482068434 -->
Author
Owner

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 -->
Author
Owner

At pin 35 this function does not work ;(
monitoring_akk

At pin 35 this function does not work ;( ![monitoring_akk](https://github.com/user-attachments/assets/d645f592-6a81-42fe-a85e-dea09ba26772) <!-- github-comment-id:2482156997 -->
Author
Owner

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 -->
Author
Owner

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).

IMG_2183

IMG_2184

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). ![IMG_2183](https://github.com/user-attachments/assets/75620382-7a82-421f-aa84-296bb374a246) ![IMG_2184](https://github.com/user-attachments/assets/14e555a7-8f21-45ba-a755-a9860574203d) <!-- github-comment-id:2482199827 -->
Author
Owner

@S57PNX What is your firmware date?

@S57PNX What is your firmware date? <!-- github-comment-id:2482249303 -->
Author
Owner

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 -->
Author
Owner

@S57PNX and still this function does not work correctly ...
How to set the correct voltage?

@S57PNX and still this function does not work correctly ... How to set the correct voltage? <!-- github-comment-id:2482256204 -->
Author
Owner

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.

image
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 -->
Author
Owner

This is not the best solution.
It seems we will have to give up this option :(

This is not the best solution. It seems we will have to give up this option :( <!-- github-comment-id:2482305726 -->
Author
Owner

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..

  1. when powering the board (with power switch in ON position) does IO35 read any voltage?

  2. if (2) is YES, does it read the right voltage? (voltage read * 2 should be almost the same as battery real readings)

  3. 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 -->
Author
Owner

@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
image

@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 ![image](https://github.com/user-attachments/assets/98397108-56bc-4670-beb6-9b2bd39cf52e) <!-- github-comment-id:2482836862 -->
Author
Owner

it seems your board is bad.. as it should read battery voltage on pin35 with battery connected.

it seems your board is bad.. as it should read battery voltage on pin35 with battery connected. <!-- github-comment-id:2482847508 -->
Author
Owner

@richonguzman

your board is bad..

Possibly.
But @S57PNX also shows incorrect voltage.

@richonguzman > your board is bad.. Possibly. But @S57PNX also shows incorrect voltage. <!-- github-comment-id:2483007882 -->
Author
Owner

@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

> @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 -->
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#145