-
Notifications
You must be signed in to change notification settings - Fork 32
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
Seems like voltage isn't working properly #25
Comments
You cannot measure voltage and current directly. For this, you must use a Current Sensor ACS712. When you connect a 2S or 3S battery directly to the pin, the Board lights up. |
How we can measure voltage with current sensor? For measuring current: For measuring voltage: Am I right? In my case there is 1S battery, so it is below 5v (4,2v maximum), so voltage divider is not needed, But as you can see in the video: INAV voltage indicator is stuck and not changing when real battery voltage is changing. |
So now I can say for sure: voltage measurement is not working. As you can see from my video: voltage scale number is set correctly, battery information is also set correctly. Testing algorithm:
|
I've never tested it. If I have time, I will review this by looking at the source code. If there is a problem, we solve it together. |
The code that calculates the ADC battery level is given as follows.
Voltage Scale meaning : 1100 = 11:1 voltage divider (10k:1k) |
There is 3.3v figurating in this code. May be 3.3v is the maximum, not 5v. Let me do some testing with it. |
Yep, if the voltage is below 3.3v all is working well. I sent a PR to add this information to readme file, closing issue now. |
VBAT voltage isnt changing.
Here is detailed video of testing: https://youtu.be/y0L-hrXLQsw
The text was updated successfully, but these errors were encountered: