LiPo battery checker script (for Taranis X9D, X9D+, and X9E)

Florent MartelFrSky84 Comments

Share this Post

 

If you ever wondered after landing whether your battery still had enough charge for another short flight, you will find the following script very useful.

A Lua script developed by Heisenberg and published on the French frskytaranis.forumactif.org forum allows users of an FLVSS or MLVSS LiPo battery sensor to check the voltage level of each cell of their battery pack in a well-designed interface.

 

Example Cell Voltage Sensor: FrSky MLVSS Smart Port

 

Screen showing the LiPo battery checker script for Taranis

LI-PO BATTCHECK V4.1

These setup instructions are for OpenTX 2.2 but the script is otherwise also compatible with OpenTX 2.1:

Download Battery Checker.zip file.

Enter bootloader mode on the Taranis by sliding both horizontal trims, each under the main sticks, towards the center and then turning the Taranis on. The top of the Taranis LCD screen should now display “Taranis Bootloader.”

Actions to enter bootloader mode on the Taranis

Actions to enter bootloader mode on the Taranis

Connect a USB cable between the Taranis and the computer. “USB Connected” should appear in the center of the Taranis LCD screen.

Extract the contents of the “SDcard” folder found in Battery Checker.zip to the root directory of Taranis SD card (the SD card should appear as a computer drive and contains multiple folders, including one named SCRIPTS). When extracting, make sure to “merge” the contents and replace/overwrite any file already on the SD card when prompted. Do not delete the folders already on the SD card before copying the folders to the root directory of the SD card.

Unplug the USB cable, navigate the choices with the +/- buttons, select “Exit,” and press ENT to validate. Repeat the following steps for each model with which you want to use the battery checker:

Press on MENU from the main screen, then press on PAGE. From the MODEL SELECTION menu, create a new model (or copy the one you’re currently using).

This script cannot be activated on the same model as FlightDeck, so a separate model should be created for the battery checker script.

Screenshot showing how to create a model on the Model Selection screen

Creating a Model on the Model Selection Screen

Once the model is created, press on PAGE until the CUSTOM SCRIPTS menu is displayed. Press ENT to edit the LUA1 entry. On the LUA1 page, press ENT, navigate the choices with the +/- buttons, select “batchk,” press ENT to validate then press EXIT. The screen should display batchk next to the LUA1 entry:

screenshot of the Custom Scripts screen showing batchk as the LUA1 script

Custom Scripts screen showing batchk as the LUA1 script

Press on PAGE until the DISPLAY menu is displayed. Scroll down using the – button and highlight the “None” entry next to “Screen 2.” Once “None” is highlighted, press ENT, navigate the choices with the +/- buttons until “Script” appears and press ENT to validate. Press – to move to the right (highlighting “- – -“). Press ENT, navigate the choices with the +/- buttons, select “batchk” and press ENT to validate.

Screenshot showing how to assign the batchk script to Screen 1

Assigning the batchk script to Screen 1

FlightDeck and the Battery Checker script need different models
The FlightDeck script (“fltdk”) and the battery checker script (“batchk”) cannot be activated on the same model because of memory limitations, so make sure that only the batchk script is active on this new model.

Finally, you will need to discover the “Cels” sensor. To discover it, turn on your Smart Port receiver and your FLVSS or MLVSS sensor (which should be plugged into your battery to see values displayed). Press on PAGE until the TELEMETRY menu is displayed. Scroll down using the – button and highlight “Discover new sensors.” Once “Discover new sensors” is highlighted, press ENT.

Screenshot showing how to discover new sensors in OpenTX

Discovering new sensors in order to discover the LiPo cell sensor

“Stop discovery” should now be displayed. Sensors should appear, and among them the “Cels” sensor.

Screenshot showing the discovered cell sensor

Once the cell sensor has been discovered it appears in the Sensors list

Stop discovery, long press on EXIT, then long press on PAGE to display the battery checker interface.

