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

LVPM.Monsoon.setVout is interrupting the power source. #15

Open
luiscruz opened this issue Oct 27, 2017 · 2 comments
Open

LVPM.Monsoon.setVout is interrupting the power source. #15

luiscruz opened this issue Oct 27, 2017 · 2 comments

Comments

@luiscruz
Copy link

luiscruz commented Oct 27, 2017

Whenever I set the voltage of the power monitor my phone dies 👎
This is unfortunate because I have to manually turn the phone on each time I run my scripts.

I will use a temporary solution in which I only call LVPM.Monsoon.setVout if the voltage is different from the actual value in the power monitor.

Which leads me to another question about LVPM.Monsoon.setVout:

  • What exactly is Operations.Conversion.FLOAT_TO_INT?
  • If I set the power monitor to 4V it sets it to 4194304. What's this?
@Mbrinker
Copy link
Collaborator

I'm having difficulty replicating the primary bug. We have a few phones here we use for testing, and they're able to stay powered on between voltage changes with setVout(). Does it occur with any call to setVout at all? For example, if the current setpoint is 3.70V, and you call to set it to 3.70V again, does your phone die?

For FLOAT_TO_INT, the microprocessor inside the Power Monitor doesn't support floating point numbers, so we map the floating point number given by the user to an integer with the level of precision needed to accurately interpret the voltage setpoint.

@luiscruz
Copy link
Author

luiscruz commented Oct 30, 2017 via email

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

No branches or pull requests

2 participants