09-01-2021, 05:54 PM
OK, I played a bit...
Main conclusion : when the IMU sensor is running (accelerometer, gyroscope, magnetometer), then the barometer gets some periodic dips. When the IMU sensor is not running, the dips do not appear. In the program that interfaces phyphox to the Arduino nano, all sensors are initialized in the setup, so that even if you run the "pressure" experiment, the IMU has been activated. When you delete the initialization of the IMU (loosing the possibility of running the accelerometer, gyroscope and magnetometer), the pressure experiment works just fine.
I stripped down the program to only these two sensors, I even get rid of the BLE connection and used the serial cable to get the data, and the effect is still here. The only difference between the two graphs below is the following line in the setup of the arduino nano setup() function:
So the dips come from an interaction between the barometer and the IMU sensor. I guess I should post a question on the Arduino forum about that...
Note that the frequence of the dips is different (1s instead of 6s when I did the test on my smartphone). Stripping down the program and getting rid of the BLE did have some effect...
If anyone has some insights on the origin of these dips...
Cheers,
Fred
Main conclusion : when the IMU sensor is running (accelerometer, gyroscope, magnetometer), then the barometer gets some periodic dips. When the IMU sensor is not running, the dips do not appear. In the program that interfaces phyphox to the Arduino nano, all sensors are initialized in the setup, so that even if you run the "pressure" experiment, the IMU has been activated. When you delete the initialization of the IMU (loosing the possibility of running the accelerometer, gyroscope and magnetometer), the pressure experiment works just fine.
I stripped down the program to only these two sensors, I even get rid of the BLE connection and used the serial cable to get the data, and the effect is still here. The only difference between the two graphs below is the following line in the setup of the arduino nano setup() function:
Code:
if (!IMU.begin()) {
while (1);
}
So the dips come from an interaction between the barometer and the IMU sensor. I guess I should post a question on the Arduino forum about that...
Note that the frequence of the dips is different (1s instead of 6s when I did the test on my smartphone). Stripping down the program and getting rid of the BLE did have some effect...
If anyone has some insights on the origin of these dips...
Cheers,
Fred