How to Install LUA Script in Jumper T16

by Oscar

You can change Betaflight and VTX settings via LUA script remotely from your Jumper T16 radio. In this guide I will show you how to set it up.

Some of the links on this page are affiliate links. I receive a commission (at no extra cost to you) if you make a purchase after clicking on one of these affiliate links. This helps support the free content for the community on this website. Please read our Affiliate Link Policy for more information.

Here is my Jumper T16 review.

What’s Betaflight LUA Script?

With LUA script, you can change many settings in Betaflight from your T16 radio, including PID, rates, looptime, ESC protocols, Feedfoward and many more. You can even change VTX settings like channel and power level.

Requirements

Make sure your T16 has OpenTX 2.3.1 or newer firmware. You can check this by holding down the “SYS” button, and get to the “Version” page by pressing the “PAGE” key. Here is my tutorial on how to flash OpenTX to your T16.

Pro Tip

When flashing OpenTX firmware, make sure you check the boxes for “lua” & “luac” in order to run LUA scripts.

You also have to setup Telemetry correctly first, if you don’t have telemetry, or it’s not working, LUA script is not going to work.

How to Setup LUA Script in T16

Download the latest LUA script (the zip file): https://github.com/betaflight/betaflight-tx-lua-scripts/releases

Unzip the file, there should be a folder named “obj“, and inside that you should see 3 folders: BF, SCRIPTS, and SOUNDS.

You want to copy all these 3 folders to the root directory of your SD card in the T16.

To do this, simply enter bootloader mode on your T16, and insert the USB cable. (Alternatively you can just take the SD card out of the radio and insert it to your computer)

If prompted during files transfer, select “Replace the files in the destination”.

How to Use

To execute LUA script, hold down the “SYS” button to get to Radio Setup.

Press the PAGE button once to get to the SD card page, select the “BF” folder.

Then click on “bf.lua“, and select the option “Execute“.

If Telemetry is working correctly, numbers should populate in the various options. If the numbers are all missing then it means you have no telemetry.

Press the PAGE key to go to the next page, you can go back to the previous page by holding down the PAGE key.

Pro Tip

When you run the LUA script, the first page that appear should be the PID page by default. You can change that and start at any particular page, e.g. the VTX settings page,

Go to the folder “SCRIPT” on your SD card, inside the folder “BF“, open and edit the file “ui.lua“. (you can edit lua files with a text editor, but make sure you use the same file extension when saving it, i.e. “.lua”)

Find the line “local currentPage = 1“, and change the number to a page you want. For VTX settings it’s 8.

Save it and close it.

FAQ

If you get warning “Script syntax error: not enough memory“, you probably forgot to check “luac” when flash OpenTX firmware.

Leave a Comment

By using this form, you agree with the storage and handling of your data by this website. Note that all comments are held for moderation before appearing.

5 comments

Patrick 30th October 2020 - 11:50 am

When I try to copy the Script and Sounds folders to my SD Card my computer asks if I want to replace the existing folders with the new ones? Obviously not as they have many other files in them, so how do I proceed? Thanks

Reply
Johannes Schrotshamer 23rd June 2020 - 6:20 pm

When I execute the bf.lua file on my T16, I get a Telemetry protocol not supported!
What did I miss?

Reply
Oscar 29th June 2020 - 12:51 pm

What RF protocol are you using?

Reply
Hugo Oliveira 17th February 2020 - 11:20 pm

Exactly what I’m looking for aswell sure the jumper T16 can also do the same?

Reply
Simon 12th February 2020 - 12:18 am

There needs to be a shortcut way to run the lua script. On the QX7 you could set a shortcut to hold down the page button to run it, made it super convenient. If you’re going to go through all the menus on the T16 its often faster just to use the OSD.

Reply