LogoLogo
TRIK StudioTRIKLego EV3Lego NXT
English
English
  • TRIK help
  • TRIK Studio
    • About TRIK Studio
      • How to find out the version of TRIK Studio
    • Getting started and creating a project
    • TRIK Studio interface
      • TRIK Studio main menu
      • Working with graphs
      • How to open robot settings
      • How to change TRIK Studio interface language
    • TRIK Studio settings
    • 2D model
      • 2D model tuning
      • Adding restrictions to the 2D Model
        • Restrictions setting examples
    • Visual programming
      • Adding and removing blocks
      • Common blocks
      • Links between blocks
      • Syntax of expressions in the blocks
        • TRIK Studio language types
          • Array
        • TRIK Studio language tokens
        • TRIK Studio language operators
        • Constants
        • Sensor variables
        • Built-in functions
      • Property editing
      • Subprograms
    • Textual programming
    • Exercises
    • External tools
      • PuTTY
      • WinSCP
    • TRIK Studio shortcuts
    • Antivirus conflicts
      • Avast antivirus blocks TRIK Studio. What to do?
  • TRIK Studio Junior
    • About TRIK Studio Junior
      • How to find out the version of TRIK Studio Junior
    • Getting started and creating a project in TRIK Studio Junior
    • TRIK Studio Junior interface
      • How do I replace the "Character movement" image?
    • TRIK Studio Junior settings
    • Visual programming in TRIK Studio Junior
      • Adding and removing blocks in TRIK Studio Junior
      • Blocks in TRIK Studio Junior
      • Links between blocks in TRIK Studio Junior
      • Syntax of expressions in the blocks in TRIK Studio Junior
      • Property editing in TRIK Studio Junior
      • Subprograms in TRIK Studio Junior
    • Exercises in TRIK Studio Junior
  • INTEGRATIONS
    • PyCharm
      • Running a 2D model in TRIK Studio from PyCharm
    • Sublime Text
      • Running a 2D model in TRIK Studio from Sublime Text
      • Uploading programs to several TRIK robots from Sublime Text
    • VSCode
      • Running a 2D model in TRIK Studio from VSCode
      • Uploading programs to several TRIK robots from VSCode
  • TRIK controller
    • About the TRIK controller
      • Screenshot of the TRIK controller screen
    • TRIK controller firmware
      • How to find out the firmware version of the TRIK controller?
    • TRIK controller menu
    • Connecting to the TRIK controller via Wi-Fi
      • Connecting the TRIK controller to a computer and smartphone
      • Connecting the TRIK controller to TRIK Studio
      • Interaction of TRIK controllers
        • An example of solving a problem on the interaction of two robots
    • Connecting to the TRIK controller using UART
    • Launching and uploading programs to the TRIK controller
    • Programming TRIK with the visual programming language
      • TRIK specific blocks
      • Sensory variables for the TRIK controller
    • TRIK controller programming in Python and JavaScript
      • Object «brick»
        • Class «accelerometer»
        • Class «battery»
        • Class «colorSensor»
        • Class «display»
        • Class «encoder»
        • Class «gyroscope»
        • Class «keys»
        • Class «led»
        • Class «lineSensor»
        • Class «motor»
        • Class «objectSensor»
        • Class «sensor»
      • Object «script»
      • Object «mailbox»
      • Object «gamepad»
      • Object «Threading»
      • Function getPhoto
      • Function include
    • TRIK controller web interface
    • Connecting devices to TRIK and working with them
      • Connecting and working with the video module
      • Testing devices connected to the TRIK controller
      • Configuring the operation of a USB camera with a TRIK controller
      • Capturing images with TRIK camera and using them in TRIK Studio
      • Working with battery and charger
  • LEGO EV3 Controller
    • About LEGO EV3
    • Connecting a LEGO EV3 Controller to TRIK Studio
    • LEGO EV3 specific blocks
    • Sensory Variables for the LEGO EV3 Controller
    • Launching and uploading programs to the LEGO EV3
  • LEGO NXT Controller
    • About LEGO NXT
    • LEGO NXT Controller Firmware
    • Connecting a LEGO NXT Controller to TRIK Studio
    • LEGO NXT specific blocks
    • Sensory Variables for the LEGO NXT Controller
    • LEGO NXT C Programming
    • Launching and uploading programs to the LEGO NXT
  • Quadcopter Geoscan Pioneer
    • About quadcopter Geoscan Pioneer
    • Geoscan Pioneer specific blocks
  • TRIK Gamepad
    • About TRIK Gamepad
      • TRIK Gamepad App
      • TRIK Gamepad Utility
    • Robot control from the remote control
  • Feedback
    • Actions in case of TRIK Studio or TRIK controller malfunction
    • Ask a Question
    • trikset.com
