<ul>
<li>Download LUA scripts you need, for VTX control in Betaflight its: <a href="https://github.com/betaflight/betaflight-tx-lua-scripts/releases" rel="nofollow noreferrer">https://github.com/betaflight/betaflight-tx-lua-scripts/releases</a></li>
<li>Unzip it, you will have folders BF, SCRIPTS, SOUNDS</li>
<li>You need to copy these folders to the SD card root directory.  

<ul>
<li>To do this put you TX to <a href="https://oscarliang.com/update-taranis-bootloader/" rel="nofollow noreferrer">bootloader</a> mode and connect a USB cable to it and access the SD card</li>
<li>Or you can just take SD card out of TX and use card reader to connect it to the PC
If prompted during the install replace/merge existing on SD card files.  </li>
</ul></li>
<li>Now put the SD Card back or disconnect the USD cable and power up the TX.</li>
<li>You need to go to SD Card page on OpenTX now. Depending on the version and the TX itself it can be in different places.<br>
For example I have QX7 and OpenTX 2.3.5, I need to hold down MENU button and then hit PAGE once.</li>
<li>Go to BF folder and execute (by long pressing) <code>bf.lua</code>. Now use PAGE button to navigate to VTX page.</li>
</ul>

<hr>

<p>Additionally if you don't want to go to SD Card each time you can setup telemetry screen:  </p>

<ul>
<li>Go to the Telemetry page of your model.  </li>
<li>Find a free screen (Screen 1, 2, etc.)  </li>
<li>Select "Script" type for it  </li>
<li>Then on the next column you select which script to display, select <code>bf</code>  </li>
</ul>

<p>Now you can run this LUA script from the Home page of the model.  </p>

<p>Press "PAGE" button till the telemetry show up and then use "PAGE" to scroll to the screen you selected, like <code>Screen 2</code>, etc.  </p>

<p>The only thing is that if you run scripts from TELEMETRY screen, they will use MENU button to skip pages inside the script, instead of PAGE. Because PAGE  flips pages between telemetry screens.</p>

<hr>

<p>If you have error "Script syntax error: not enough memory" you probably didn't check "luac" during the OpenTX install</p>

<p>Sources:<br>
<a href="https://oscarliang.com/betaflight-change-pid-vtx-settings-taranis/" rel="nofollow noreferrer">https://oscarliang.com/betaflight-change-pid-vtx-settings-taranis/</a><br>
<a href="https://oscarliang.com/vtx-control/" rel="nofollow noreferrer">https://oscarliang.com/vtx-control/</a><br>
<a href="https://oscarliang.com/t16-lua-script/" rel="nofollow noreferrer">https://oscarliang.com/t16-lua-script/</a>  </p>

CC BY-SA 4.0
2020-04-16T09:48:09.277Z
That is an excellent walkthrough - thanks very much!
Drones and Whatnot
CC BY-SA 4.0
2020-04-16T07:55:08.673Z
2020-04-16T07:55:08.673Z
Nikita Pedorich
<p>Oscar Liang has a really good page for this specific use case <a href="https://oscarliang.com/vtx-control/" rel="nofollow noreferrer">https://oscarliang.com/vtx-control/</a></p>

<p>And Joshua Bardwell has some really good videos that you can follow along with 
<a href="https://www.youtube.com/watch?v=zFb5IJpM1XU" rel="nofollow noreferrer">https://www.youtube.com/watch?v=zFb5IJpM1XU</a></p>

CC BY-SA 4.0
2020-04-16T01:33:14.953Z
2020-04-16T01:33:14.953Z
Paul Kendall
<p>I’m looking at how to use LUA scripts and was wondering how to configure them I am OpenTX radio.</p>

<p>Thanks.</p>

<p>More info: at present, I don’t want to write my own scripts, only run scripts that I can find online, such as VTX control.</p>

CC BY-SA 4.0
2020-04-16T01:06:34.577Z
This is a little vague, can expand on what you are wanting to do? i.e. are you just installing existing LUA scripts such as VTX control or writing your own scripts?
Paul Kendall
CC BY-SA 4.0
2020-04-16T01:07:12.513Z
@PaulKendall sorry - updating now.
Drones and Whatnot
<transmitter><frsky><opentx><t16>
How do I set up LUA scripts on my OpenTX radio?
Drones and Whatnot
# How do I set up LUA scripts on my OpenTX radio?

(Asked by: username_0 on 2020-04-16)

I’m looking at how to use LUA scripts and was wondering how to configure them I am OpenTX radio.

Thanks.

More info: at present, I don’t want to write my own scripts, only run scripts that I can find online, such as VTX control.

**Tags:** transmitter, frsky, opentx, t16

> **Comments:**
> **username_1**: This is a little vague, can expand on what you are wanting to do? i.e. are you just installing existing LUA scripts such as VTX control or writing your own scripts?  
> **username_0**: @username_1 sorry - updating now.  

---

## 2 answers

### Answer by username_2 on 2020-04-16. Score: 3 | Accepted answer

* Download LUA scripts you need, for VTX control in Betaflight its: <https://github.com/betaflight/betaflight-tx-lua-scripts/releases>
* Unzip it, you will have folders BF, SCRIPTS, SOUNDS
* You need to copy these folders to the SD card root directory.
  + To do this put you TX to [bootloader](https://oscarliang.com/update-taranis-bootloader/) mode and connect a USB cable to it and access the SD card
  + Or you can just take SD card out of TX and use card reader to connect it to the PC
    If prompted during the install replace/merge existing on SD card files.
* Now put the SD Card back or disconnect the USD cable and power up the TX.
* You need to go to SD Card page on OpenTX now. Depending on the version and the TX itself it can be in different places.  
  For example I have QX7 and OpenTX 2.3.5, I need to hold down MENU button and then hit PAGE once.
* Go to BF folder and execute (by long pressing) `bf.lua`. Now use PAGE button to navigate to VTX page.

---

Additionally if you don't want to go to SD Card each time you can setup telemetry screen:

* Go to the Telemetry page of your model.
* Find a free screen (Screen 1, 2, etc.)
* Select "Script" type for it
* Then on the next column you select which script to display, select `bf`

Now you can run this LUA script from the Home page of the model.

Press "PAGE" button till the telemetry show up and then use "PAGE" to scroll to the screen you selected, like `Screen 2`, etc.

The only thing is that if you run scripts from TELEMETRY screen, they will use MENU button to skip pages inside the script, instead of PAGE. Because PAGE flips pages between telemetry screens.

---

If you have error "Script syntax error: not enough memory" you probably didn't check "luac" during the OpenTX install

Sources:  
<https://oscarliang.com/betaflight-change-pid-vtx-settings-taranis/>  
<https://oscarliang.com/vtx-control/>  
<https://oscarliang.com/t16-lua-script/>

> **Comments:**
> **username_0**: That is an excellent walkthrough - thanks very much!  

---

### Answer by username_1 on 2020-04-16. Score: 2

Oscar Liang has a really good page for this specific use case <https://oscarliang.com/vtx-control/>

And Joshua Bardwell has some really good videos that you can follow along with
<https://www.youtube.com/watch?v=zFb5IJpM1XU>


---