The battery checker script is neither made by nor supported by Craft and Theory LLC.

---- ###############################################################
 ---- #                                                            #

---- #        Telemetry Lua Script for FrSky RC Taranis TX        #

---- #    LI-xx BATTCHECK v4.1  // Use it with OpenTX 2.1.x       #

---- #      Version  with ACCU LIPO discharge lookup table        #

---- #      Version in 2 parts: script MIX LUA & Telemetry        #

---- #                                                            #

---- #                                                            #

---- #  License: Share alike                                      #

---- #  Can be used and changed non commercial                    #

---- #                                                            #

---- #  Developped by Heisenberg.                                 #

---- #  Debugged by Sacre100 (the hardest job) who succeeded      #

---- #  decreasing GC and memory use for Taranis compatibility.   #

---- #  Improved by Dev.Fred to get correct percent li-po values  #

---- #                                                            #

---- #  Credits to Dev.Fred, Kilrah, and some of other members    #

---- #  from the french forum frskytaranis.forumactif.org/        #

---- #  And especially more to Sacre100 for his patience and      #

---- #  knowledge shares.                                         #

---- #                                                            #

---- ###############################################################

 

Source: http://frskytaranis.forumactif.org/t2800-lua-download-un-testeur-de-batterie-sur-la-radio

 

Purchase MLVSS or FLVSS LiPo Cell sensor.

Purchase telemetry cable.

Share this Post

