Clear Filters
Clear Filters

Trouble connecting LEGOEV3 with matlab using bluetooth

3 views (last 30 days)
I am trying connect my LEGOEV3 with matlab using the support package (https://www.mathworks.com/hardware-support/lego-mindstorms-ev3-matlab.html), but when I try to define my brick I just received error messages or the program just still running and never stop.
I checked with bluetoothlist, serialportlist and Control panel/Device manager, so confirmed the connection and the ports in which the brick should be connected (I also confirmed the Add on of Instrument tool box control). Also I tried with the app of LEGO Mindstorm and it is good connected with the robot(it received and make the movement that I programmed on the brick) it was connected using bluetooth.
I get error messages as:
CODE NUM 1: myev3 = legoev3('bt', brickID)
Unable to resolve the name 'hwconnectinstaller.internal.isProductInstalled'.
Error in legoev3 (line 145)
if ~hwconnectinstaller.internal.isProductInstalled('Instrument Control Toolbox')
CODE NUM 2: myev3 = legoev3('bluetooth','COM3') or myev3 = legoev3('Bluetooth','COM3') or myev3 = legoev3('bluetooth','COM4') or myev3 = legoev3('Bluetooth','COM4')
2. Failed to connect to EV3 through Bluetooth. Please check your Bluetooth connection. or It never stop running with the other COM port.
And when I try to connect it using USB it says that the device is not recognized by my computer (I tried with 2 different computers with different windows versions). I am using Windows 10 and Matlab version R2022a but also tried with 2015b and 2019b.

Answers (1)

Narvik
Narvik on 29 Dec 2023
Hi,
As per my understanding, you are facing issues while trying to connect LEGOEV3 with MATLAB using Bluetooth.
Please refer to the following MATLAB answer that contains the errors, their corresponding reasons and workarounds to connect to legoev3:
Hope this helps!

Categories

Find more on MATLAB Support Package for LEGO MINDSTORMS EV3 Hardware in Help Center and File Exchange

Products


Release

R2022a

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!