loosing nano 33 iot configuration when disconnecting usb cable or reseting
4 次查看(过去 30 天)
显示 更早的评论
Hi, I am trying to use the Arduino Nano 33 IoT with the 'MATLAB® Support Package for Arduino® Hardware'.
I am calling the arduinosetup() function to configure the Nano to connect to MATLAB with Wi-Fi. Then I use the lines:
a = arduino('192.168.137.10','Nano33IoT',9500);
imu = bno055(a,'I2CAddress','0x28','SamplesPerRead',1,'ReadMode','latest');
Why I suspect I am losing the configuration on the board is because...
- When I close the instance of MATLAB, then reopen a new one and create new Arduino and BNO055 objects, I can receive data from the Nano.
- If, however, I disconnect the board's USB cable from the PC and try a different power supply (or even reconect it to the same USB port) or press the reset button, I cannot create an Arduino object anymore. I have to call the arduinosetup() function and redo the configurations again.
We need to use the BNO055 sensor wirelessly, hence we are using the Nano IoT.
0 个评论
回答(2 个)
Adeline
2023-10-12
Hi,
I understand you are trying to connect an Arduino Nano 33 IoT board with MATLAB over WiFi.
If you manually disconnect the board before clearing the arduino object from the MATLAB workspace, the Arduino serial port may not be recognized when you reconnect. In the first scenario where the instance of MATLAB is closed, the object information in the workspace would be erased. Hence, the Arduino Nano was able to receive data in the new instance. Try clearing the Arduino object before disconnecting the USB to fix the connection issue.
Note: To retrieve the necessary credentials from your previous configuration check the “Retrieve last configuration from Arduino board” option in the Hardware Setup UI.
I hope this helps!
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 MATLAB Support Package for Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!