Arduino NanoRP2040 Connect to Matlab via bluetooth

10 views (last 30 days)
Bernardo
Bernardo on 18 Feb 2025
Commented: Paul on 20 Dec 2025 at 10:04
I'm consistently getting an error when trying to connect the Arduino Board RP2040 to Matlab via bluetooth, i needed to plot some images from sensor data, using matlab, but withouth the connection being allowed, i can't plot or see any interation between Arduino and Matlab, any solutions?
when using the code:
btlist = blelist; disp(btlist);
The board does appear in the BLE list, however, when:
device = ble("NanoRP2040");
The interactions does start, but stops almost imediatly, showing the error:
"Error using ble (line 149)
Failed to connect to device. Make sure device is within proper range and not connected elsewhere. For more
information, see Troubleshooting section in Documentation."
Any suggestions?!

Answers (1)

旨江
旨江 on 26 Feb 2025
Matlab simulink run on hardware configuration display that supported hardware boards are not inclued nano rp 2040, I think this is reason, but in the internet, included nano rp 2040, I am so strange. I also want to communicate 2040 with matlab
  4 Comments
Bernardo
Bernardo on 27 Feb 2025
I did manage to use wifi, using UDP and TCP data transfering, but it's not responsive enough, so might have to change the board to be compatible to the r2024b, and maybe bluetooth will provide me with better resuts(? no clue)
Paul
Paul 2 minutes ago
My goodness, Matlab / simulink is such a pain with regard to versions. Have been trying a lot of boards (RP 2024 / BLE / BLE sense rev2) : none of these work.

Sign in to comment.

Categories

Find more on Test and Measurement in Help Center and File Exchange

Community Treasure Hunt

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

Start Hunting!