This forum uses cookies
This forum makes use of cookies to store your login information if you are registered, and your last visit if you are not. Cookies are small text documents stored on your computer; the cookies set by this forum can only be used on this website and pose no security risk. Cookies on this forum also track the specific topics you have read and when you last read them. Please confirm whether you accept or reject these cookies being set.

A cookie will be stored in your browser regardless of choice to prevent you being asked this question again. You will be able to change your cookie settings at any time using the link in the footer.

Arduino nano 33 BLE pressure sensor strange data
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:

  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...




Messages In This Thread
RE: Arduino nano 33 BLE pressure sensor strange data - by fbouquet - 09-01-2021, 05:54 PM

Forum Jump: