Skip to content

Fix multiplier for battery voltage #33

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

Merged
merged 1 commit into from
Dec 5, 2020
Merged

Conversation

dhalbert
Copy link
Contributor

@dhalbert dhalbert commented Dec 4, 2020

The battery voltage multiplier should be 3.3V, not 2.6V, because AnalogIn now compensates for the limited voltage range to some extent.

After this fix, the battery voltage is still low by about 0.15V, but I think that's a fix to be made in AnalogIn, and will work on that separately.

The battery voltage multiplier should be 3.3V, not 2.6V, because `AnalogIn` now compensates for the limited voltage range to some extent.

After this fix, the battery voltage is still low by about 0.15V, but I think that's a fix to be made in `AnalogIn`, and will work on that separately.
@dhalbert dhalbert requested a review from makermelissa December 4, 2020 17:48
@dhalbert
Copy link
Contributor Author

dhalbert commented Dec 4, 2020

@ladyada If you want this to be more accurate right now, we can add 0.15 to the result here, and then remove that after (if and when) AnalogIn gets fixed.

@dhalbert dhalbert requested a review from ladyada December 4, 2020 17:52
Copy link
Collaborator

@makermelissa makermelissa left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. If you want to add .15 for now, you can. I'm fine with it being more accurate than is was either way.

@ladyada
Copy link
Member

ladyada commented Dec 4, 2020

the PPK2 has a more-precise voltage output if ya want to try that - the offset is probably what was causing my confusion

@makermelissa makermelissa merged commit 0905b50 into main Dec 5, 2020
adafruit-adabot added a commit to adafruit/Adafruit_CircuitPython_Bundle that referenced this pull request Dec 7, 2020
Updating https://github.com/adafruit/Adafruit_CircuitPython_SI7021 to 3.2.2 from 3.2.1:
  > Merge pull request adafruit/Adafruit_CircuitPython_SI7021#19 from FoamyGuy/remove_busio

Updating https://github.com/adafruit/Adafruit_CircuitPython_SSD1306 to 2.10.0 from 2.9.2:
  > Merge pull request adafruit/Adafruit_CircuitPython_SSD1306#53 from adamcandy/add-64x32-suppoort

Updating https://github.com/adafruit/Adafruit_CircuitPython_MagTag to 1.3.0 from 1.2.0:
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#37 from anecdata/patch-1
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#36 from ladyada/rotate
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#33 from adafruit/3.3-battery-voltage
  > Merge pull request adafruit/Adafruit_CircuitPython_MagTag#32 from makermelissa/fontcache
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.

3 participants