Skip to content

Fixed reading of battery voltage for Heltec V3.2. #109

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

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

alligitor
Copy link

See my discussions with myself: markqvist/Reticulum#805

…Comments from Power.h:

// there are three version of V3: V3, V3.1, and V3.2
// V3 and V3.1 have a pull up on pin_ctrl and are active low
// V3.2 has a transistor and active high
// put the pin input mode and read it.  if it's high, we have V3 or V3.1
// other wise, it's a V3.2

Also, changed the min, max, float values for V3 boards. From what I can see, most are sold with a battery like this: https://www.amazon.com/dp/B0D3LMQSGL These batteries advertise a min voltage of 3 and max of 4. Float should be a tiny bit below Max.

…ode:

    // there are three version of V3: V3, V3.1, and V3.2
    // V3 and V3.1 have a pull up on pin_ctrl and are active low
    // V3.2 has a transistor and active high
    // put the pin input mode and read it.  if it's high, we have V3 or V3.1
    // other wise, it's a V3.2

Also, changed the min, max, float values for V3 boards.  From what I can see, most are sold with
a battery like this:  https://www.amazon.com/dp/B0D3LMQSGL
These batteries advertise a min voltage of 3 and max of 4.  Float should be a tiny bit below Max.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant