Main Content

Connect Host Computer to EV3 Brick over Wireless Network

This example shows how to connect from MATLAB® software to an EV3 brick using a wireless network.

Required hardware:

  • A wireless network router with encryption set to None or WPA2.

  • A wireless network dongle that is compatible with the EV3 brick.

  1. Create a wireless network connection from your host computer to the wireless network router.

  2. Attach a wireless network dongle to the USB port on the EV3 brick.

  3. Shut down and restart the EV3 brick.

  4. In the EV3 interface, under settings, select WiFi.

  5. Select WiFi so that a check mark appears next to it.

  6. Select Connections. The EV3 brick scan for wireless network access points.

  7. Select a wireless network access point.

  8. Select Connect.

  9. Select the type of encryption the wireless network access point uses, WPA2 or None.

  10. If the wireless network access point uses WPA2 encryption, enter a password.

  11. Confirm that the wireless network access point displays a check mark. Then, press the back button or select the large check mark.

  12. Confirm that wireless network displays a check mark. The EV3 is connected to the wireless network access point.

  13. Select Brick Info. Then, write down the IP address and the ID of the EV3 brick.

  14. In the Command Window, use the legoev3 function to connect from the MATLAB software to the EV3. Specify the connection type, wireless network, the IP address, and the ID of the EV3 brick.

    myev3 = legoev3('wifi','','00165340e49b');