loosing nano 33 iot configuration when disconnecting usb cable or reseting
3 visualizaciones (últimos 30 días)
Mostrar comentarios más antiguos
Salah Ad-Din Ahmed
el 3 de Oct. de 2023
Respondida: Salah Ad-Din Ahmed
el 13 de Oct. de 2023
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 comentarios
Respuestas (2)
Adeline
el 12 de Oct. de 2023
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 comentarios
Ver también
Categorías
Más información sobre MATLAB Support Package for Arduino Hardware en Help Center y File Exchange.
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!