Skip to content
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

Node Vbat is broken #2

Open
jgallagher59701 opened this issue Aug 8, 2021 · 1 comment
Open

Node Vbat is broken #2

jgallagher59701 opened this issue Aug 8, 2021 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@jgallagher59701
Copy link
Owner

The data sent by the lora include Vbat, but the value is wrong. When the actual voltage is 2.7, the node reports it as 3.31. The voltage at the top of the V Divider is 1.905

@jgallagher59701 jgallagher59701 added the bug Something isn't working label Aug 8, 2021
@jgallagher59701 jgallagher59701 self-assigned this Aug 8, 2021
@jgallagher59701
Copy link
Owner Author

  1. The RS has a voltage div on pin A5 – use that instead of adding my own.
  2. modifying the get_bat_v() function so it waits 100ms before reads and only returns a value when two consecutive reads are within delta counts seems to have fixed the problem with the bogus values when Vbat is > 3.3v However, ...
  3. When Vbat is < 3.3 the value read from A5 (or my own voltage div on pin A0) is floored at 3..3 v.

Put this back in ToDo for now. Maybe something will turn up later.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant