bno055 sensor not outputting magnetic field
3 次查看(过去 30 天)
显示 更早的评论
Im using the bno055 senor hooked up to an arduino uno to know its orientation and as a compass, but i read the calibration status everything says calibrated except for system which reads "uncalibrated". Then when I am reaing data from the imu, all magnetic field readings come back as zeros. Does anyone know whats causing this problem and a possible solution. I've attached a picture of the output form the IMU

4 个评论
Tommy Thomasson
2025-3-28
Greetings... I'm having the same problem with the BNO055 (via Arduino) and Matlab.
The sensor works as expected when I set it up "stand-alone" with just the Arduino (Uno) + BNO055 using the Adafruit BNO055 library (using version 1.6.4). But when trying to interface it via Matlab (using Matlab R2024a, Matlab support package for arduino toobox, sensor fusion and tracking toolbox, and the instrument control toolbox), the magnetometer spits out all zeros regardless of how often I calibrate. (Problem 1)
I'm also getting "System: uncalibrated" while the accelerometer, gyro, and mag are all showing "full" - again regardless of how often I calibrate the sensor. (Problem 2)
I'll continue tinkering with it and post a response if I'm able to get it working. Wondering if others out there have previously experienced and solved these issues with the BNO055. I can share code etc. for anyone interested.
ALEE
2025-4-13
Hi all.. I would like to explain my problem.. I had a full working simulink model using arduino mega and arduino 9 axes motion shield on matlab 2019/2020.. now I have new purchases of arduino mega and arduino 9 axis motion shield with the same model (all supporting arduino packages are properly installed). The mega board is working and detected but the 9 axis motion shield is not recognised and all readings are zeros and status spits out -1.
Any help would be appreciated as I can see that I miight need to do extra setting for the boards in the model preferences but I cannot figure out from where to start.
回答(1 个)
Gayatri Menon
2025-6-16
Hi,
Could you try reading values in AMG mode (non-fusion mode) and check if the magnetometer readings are correct?
imu = bno055(a, 'OperatingMode', 'amg');
imu.read
If they are not zero, the issue is likely related to calibration problems with the BNO055 when used in NDOF mode.
Thanks
Regards
Gayatri
0 个评论
另请参阅
类别
在 Help Center 和 File Exchange 中查找有关 Arduino Hardware 的更多信息
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!