Hello guest, if you read this it means you are not registered. Click here to register in a few simple steps, you will enjoy all features of our Forum.
This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Voltage & Current Measurement Settings
#1
Do any FC AIO/ESC manufacturers give you the correct parameters to plug into BetaFlight for accurate ADC voltage and current measurement?

Brand new BetaFlight AIO flight controller had 100 for current scale and -500 for offset.  After some flights I see this is 4X higher than it should be.

Betaflight defaults for current scale and offset are 400 and 0, respectively.

Doing some test flights, recording mAh from OSD, re-charging (fast, not balancing), recording mAh put back in, and trying BF default values and calculated values to get closer to reality.

Is it really that hard for manufacturers to do a little calibration and provide some ballpark numbers ?
_____________________________________
Walksnail / Avatar … It’s  better than analog !
Reply
Login to remove this ad | Register Here
#2
Matek usually were good about listing the current sensor scale. Otherwise, most other manufacturers let you fend for yourself.
Reply
#3
Usually it's best to just check to see if they offered up values to use before buying. If they don't give you any, a multimeter is your buddy. Voltage is pretty simple, as you just adjust the number until each reads the same. With current, I use a current clamp to get close, then see if the used mAh comes up accurately at the charger.
Reply
#4
If I remember correctly for current you have to use y=mx+b, where
  • Y is the current reported by BF
  • M is the scale/slope
  • X is the amount of throttle
  • B is the offset/y-intercept
You need a linear throttle curve, a multimeter or ammeter, one hand to hold the drone securely, the other hand to operate the throttle.  Props have to be on because actual current readings under actual load need to be measured.  I did this with a whoop once, and it worked great, but would never try it with a 5” or similar size.

You hook everything up and with throttle at 0 you read the current on the multimeter/ammeter and adjust offset in BF until BF reports the same.

Then you have to take various readings at different throttle levels to find the scale/slope where BF reads the same.  This is the dangerous part obviously, and the reason almost everyone's current readings are wrong.

If you don’t find correct values for both scale and offset then readings will be off across the range of throttle, and then what's the point ?

I suppose you could do something similar by loading down the onboard regulators instead but then it would be helpful for them to disclose their max current ratings.  And the samples won’t be as spread out across the ESCs range like could be achieved by running the motors with props on.  The samples would  all be close to the idle/zero throttle current value so the resulting scale wouldn’t be as accurate.

Or, we can avoid all this potential danger and have the scale and offset values specified by the manufacturer.  For us to do this safely we need to make the appropriate cables & connectors if using a multimeter (you don't want to be attempting to hold probe wires cuz you'd need a 3rd hand) and a secure mechanism (not your 2nd hand) for holding the drone from moving and chopping measurement wires, and yourself.

Yes voltage is easy and much safer to measure.
_____________________________________
Walksnail / Avatar … It’s  better than analog !
Reply
#5
For current sensor calibration I've used Pawel's method detailed in the post linked to below. I do admit that doing it that way is quite scary with a 5" quad but the props being upside down suck the quad to the workbench so it's not going anywhere. You don't even need to hold the quad down if you don't want to because it does that itself by running inverse props. You just need to be very careful not to move the pitch, roll, or yaw stick axis Big Grin

https://intofpv.com/t-how-to-calibrate-y...ent-sensor
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Help HGLRC Zeus5 ES24 (or Drashark) Current Sensor segler999 0 77 21-Apr-2024, 02:46 AM
Last Post: segler999
  Diatone stack current sensor problem Myman 10 1,551 27-Dec-2023, 12:02 AM
Last Post: Birbal
  F4 1S 5A AIO FC ELRS Current Draw in OSD segler999 6 630 17-Nov-2023, 02:57 AM
Last Post: segler999
  Help Correct amp scale for DarwinFPV F411 3-4S 30A? swequad 32 1,529 29-Oct-2023, 11:35 AM
Last Post: swequad
  Luminere AIO 55 amp current wrong gt40 9 592 04-Jun-2022, 10:38 AM
Last Post: iFly4rotors


Login to remove this ad | Register Here