accelerometer

Issues reading data from ADXL355 using SPI (STM32 board)

老子叫甜甜 提交于 2020-04-16 03:33:51
问题 I'm trying to read data from an EVAL-ADXL355-PMDZ connected to a STM2L072 Lora discovery kit through the SPI protocol for a project. At first I was using an ADXL345 sensor and I was able to read the accelerometric data and convert it to g without any issues. After switching the sensor to ADXL355, I keep receive all zeroes when reading data registers instead. I changed my initial code for ADXL345 accordingly to the datasheet of the ADXL355 sensor (https://www.analog.com/media/en/technical

Issues reading data from ADXL355 using SPI (STM32 board)

半城伤御伤魂 提交于 2020-04-16 03:33:46
问题 I'm trying to read data from an EVAL-ADXL355-PMDZ connected to a STM2L072 Lora discovery kit through the SPI protocol for a project. At first I was using an ADXL345 sensor and I was able to read the accelerometric data and convert it to g without any issues. After switching the sensor to ADXL355, I keep receive all zeroes when reading data registers instead. I changed my initial code for ADXL345 accordingly to the datasheet of the ADXL355 sensor (https://www.analog.com/media/en/technical

Kalman filter: how to use it with no “state transition model”?

孤者浪人 提交于 2020-03-18 05:30:34
问题 I am working on accelerometer from an android phone. I wish to filter the horrible noise the accelerometer is returning recording the phone's moves. I was reading around on Kalman filter, because low pass are just not enough. But I don't have a model of the transition from ACCELERATION(k-1) to ACCELERATION(k) because it is the movements of the user. So I have no state transition matrix (H or F in different papers, the one that multiply Xk-1 in the equation Xk = H Xk-1 + B command+noise) I saw

Detect person's fall with Android

别来无恙 提交于 2020-03-13 06:36:08
问题 Good morning, I'm new in Android development, before I deveped some application/website in C#/ASP.NET with Microsoft SQL Server. Now I've to develop a Android application to detect when I person falls down and send an alarm. I found an examples like this: public class MainActivity extends Activity implements SensorEventListener{ private SensorManager sensorManager; TextView text_X; TextView text_Y; TextView text_Z; @Override protected void onCreate(Bundle savedInstanceState) { super.onCreate

Read data from ADXL355 using python SPI interface on raspberry pi

≡放荡痞女 提交于 2020-03-05 04:51:08
问题 I'm trying to read accelerometric data from the evaluation board EVAL-ADXL355-PMDZ. The board is connected to a raspberry pi 4 that runs on raspbian . The circuit is cabled into the standard SPI pins (4-wires) in the raspberry pi but the chip selection ( CS ) is connected into one of the free pins (12). To test the board I wrote the following code that uses spidev to make the comunication with the chip and RPi.GPIO to make the chip selection: #!/usr/bin/env python3.7 import time import spidev

Read data from ADXL355 using python SPI interface on raspberry pi

有些话、适合烂在心里 提交于 2020-03-05 04:50:18
问题 I'm trying to read accelerometric data from the evaluation board EVAL-ADXL355-PMDZ. The board is connected to a raspberry pi 4 that runs on raspbian . The circuit is cabled into the standard SPI pins (4-wires) in the raspberry pi but the chip selection ( CS ) is connected into one of the free pins (12). To test the board I wrote the following code that uses spidev to make the comunication with the chip and RPi.GPIO to make the chip selection: #!/usr/bin/env python3.7 import time import spidev

Calling accelerometer from WallpaperService

旧时模样 提交于 2020-02-06 08:07:00
问题 I got this Accelerometer class that holds values of accelerometer and I can acces them from any other class whenever I want. Normally I would create new object Accelerometer accelerometer = new Accelerometer(this); but when I am inside WallpaperService it doesn't let me use this as parameter. Here is the Acclerometer class: import android.app.Activity; import android.content.Context; import android.hardware.Sensor; import android.hardware.SensorEvent; import android.hardware

Getting a trajectory from accelerometer and gyroscope (IMU)

余生长醉 提交于 2020-01-31 04:06:56
问题 I am well aware of the existence of this question but mine will differ. I also know that there could be significant errors with this approach but I want to understand the configuration also theoretically. I have some basic questions which I find hard to answer for myself clearly. There is a lot of information about accelerometers and gyroscopes but I still haven't found an explanation "from first principles" of some basic properties. So I have a plate sensor that contains an accelerometer and

Getting a trajectory from accelerometer and gyroscope (IMU)

我的未来我决定 提交于 2020-01-31 04:05:26
问题 I am well aware of the existence of this question but mine will differ. I also know that there could be significant errors with this approach but I want to understand the configuration also theoretically. I have some basic questions which I find hard to answer for myself clearly. There is a lot of information about accelerometers and gyroscopes but I still haven't found an explanation "from first principles" of some basic properties. So I have a plate sensor that contains an accelerometer and

Getting a trajectory from accelerometer and gyroscope (IMU)

不想你离开。 提交于 2020-01-31 04:05:05
问题 I am well aware of the existence of this question but mine will differ. I also know that there could be significant errors with this approach but I want to understand the configuration also theoretically. I have some basic questions which I find hard to answer for myself clearly. There is a lot of information about accelerometers and gyroscopes but I still haven't found an explanation "from first principles" of some basic properties. So I have a plate sensor that contains an accelerometer and