# Launching and uploading programs to the LEGO NXT

{% hint style="info" %}
This article is automatically translated from Russian by Google Translator.
{% endhint %}

To work with the LEGO NXT controller, in the TRIK Studio settings, go to "Robots" and select the LEGO NXT platform.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYiqX1h8w9p4Q7NcAD%2F9C%201%20En%20NXT-robots%202.png?alt=media\&token=f1ecc549-35d3-417e-a221-f2e5b66dc398)

There are several options for running programs for the LEGO NXT controller:

* Step-by-step interpretation of the diagram with a simulation of the robot's behavior on a 2D model.
* Step-by-step interpretation of the diagram with sending commands to the robot via Bluetooth or USB.
* Download the program to the robot and then execute it autonomously without communication with a computer.

## **Interpretation with a simulation of robot behavior**

{% hint style="info" %}
.In 2D robot model mode, commands are not sent to the robot but are executed step by step for the virtual model displayed on the screen. See the article "[2D Model](https://help.trikset.com/en/studio/2d-model)" for details.
{% endhint %}

&#x20;1\. Turn on the two-dimensional model mode.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYj8z51R_XxvKLmsOn%2F9C%203%20En%20nxt-2d-2%204.png?alt=media\&token=966924bd-6cfc-4e7a-8247-6d3e9353d76a)

2\. Click the "Execute" button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYivDWW9IeVRDW5vDB%2F9C%202%20En%20nxt-2d-1%204.png?alt=media\&token=c20da8f1-bb9c-423f-8adf-97432a8f1172)

3\. The 2D model window will open and the program will start.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYjEdr4ojij-ZQK0tV%2F9C%204%20En%20nxt-2d-3%203.gif?alt=media\&token=91965fc2-3e81-4ef3-b48a-c2a60023826c)

4\. When you switch to edit mode, you can track the steps of the program's execution.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYjKmCO4doHAU0qBdP%2F9C%205%20En%20nxt-2d-4%203.gif?alt=media\&token=cda362ac-e5cb-40cf-bad4-ef9e253b010a)

## **Interpretation with commands sent to the robot via Bluetooth or USB**

1\. Enable "Interpret (USB)" or "Interpret (Bluetooth)" mode.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYjSG1GVaL9qu8C41H%2F9C%206%20En%20nxt-usb-1%204.png?alt=media\&token=19ecd867-a161-4c7e-9225-f04854d24550)

2\. Click the "Execute" button.

![](https://2483351831-files.gitbook.io/~/files/v0/b/gitbook-legacy-files/o/assets%2F-M-9YMGCK0ySSnTAiseS%2F-MUYiYFRk3RHXIEHHG_O%2F-MUYjVi5GbhHLwUQUvbQ%2F9C%207%20En%20nxt-usb-2%204.png?alt=media\&token=e2b6fcff-dd42-497b-8b37-02b146f73bd2)

## **Loading on the controller**

From TRIK Studio you can download a ready-made program to the robot to execute it autonomously in the future without communication with a computer.

{% hint style="info" %}
The section is being supplemented.
{% endhint %}
