phyphox Forums
Arduino nano 33 BLE pressure sensor strange data - Printable Version

+- phyphox Forums (https://phyphox.org/forums)
+-- Forum: Discussion (https://phyphox.org/forums/forumdisplay.php?fid=1)
+--- Forum: Experiments and Ideas (https://phyphox.org/forums/forumdisplay.php?fid=4)
+--- Thread: Arduino nano 33 BLE pressure sensor strange data (/showthread.php?tid=1368)

Pages: 1 2


RE: Arduino nano 33 BLE pressure sensor strange data - fbouquet - 09-01-2021

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:




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

       


RE: Arduino nano 33 BLE pressure sensor strange data - Jens Noritzsch - 09-01-2021

Thank you, Fred, for researching this issue. Indeed weird…


RE: Arduino nano 33 BLE pressure sensor strange data - fbouquet - 09-02-2021

Hello,

I just posted a question on the arduino forum about this problem, since it is not a phyphox question. Here is a link:

https://forum.arduino.cc/t/pressure-readings-problem-when-imu-sensor-is-on/901515

Meilleurs Regards,

Fred


RE: Arduino nano 33 BLE pressure sensor strange data - solid - 09-02-2021

Some more to this feature... I have modified the program to switch IMU sensors on at 50 seconds after the acquisition start. I observe with my Arduino  a reduction of the noise and a step of the signal. I will try to add this to the Arduino forum.
           


RE: Arduino nano 33 BLE pressure sensor strange data - Jens Noritzsch - 09-03-2021

How have been your boards powered while testing? Battery (What kind) or USB (portable charger, power supply, …)?


RE: Arduino nano 33 BLE pressure sensor strange data - solid - 09-03-2021

The board is powered by USB..

New test:  IMU.begin() at 35 sec and IMU.end() at 70 sec...