This is machine translation

Translated by Microsoft
Mouseover text to see original. Click the button below to return to the English version of the page.

Note: This page has been translated by MathWorks. Click here to see
To view all translated materials including this page, select Country from the country navigator on the bottom of this page.

Connect a Host Computer Running Windows to an EV3 Brick Using Bluetooth

This example shows how to connect to an EV3 brick over a Bluetooth® connection from a host computer that is running Windows®.

Required hardware: A compatible USB Bluetooth dongle or a host computer with built-in Bluetooth.

  1. If your host computer does not have Bluetooth built-in, attach a compatible Bluetooth dongle to the host computer.

  2. In Windows, click Start > Control Panel > Hardware and Sound > Devices and Printers.

  3. Right-click the Bluetooth device and select Bluetooth Settings.

  4. Enable the Discovery and Connections settings.

  5. In the EV3 interface, under settings, select Bluetooth.

  6. Enable Bluetooth and Visibility. Then, select the large check mark.

  7. Confirm that Bluetooth is enabled.

  8. In Windows, open the System Tray. Right-click Bluetooth Devices and select Add a Device.

  9. In the Add a device dialog box, select EV3 and click Next.

  10. On the EV3 interface, when you see Connect?, select the check mark.

  11. On the EV3 interface, read the PASSKEY value (default: 1234) and select the check mark.

    Ignore the underscore character at the end of the passkey value.

  12. On Windows, in the Add a device dialog box, enter the passkey value as the pairing code. Click Next.

  13. Click Close.

  14. In the Properties dialog box for the Bluetooth device, read the COM port number.

  15. In the MATLAB® Command Window, use the legoev3 function to connect to the EV3. Specify the connection type, Bluetooth, and the COM port.

    myev3 = legoev3('Bluetooth','COM15');