Calibrating your BetaFlight OSD battery voltage display

Sdílet
Vložit
  • čas přidán 9. 06. 2019
  • In this video I'll show you how to calibrate the battery voltage shown in your BetaFlight OSD. Getting the voltage monitor calibrated in BetFlight is essential if you want the voltage alarms to work properly. And it'll show you the correct battery voltage on your main battery display.
    Configuring this is quick and simple and is required because each flight controller is slightly different. You just need a quad, a battery and a multimeter and you'll have it setup in a couple of minutes. It could save your bacon.
    Betaflight voltage monitor: github.com/betaflight/betafli...
    Here's how the Scale, Voltage Multiplier and Divide Multiplier are used.
    VBAT_SCALE = 110 // This is the default scale and also the one shown in the BFC GUI
    VBAT_DIVIDER = 10 // This is the default divider value and also the one shown in the BFC GUI
    VBAT_MULTIPLIER = 1 // This is the default multiplier value and also the one shown in the BFC GUI
    ADC_VOLTAGE_REFERENCE_MV = 3300 // This is the ADC reference voltage which is generally calculated at 3.3 volts
    ADC_RESOLUTION_MAX = 4095 // 4095 (0xfff) is the maximum value for a 12-bit digital value which is what the ADC uses
    ADC_MAX = 0xfff
    RESULT = (((ADC_SOURCE_VALUE * VBAT_SCALE * ADC_VOLTAGE_REFERENCE_MV / 100 + (ADC_RESOLUTION_MAX * 5)) / (ADC_RESOLUTION_MAX * VBAT_DIVIDER)) / VBAT_MULTIPLIER)
    If you want to see the BetaFlight code that does this, have a look at the voltageAdcToVoltage function (around line 158) in the BetaFlight src that calculates the display voltage from the input source voltage in /src/main/sensors/voltage.c
    ╔════╡My Gear╞════════════════════════╡
    ║ ► HD Goggles - FatShark HDO: bit.ly/2VYgjmX
    ║ ► Regular Goggles - FatShark Dominator V3: bit.ly/2YKTHmW
    ║ ► VRX Module - OwlRX: bit.ly/2wjIehD
    ║ ► Radio - Taranis X9D: bit.ly/2WZPzyC
    ║ ► Portable Battery Charger - ToolKitRC M8: bit.ly/2VJPE8c
    ║ ► Workshop Battery Charger - iCharger 406 Duo: bit.ly/2VDMG5m
    ║ ► Soldering Workstation - Saike-909: bit.ly/2JAr9Jc
    ╚══════════════════════════════════╡
    ► Facebook - / whirlybloke
    ► Twitter - / whirlybloke
    ► Instagram - / whirlybloke
    #whirlybloke #betaflight #toptip