Powered by GitBook
On this page
  • 1. Installing drivers
  • 2. Setting up the COM port
  • 3. Modem installation
  • 4. Modem setup
  • 5. Creating a network connection
  • 6. Setting up a network connection
  • 7. Connecting to the controller

Was this helpful?

Export as PDF
  1. TRIK controller

Connecting to the TRIK controller using UART

PreviousAn example of solving a problem on the interaction of two robotsNextLaunching and uploading programs to the TRIK controller

Last updated 4 years ago

Was this helpful?

This article is automatically translated from Russian by Google Translator.

In addition to connecting the TRIK controller to the computer using Wi-Fi, it can be connected via a USB to UART interface converter based on the chip CP2102:

The connection algorithm is described below.

  1. Installing drivers

  2. Setting up the COM port

  3. Modem installation

  4. Modem setup

  5. Creating a network connection

  6. Setting up a network connection

  7. Connecting to the controller

1. Installing drivers

1. Download the drivers from the converter manufacturer's official website: silabs.com. 2. Unpack the archive and run the driver installer corresponding to your operating system (32 or 64 bit).

3. After the installation is complete, connect the USB to the UART converter to the computer (without the controller). Wait until the device is detected.

4. Check in the "Device Manager" if the driver has been installed correctly.

5. If the CP2102 USB to UART Bridge Controller shows an exclamation mark in Device Manager, as in the example below, then the device driver is not installed. Repeat the installation procedure, or contact a technician.

If the device is not on the Device Manager list, check if the USB port is working and if the device is correctly inserted into the USB port. If the device is connected correctly, the red "POWER" LED on the device should light up.

2. Setting up the COM port

1. In the "Device Manager" call the properties of Silicon Labs CP210x USB to UART Bridge (COMx).

On the "Port Settings" tab, set:

  • Bits per second: 115200.

  • Flow Control: No.

With the "Advanced" button you can select the number of the COM port, if necessary:

3. Modem installation

Open Windows Control Panel any way

1. From the Control Panel, select the Phone & Modem section.

2. Enter any phone code for the city and press "OK".

3. On the "Modems" tab, click the "Add" button.

4. Select "Do not detect my modem, I will select it from list" and click "Next".

5. Select "Standard Modem Types" → "Communications cable between two computers" and click "Next".

6. Select the previously specified port (COM3 in our example), then click "Next" and "Done".

4. Modem setup

1. Once again, from the Control Panel, select Phone & Modem and click the Modems tab. 2. Select "Communications cable between two computers (COM3)" and click "Properties".

3. Press "Change settings" button on General tab, elsewere, the necessary settings will not be available

4. The "Modem" tab should correctly display the COM port (COM3).

  • Set Port Speed: 115200

5. On "Advanced" tab press "Change Default Preferences..." button

6. On "General" tab, set:

  • Port Speed: 115200.

  • Flow Control: None.

Then click OK - OK.

5. Creating a network connection

Open Parameters("All Settings") → "Network & Internet" → "Dial-Up" → "Set up a new connection".

or Control Panel → "Network and Sharing Center" → "Set up a new connection on network"

Select "Connect to the Internet - Set up a broadband or dial-up connection to the Internet" and click "Next".

Setup connection anyway

Select "Dial-up"

4. Enter 1 in the "Number to Dial" field, fill the connection name, and click "Connect".

Leave the username and password fields blank

5. Wait for some time, then select "Set up the connection anyway".

6. Click Close.

6. Setting up a network connection

1. Open "Network Connections" (Control Panel → "Network and Sharing Center → "Change adapter settings" or Parameters ("All Settings") → "Network & Internet" → "Change adapter options").

2. Go to the properties of the created connection.

3. On the General tab, select "Communications cable between two computers (COMx)" and click "Configure".

4. Select the following option:

  • Select max. speed: 115200

  • Uncheck the "Hardware flow control" box.

  • Click OK.

5. On the "Options" tab, check boxes according to the picture below and click the "PPP Settings..." button.

6. Uncheck "Enable software compression" and click "OK".

7. On the "Network" tab, the "IPv4" protocol must be enabled. IPv4 options → Automatic (by default)

7. Connecting to the controller

1. Remove the USB to the UART converter from the USB connector. 2. Turn on the controller. 3. Connect the USB to the UART converter to the appropriate port on the controller.

3. Connect the USB to UART converter to the computer.

4. Open Parameters ("All Settings") → "Network & Internet" → "Dial-up". Click on the connection and click the "Connect" button.

5. Click "Dial"

6. If everything is done correctly, the "RXD" and "TXD" lights on the inverter should flash.

And the connection status should change to active.

7. Open the Phone Connection Status window.

8. Click the Details button.

9. The IPv4 address must be 10.0.5.1 .

10. If this is correct, you can access the web interface at 10.0.5.2.

11. Or specify the IP address 10.0.5.2 in the corresponding TRIK Studio window to control the controller.