84 Comments on “LiPo battery checker script (for Taranis X9D, X9D+, and X9E)”

  1. Woo cool script but is it possible to use the qx7 smartport to use it or it must use a rx with smartport ?

  2. Running OpenTX 2.2.2 and can’t find the Custom Scripts page anywhere..
    Has it moved to some other screen ?

  3. Hi Alfred,
    The Custom Scripts page is still in 2.2.2. After installing Companion, make sure to enable the “lua” build option in the Settings >> Settings… menu, then download and install the OpenTX firmware onto your Taranis.

    1. Ok, I thought I had…
      But I’ve only got 12 menupages not 14, so will check again.
      Thanks for confirming this.

  4. Hi,
    This looks very useful.

    I have a Taranis SE+2019 with version 2.3.4. I have copied the 2 scripts to Mixers & Telemetry but don’t know where to put the 2.png files!

    When I run the script, I get a Script syntax error. 66 attempt to compare number with nil!

    Have I missed something or is it not compatible?

    Please mail response as well as posting here.

    Many thanks

  5. Your style is unique compared to other people I have read stuff from.

    Thank you for posting when you have the opportunity, Guess I’ll just
    bookmark this site.

  6. We are a bunch of volunteers and opening a new scheme
    in our community. Your web site provided us with valuable info to work on. You’ve
    done an impressive job and our entire community will be thankful to you.

  7. Hey! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest writing a blog article or vice-versa?

    My blog addresses a lot of the same topics as yours and I think we
    could greatly benefit from each other. If you happen to be
    interested feel free to send me an email. I look forward to hearing from you!
    Fantastic blog by the way!

  8. Wow, incredible blog layout! How long have you been blogging for?
    you make blogging look easy. The overall look of
    your web site is great, as well as the content! 31muvXS cheap flights

  9. hello!,I really like your writing so a lot! percentage we be
    in contact extra approximately your article on AOL? I require an expert on this
    house to resolve my problem. May be that is you!

    Looking ahead to look you.

  10. We’re a gaggle of volunteers and starting a new scheme
    in our community. Your site offered us with valuable information to work on. You have
    performed a formidable process and our whole neighborhood will probably
    be grateful to you.

  11. I think everything posted was actually very reasonable.
    However, think on this, suppose you added a little information? I mean,
    I don’t wish to tell you how to run your website, however suppose you added something
    that makes people want more? I mean LiPo battery checker script (for Taranis X9D, X9D+, and X9E) | Craft and Theory, LLC is kinda plain. You ought to glance at
    Yahoo’s home page and see how they create news titles to get viewers to open the
    links. You might add a video or a related pic or two to grab readers interested about everything’ve written. Just my opinion, it might make
    your website a little livelier.

  12. Heya i am for the first time here. I came across this board and I in finding It truly useful
    & it helped me out much. I hope to give one thing again and
    help others such as you helped me.

  13. I don’t even know the way I stopped up right here, but I believed this publish was good.

    I don’t recognise who you might be but certainly you’re going to a well-known blogger
    when you are not already. Cheers!

  14. Hello, i believe which i saw you visited my weblog thus i got here
    to return back the want?.I’m looking to find things to improve my site!I suppose its adequate to apply a few of your concepts!!

    Here is my page AngeloWFlett

  15. First off I would like to say superb blog!
    I had a quick question in which I’d like to ask if you
    don’t mind. I was curious to find out how you center yourself and clear your mind prior to writing.
    I’ve had a tough time clearing my thoughts in getting my thoughts out there.
    I truly do enjoy writing but it just seems like the first 10 to 15 minutes are generally lost simply just trying to figure out how to begin. Any
    suggestions or hints? Appreciate it!

  16. Hello, the whole thing is going perfectly here and
    ofcourse every one is sharing information, that’s
    really excellent, keep up writing.

  17. Hi, i feel that i noticed you visited my blog thus i came
    to return the favor?.I am attempting to find things to enhance my web site!I
    suppose its ok to make use of some of your ideas!!

  18. Hey there! I just wanted to ask if you ever have
    any trouble with hackers? My last blog (wordpress) was hacked and I ended up losing many months of hard work due to no data backup.
    Do you have any solutions to protect against
    hackers?

  19. An impressive share! I’ve just forwarded this onto a co-worker
    who was conducting a little research on this. And he actually ordered me breakfast simply because I
    stumbled upon it for him… lol. So let me reword this….
    Thanks for the meal!! But yeah, thanx for spending some time
    to discuss this issue here on your web site.

  20. I do not know whether it’s just me or if everyone else experiencing problems with
    your site. It appears like some of the text on your posts are running off the screen. Can somebody else please provide feedback and let me know if
    this is happening to them too? This could be a issue with
    my internet browser because I’ve had this happen before.
    Cheers

  21. I was recommended this blog by my cousin. I am now
    not positive whether or not this submit is written by him as no one else
    recognise such distinct about my trouble. You are wonderful!
    Thanks!

  22. It’s a pity you don’t have a donate button! I’d without a doubt donate to this excellent blog!

    I suppose for now i’ll settle for book-marking and adding your RSS
    feed to my Google account. I look forward to brand new updates and will talk about this website with my Facebook group.
    Chat soon!

  23. I’ve been surfing on-line more than 3 hours these days,
    yet I never discovered any fascinating article like yours.

    It’s pretty price enough for me. Personally, if all web owners and bloggers made excellent content as you did, the web can be a
    lot more helpful than ever before.

  24. Hi there! This post could not be written much better!
    Going through this article reminds me of my previous roommate!
    He constantly kept talking about this. I am going to forward this information to him.
    Fairly certain he’s going to have a very good read. Many thanks for sharing!

  25. Undeniably believe that which you said. Your favorite reason seemed to be on the web the easiest thing to be aware of.
    I say to you, I definitely get irked while people think about
    worries that they plainly do not know about. You managed to
    hit the nail upon the top and also defined out the whole thing without having
    side-effects , people can take a signal. Will probably be
    back to get more. Thanks

  26. I am not sure where you are getting your information, but good topic.

    I needs to spend some time learning much more or understanding more.
    Thanks for wonderful info I was looking for this info for my mission.

  27. Piece of writing writing is also a excitement, if you be acquainted with after that you can write or else
    it is complicated to write.

  28. Hello There. I found your blog using msn. That is a really neatly written article.
    I’ll make sure to bookmark it and return to learn extra of your helpful information. Thank
    you for the post. I’ll definitely comeback.

  29. Magnificent goods from you, man. I have consider
    your stuff previous to and you’re just extremely excellent.
    I really like what you’ve acquired here, really like what you’re stating and the way in which through which you say it.
    You make it enjoyable and you continue to take care of to
    stay it smart. I can not wait to read much more from you.
    This is actually a great web site.

  30. Hello! Do you know if they make any plugins to help with Search Engine Optimization? I’m trying to get my blog to rank for
    some targeted keywords but I’m not seeing very good
    results. If you know of any please share. Thanks!

  31. Outstanding post however , I was wanting to know if you
    could write a litte more on this topic? I’d be very thankful if you could elaborate a little bit more.
    Cheers!

  32. These are truly impressive ideas in concerning blogging.
    You have touched some fastidious points here. Any way keep up wrinting.

  33. I’m gone to say to my little brother, that he should also
    pay a quick visit this website on regular basis to take updated from hottest reports.

  34. Hi there! I’m at work surfing around your blog from
    my new iphone 4! Just wanted to say I love reading your blog and look forward to all your posts!
    Carry on the great work!

  35. I am not sure where you’re getting your info, but
    good topic. I needs to spend some time learning much more or understanding more.
    Thanks for fantastic information I was looking for this info for my mission.

  36. Yesterday, while I was at work, my sister stole my apple ipad and tested to see if it can survive a forty foot drop, just so
    she can be a youtube sensation. My iPad is now broken and she has
    83 views. I know this is entirely off topic but I
    had to share it with someone!

  37. It’s really very complex in this active life to listen news on TV, therefore I just
    use the web for that reason, and take the most recent information.

  38. An outstanding share! I’ve just forwarded this onto a co-worker who was doing
    a little research on this. And he actually ordered me lunch because I discovered it for
    him… lol. So let me reword this…. Thank YOU for the meal!!
    But yeah, thanx for spending time to discuss
    this matter here on your web site.

  39. Fantastic items from you, man. I’ve be aware your stuff prior to and you’re simply too
    great. I really like what you have received here, certainly
    like what you’re saying and the way in which through which
    you assert it. You’re making it enjoyable and you continue to take care of to stay it wise.
    I cant wait to read much more from you. That is actually a tremendous site.

  40. Thanks for any other informative web site.
    The place else may I am getting that type of information written in such a perfect means?
    I have a challenge that I’m just now operating on, and I’ve been at the look out for
    such information.

  41. Greetings! I know this is kinda off topic however I’d figured I’d ask.
    Would you be interested in exchanging links or maybe guest
    authoring a blog post or vice-versa? My website discusses a lot of the same subjects as yours and I
    believe we could greatly benefit from each other. If you
    happen to be interested feel free to shoot me an e-mail. I look forward to hearing from you!
    Excellent blog by the way!

  42. This is really interesting, You’re a very skilled blogger.
    I have joined your feed and look forward to seeking more of your wonderful post.
    Also, I have shared your website in my social networks!

  43. It is perfect time to make some plans for the
    future and it is time to be happy. I’ve learn this publish
    and if I could I wish to suggest you few attention-grabbing issues or advice.
    Perhaps you can write subsequent articles relating to this article.
    I wish to learn even more things approximately it!

  44. Hello! I just would like to give you a huge thumbs up
    for your excellent information you’ve got here on this post.

    I’ll be coming back to your site for more soon.

  45. Excellent blog! Do you have any tips and hints for
    aspiring writers? I’m planning to start my own blog soon but I’m a
    little lost on everything. Would you propose starting with a free
    platform like WordPress or go for a paid option? There are so many choices out there
    that I’m completely confused .. Any recommendations?
    Thanks a lot!

Leave a Reply

Your email address will not be published. Required fields are marked *