Komentáře • 75

  • @jamesgodley2065
    @jamesgodley2065 Před rokem

    Thanks old chap, this has been incredibly helpful!

  • @RaynerGS
    @RaynerGS Před 3 lety +1

    Good job, way to go. Salute from Brazil.

    • @WhirlyBloke
      @WhirlyBloke  Před 3 lety

      Thanks for watching and the feedback.

  • @atomfpv1907
    @atomfpv1907 Před 5 lety +1

    Nice one, I thought I had toasted a part on the FC when mine randomly started showing 0 batt voltage all the time.
    This sorted it out.
    2 years ago you helped me get into this hobby setting up a Vortex... still learning!

  • @michaeltamborelli2769
    @michaeltamborelli2769 Před 11 měsíci

    If you are flying a DJI drone the flight time till the automatic return to home kicks is displayed on your video screen I believe.

  • @Hellmuthsilva
    @Hellmuthsilva Před 5 lety

    Awesome video thanks

  • @pavlosgrivas343
    @pavlosgrivas343 Před 4 lety

    Excellent again!! Thanks😊

  • @lleston8927
    @lleston8927 Před 3 lety

    Excellent video!

  • @chadzulu4328
    @chadzulu4328 Před 2 lety

    Super helpful video, thanks so much mate

    • @WhirlyBloke
      @WhirlyBloke  Před 2 lety

      Glad it helped.

    • @chadzulu4328
      @chadzulu4328 Před 2 lety

      @@WhirlyBloke Been in the hobby for 4 years and this was the first time I had to calibrate voltage (T-Motor F4 Flight Controller). Thanks again, take care bro.

  • @darrylturner7622
    @darrylturner7622 Před 5 lety +3

    Could use a battery checker if you dont have a multimeter as balance lead is free. Great video thanks

  • @NorthStarDrones
    @NorthStarDrones Před 4 lety

    Great video 👍 thank you 👌🤜⚡

  • @maniac_fpv
    @maniac_fpv Před 3 lety

    BIG thanks sir :)

  • @mikel3419
    @mikel3419 Před 3 lety

    Good Stuff. Thanks

  • @sleepingbearffg5008
    @sleepingbearffg5008 Před 4 lety

    Thanks! Learned something new! Thumbs up! He he

  • @jeromepelloud8188
    @jeromepelloud8188 Před 3 lety

    Thanks so much guy :)

  • @tnapierala
    @tnapierala Před 4 lety +2

    Actually since quad is drawing current all the time, you should measure the voltage while connected to BF and read BF measurement at the same time

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety +1

      Good point. Thanks for the feedback.

  • @JaredMcConnellFerzen
    @JaredMcConnellFerzen Před 3 lety

    thanks buddy

  • @InfinityDrones
    @InfinityDrones Před 2 lety +1

    Nice video, very helpful. However... I have followed the steps and I get the following:
    When I plug my fully charged 4S battery into my quad the voltage used to show 15.6.
    I've gone into betaflight and in the power & battery tab change the scale up all the way to 152 and now it ready the battery correctly at 16.8v (while the battery checker is plugged in).
    But I've taken one of my other batteries that are in storage mode 14.8v... and checked again... Voltage still shows at 16.8 even though the plugged-in battery checker displays 14.8...
    Any ideas as to what I'm doing wrong here?

  • @michaeltamborelli2769
    @michaeltamborelli2769 Před 11 měsíci

    Since each cell, when fully charged, should be @ 4.2volts that should give a meter reading of 16.8v on a 4s lipo battery if I am correct. Also, I store my batteries @ 3.7v to 3.8v. You should never let your lipo batteries discharge to 3.0v. I use a small Lipo battery voltage tester that does the same thing as a voltage meter that you can find on eBay.

    • @WhirlyBloke
      @WhirlyBloke  Před 11 měsíci

      Thanks for taking the time to comment. Yes, everything you're saying is true and I totally agree. However, the point of this video is calibrating BetaFlight so it accurately reflects the actual cell voltage of the batteries. And that's very important so the pilot knows exactly, well as near exactly as possible, what the voltage is and from that, how much flight time is left. Thanks for watching.

  • @gadgetman404
    @gadgetman404 Před 2 lety

    Subbed you brother

  • @acek100
    @acek100 Před 4 lety

    idk what too do i been hell and back trying too figure out whats wrong with my quad everything working fine exept when taking off it acts all jittery and dont fly properly the prop and motor is good only thing i noticed is the battery voltage on betaflight is always at zero with battery hooked up

  • @PatrickGuerrisi
    @PatrickGuerrisi Před 2 lety

    For some reason. My battery meter on displays something ( even though the voltage and cell is incorrect) when ESC sensor is selected on the Voltage meter source. WIth that selected I cannot adjust anything on the voltage meter!. I have a 6S at 25.2 volts battery and its showing as 5S 18v

  • @edisonong825
    @edisonong825 Před 2 lety

    how about the ampherage? yours read 63

  • @sheapyfpv8224
    @sheapyfpv8224 Před 2 lety

    Great video really helpful. Problem I have as soon as I take off my osd voltage drops so quickly almost down to 14.3 4s lipo then if I land goes back Upto the correct voltage. Is that a lipo problem or osd problem?

    • @WhirlyBloke
      @WhirlyBloke  Před 2 lety

      It sounds like a bad or old lipo. They voltage sag very easily.

  • @KlownFPV
    @KlownFPV Před 5 lety

    That's a great tip thanks! Does this also set the mAh usage at the same time?

    • @WhirlyBloke
      @WhirlyBloke  Před 5 lety

      That's a separate calibration and a bit trickier.

    • @KlownFPV
      @KlownFPV Před 5 lety

      @@WhirlyBloke ah okay. I need to figure that one out

    • @sleepyheadfpv1507
      @sleepyheadfpv1507 Před 4 lety

      Jb has a good video on how you do it. Safe way but still kinda tricky.

    • @sleepyheadfpv1507
      @sleepyheadfpv1507 Před 4 lety

      czcams.com/video/pj_CaMZ98g4/video.html

  • @PatrickGuerrisi
    @PatrickGuerrisi Před 3 lety

    does it have to be a charged battery or can it be even a little used?

  • @alloutofdonuts3998
    @alloutofdonuts3998 Před 4 lety

    Why are the battery settings what they are?
    I mean the min, max & warning cell voltage settings. I thought default was higher. Is it just so it doesn't beep?

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety

      3.5 warning and 3.3 land now are default. But you can change them if you want and know your batteries well.

  • @manuelvoltz1780
    @manuelvoltz1780 Před 4 lety

    I have an other problem. MY voltage meter on the FC is broken. The rest of the FC is ok. I've been flying with it since then monitoring the voltage via the cameras OSD.
    But now, since i flashed a new firmware to the FC it will not arm anymore. Can this has to belong to the wrong voltage? Because Betaflight thinks the voltage would be 0V
    I slready changed the voltage source to "none" but this doesn't seem to help.
    Is there a setting in Betaflight to allow or not allow arming according to voltage?

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety

      Check the arming prevention flags. The info is here github.com/betaflight/betaflight/wiki/Arming-Sequence-&-Safety

  • @juliomagana3112
    @juliomagana3112 Před rokem

    Thank you my was off by 2 points

  • @acek100
    @acek100 Před 4 lety

    my betaflight shows zero boltage when battery is connected but everything is getting power and it will arm but have notice it will shot up too the ceiling and not hover when i increase the thottle

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety

      Sounds like you've an early Betaflight 4 version with stock PIDS. They used to hit the stars on a tiny bit of throttle on sub 5 inch quads.

    • @acek100
      @acek100 Před 4 lety

      @@WhirlyBloke I ended up realizing that my fc orientation was off by 30 degrees so I aligned it 30 negative n it fixed it.

  • @MrBumbles2
    @MrBumbles2 Před 2 lety

    Using lihv, just adjust the same,?? I got baby ape pro, and all I have lihv batteries, probably a stupid question but can I use lihv batteries in baby ape? Getting on Bf to check it out.

    • @WhirlyBloke
      @WhirlyBloke  Před 2 lety +1

      Probably, but check the flight controller, esc and vtx specs first.

    • @MrBumbles2
      @MrBumbles2 Před 2 lety

      @@WhirlyBloke it's all good, and actually the battery voltage was spot on, flies good out of the box

  • @FrancescoSignorini11
    @FrancescoSignorini11 Před 3 lety +1

    If I have the Tattu 14.8V 450mah 4s, should I have 14.8 where you have 16.7?

    • @WhirlyBloke
      @WhirlyBloke  Před 3 lety

      I good, fully charged 4s Lipo will be 16.8v regardless of the rating. 4.2v per cell.

    • @FrancescoSignorini11
      @FrancescoSignorini11 Před 3 lety

      @@WhirlyBloke because after a few seconds the warning appears in the goggles "low battery voltage"

    • @WhirlyBloke
      @WhirlyBloke  Před 3 lety +1

      @@FrancescoSignorini11 Sounds like the voltage end point isn't calibrated correctly, your battery charger isn't fully charging the batteries - again calibration of the charger - or the batteries are shot.

    • @FrancescoSignorini11
      @FrancescoSignorini11 Před 3 lety

      @@WhirlyBloke hota d6 pro is my charger; I think it's not the problem of charger. How do I fix the batteries?

  • @wardope
    @wardope Před 3 lety

    The new version of BF has a calibrate button. easy peasy. Measure the voltage put it in the calibrate box. Click the button. and that is it :D

    • @WhirlyBloke
      @WhirlyBloke  Před 3 lety

      Betaflight just gets better and better.

  • @chrisvedrin2063
    @chrisvedrin2063 Před 3 lety

    My battery voltage is good. When I fly a 1300 mah battery my mah used is 520 and the batters cell voltage is around 3.3
    How to I make the mah used more accurate?
    Thanks !

    • @WhirlyBloke
      @WhirlyBloke  Před 3 lety

      Calibrating the current is more difficult and to be honest, the cell voltage is much more important. When it gets to 3.5V per cell on a LiPo, you should be landing.

    • @chrisvedrin2063
      @chrisvedrin2063 Před 3 lety

      @@WhirlyBloke
      This is the first betaflight quad I built. My others were bnf and seeing the mah used I’m kinda used to now. Guess I can delete it from my osd.

  • @z00n
    @z00n Před 4 lety

    What is ADC_MAX in your formula?

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety +1

      This is the latest BetaFlight src code (4.1) that calculates the display voltage from input values. ADC_MAX isn't #defined but is just hardcoded as 0xfff
      STATIC_UNIT_TESTED uint16_t voltageAdcToVoltage(const uint16_t src, const voltageSensorADCConfig_t *config)
      {
      // calculate battery voltage based on ADC reading
      // result is Vbatt in 0.01V steps. 3.3V = ADC Vref, 0xFFF = 12bit adc, 110 = 10:1 voltage divider (10k:1k) * 100 for 0.01V
      return ((((uint32_t)src * config->vbatscale * getVrefMv() / 10 + (0xFFF * 5)) / (0xFFF * config->vbatresdivval)) / config->vbatresdivmultiplier);
      }

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety

      Thanks for pointing this out.

    • @z00n
      @z00n Před 4 lety

      @@WhirlyBloke Right, so it should be ADC_RESOLUTION_MAX in your formula. Thanks.

    • @WhirlyBloke
      @WhirlyBloke  Před 4 lety +1

      @@z00n Correct. A typo that I've now corrected.

  • @cheddergetter
    @cheddergetter Před 3 lety

    your flight controller detects the battery as a 5s

  • @227giorgio
    @227giorgio Před rokem

    betaflight has been around forever and its still absulute junk ill never ever leave fettec im only using inav for my wing and its just shit

    • @WhirlyBloke
      @WhirlyBloke  Před rokem

      It's important to keep in mind that different flight controllers and firmware have their own strengths and weaknesses, and what works well for one person may not work as well for another. It's also worth noting that the quality of a flight controller's performance can depend on a variety of factors, such as the quality of the hardware, the settings used, and the pilot's skill level.
      If you have had a negative experience with Betaflight and INAV, there are many other options available that you may want to consider. Ultimately, it's up to you to choose what works best for your specific needs and preferences.