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
Math problem: Current sensor -
#1
So on my first flight of The Leaf, the OSD reports that I used only 330mah on a flight...I KNOW this is wrong.  After charging the pack I found that I added 472mah back into the pack.  I flew several more pack with similar results.

I have watched the videos, but I really am pretty bad at math...

472-330=142 which is roughly 43% difference in reading.
The base value in BF for the Current Sensor Scaling is 400.  I calculate 43% of 440 as 172.  When I subtract 172 from 400, I arrive at 228.  So setting an offset for the Current Meter of 43% from 400 leaves me with new scaling value of 228...

What am I messing up?  It cannot be that simple...nothing mathematically driven is in my universe.

I will be using the values of averages for my actual calculations...but for the sake of simplicity I stuck with the single first flight value for the question.
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
Login to remove this ad | Register Here
#2
You don't want to mess with the offset. Just the scale value.

new_scale = old_scale x (OSD_mAh_consumed / mAh_charged)

New_scale = 400 x (330/472)
New_scale = 400 x 0.70
New_scale = 279

You will want to run the next pack and readjust the scale again. You will need to do this a few time. Don't use averages.

https://oscarliang.com/current-sensor-calibration/
[-] The following 1 user Likes voodoo614's post:
  • kaitylynn
Reply
#3
Thank you! That makes sense to me...mostly. I really am craptastic at math!
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#4
Algebra can really be confusing. 

[Image: Elhpq2Cl.png]

[-] The following 1 user Likes voodoo614's post:
  • sloscotty
Reply
#5
One

1+2=3*2=6/6=1
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
[-] The following 1 user Likes kaitylynn's post:
  • sloscotty
Reply
#6
I can work through it ok if the formula is simple and expressed. I have trouble creating a formula in my head (that works anyway). I get lost very quickly when transiting through the steps to solving any equation over about 4 steps.

Not sure that makes sense.
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#7
(20-Jan-2020, 05:40 AM)kaitylynn Wrote: One

1+2=3*2=6/6=1

Sorry, answer is 9
Reply
#8
(20-Jan-2020, 06:31 AM)voodoo614 Wrote: Sorry, answer is 9

LOL...seriously???
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#9
Smile , yes seriously. It is 9.
Reply
#10
(20-Jan-2020, 06:34 AM)kaitylynn Wrote: LOL...seriously???

Kaity, don't fret - your answer is historically correct! Big Grin
Reply
#11
(20-Jan-2020, 10:19 AM)sloscotty Wrote: Kaity, don't fret - your answer is historically correct! Big Grin

Somehow I actually feel better knowing that!  I am part of history!!! Wink
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#12
More importantly, did you calibrate the current sensor.
Reply
#13
In progress, but 275 seems to be a close number!
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#14
Telemetry reads a draw of 417. Charged the pack with 462...WAY closer.

New_scale = 279 x (417/462)
New_scale = 279 x .9
New_scale = 251

Trying the scale at 251 Smile
SoCal Kaity :D
OMG, no one told me it would be this much fun!  Addicted :)
Reply
#15
(20-Jan-2020, 07:25 PM)kaitylynn Wrote: Telemetry reads a draw of 417.  Charged the pack with 462...WAY closer.

New_scale = 279 x (417/462)
New_scale = 279 x .9
New_scale = 251

Trying the scale at 251 Smile

The math is spot on.
Reply


Possibly Related Threads...
Thread Author Replies Views Last Post
  Drone and flysky problem Bekshiyakhaye 10 598 16-Jun-2024, 09:21 PM
Last Post: Bekshiyakhaye
  Problem uart SDA/SCL ilpino 1 220 01-Mar-2024, 09:35 PM
Last Post: ilpino
  Stm32 dfu driver download problem PJKMBAKER 5 9,743 15-Feb-2024, 10:11 PM
Last Post: knockknock
  Need help with Fly Away problem with 6S mbze430 3 619 29-May-2023, 05:05 AM
Last Post: Lemonyleprosy
  Betaflight and "Openlager" blackbox problem Pappson 2 917 25-May-2023, 03:27 AM
Last Post: Pappson


Login to remove this ad | Register Here