I need to get acceleration value in m/s^2 or in gravity but I can't find any information about the quite high values I get from the sensor even in "rest mode". I need to measure vibrations and the Nicla seems like a perfect fit.
I have read the Getting started and played around with standalone.ino. I have tried both SENSOR_ID_LACC and SENSOR_ID_ACC. Any other out there using the Accelerometer?
Please provide links to the sensor data sheet and to the sketch that you mention. Don't make potential helpers search for stuff that you have ready access to.
The sensor measures the acceleration due to gravity, in addition to those accelerations caused by other forces. The units of measurement are described in the data sheet.
Mathematically yes. But to measure 500 Hz you would have to sample at at least 10x the vibration frequency. Assume a sinewave vibration. At the peak(s) of the sinewave, the acceleration is 0, conversely at the zero crossover the acceleration is at maximum.
So at 500 Hz, the full cycle is 2 ms. Your sensor can only read at about 500 ms. Even if the sensor could "average" the full sine acceleration, the result would be 0.
I have googled a lot to find out what the values the virtual accel. sensor's are giving me but have not really find some answers on that. Are now comparing readings with other sensors to reverse engineer the values. Right now it looks like Standard gravity which I can take x 0.101972 to get m/s^2 but I need to confirm it.
When we were doing vibration testing we used a Piezo charge coupled sensor with (for a professional application) has a significant $$$$ electronic unit. There were some less expensive but still not hobby level.