How to solve the error in upload arduino server? the detail says: numeric value exceeds the number of characters in element 1

I am trying to measure acceleration with the IMU LSM9DS1 sensor of the ARDUINO NANO 33 board via bluetooth from the computer using the MATLAB® Support Package for Arduino® Hardware, when I get to the step of uploading the server to arduino I get the error in the photo, does anyone know how I can fix it?

7 Comments

Question: does it happen to be a ARDUINO NANO 33 Sense Rev 2 board? I ask becaue Rev 2 is not supported as yet.
Thanks for your answer Walter!!
It's an Arduino Nano 33 BLE, no Sense, I attach a photos, does it not matter that I have had codes loaded previously? I don't understand if the error is on the board or in matlab...
https://www.mathworks.com/help/supportpkg/arduinoio/ug/Nano33BLEsense_sensorconnections.html gives an example of BLE with that particular sensor -- but it talks as if it requires a Nano BLE Sense.
The blesend block for Simulink documents Arduino Nano 33 IoT, Arduino Nano 33 BLE Sense, and Arduino MKR Wifi 1010 boards .
So at the moment it is not clear to me that Nano 33 BLE that is not Sense can be used for that situation.
You are right, it says BLE Sense, maybe for the BLE model it does not work, thanks for answering!!
Hello, a question, has anyone tried this function? does the arduino nano 33 sense to read acceleration? Is it in real time, through bluetooth communication (wireless)? I ask to see if I buy that model of board.
https://docs.arduino.cc/tutorials/nano-33-ble/imu-accelerometer implies that it should be accessible on the 33 without Sense. It would probably be worth trying their example: if the example can be made to work then it could potentially be extended for your needs.
Oh yes, I have never had a problem for the sensor to work via USB through the arduino ide serial port, the problem is that I need the communication to be via bluetooth, receive acceleration data and save it on the computer....
anyway, thanks for the comment!

Sign in to comment.

Answers (1)

Hi
Can you please reach out to us to resolve this issue? You can contact our technical support for further assistance,
Thanks,
MathWorks
MATLAB Hardware Team

1 Comment

I couldn't solve the problem, in the end I did the bluetooth communication using python, I read in a couple of forums that it's probably the Matlab version, apparently in the latest versions (I have 2023 version) there is a bug and it doesn't work, but a couple of people reported that in the 2021 version does work, but I didn't check it.

Sign in to comment.

Categories

Find more on MATLAB Support Package for Arduino Hardware in Help Center and File Exchange

Asked:

on 27 Jul 2023

Commented:

on 21 Aug 2023

Community Treasure Hunt

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

Start Hunting!