Questions tagged [accelerometer]
A component which measures G-force to detect which direction it is moved or tilted in.
188 questions
0
votes
0
answers
52
views
Why are outputs (altitude and vertical velocity) still unstable (goes to negative infinity) after 2d Kalman filtering GY86 data?
I am using MS5611 in GY86 and ESP32 Dev kit to get the vertical velocity and altitude after running a 2d Kalman filter to it. (I modified the code from episode 19 of Carbon Aeronautics drone playlist)....
1
vote
0
answers
116
views
Sampling rate too slow
I have an Arduino Nano connected to an Adafruit H3LIS331 accelerometer. The sampling is initiated by a button press, which sets a delay to prepare for the measurement, and then the sampling begins. ...
-1
votes
2
answers
168
views
Do I connect multiple I2C units to the microcontroler in series or parallel?
I have a project (still planning) with three I2C sensors: GPS, 3-axis gyro+accelerometer, and OLED. Do I connect SDA/SCL in series, or do I connect them in parallel?
1
vote
0
answers
469
views
Arduino Nano 33 BLE power consumption optimization
I am working on building a sensor using Arduino Nano 33 BLE that will measure temperature using two thermistors and angle changes. The measured values will be transmitted over Bluetooth to a ...
2
votes
0
answers
228
views
AsyncMqttclient publish affects accelerometer readings
Using M5StickC ESP32 with built-in MPU6886 accelerometer to read vibrations. In the loop() section the code gets 10 readings per second and if the readings exceed a threshold, it starts publishing the ...
2
votes
0
answers
124
views
STK8231 accelerometer, getting two axis (x & y data) but not z, also in 0-255
Here is the datasheet I followed: https://lcsc.com/product-detail/Motion-Sensors-Accelerometers_SENSORTEK-STK8321_C966924.html
We are trying the following code:
#include <Wire.h>
int ...
1
vote
1
answer
232
views
Quaternion values from Arduino 9-axis motion shield seem very wrong
I am currently usinga BNO055 sensor fitted on the Arduino Nine-axis motion shield to measure ocean wave heights and periods. To do this, I'd like to use the quaternions provided, however I have a ...
0
votes
1
answer
515
views
Does anyone have code that successfully calculates velocity from an accelerometer
I'm trying to calculate the speed of a rocket for my project. I've been given the task of calculating this with an adxl3xxx accelerometer sensor. I'm not sure how to go about this as an accelerometer ...
1
vote
2
answers
761
views
Stabilize data from four gyros/accelerometer [closed]
I am currently working on a university project. My aim is to get a rough estimate of the posture of a person's back. For this I have built a system that collects the data from 4 MPU6050 at a central ...
2
votes
0
answers
281
views
Extract Static Acceleration from MPU6050 using Formula
I am trying to implement a research paper for my project and there is a formula which I am failing to interpret:
According to the research paper, we extract the static acceleration component for each ...
2
votes
2
answers
136
views
arduino acclerometer with servo motor
I'm currently working on project to operate three motors while sending accelerometer value to computer via bluetooth module. I want the motor operation and value transmission to work seperatly. But ...
0
votes
1
answer
721
views
Seeking to write a ton of information to an SD card as close to live as possible
So I've recently started a project where I am using an accelerometer, along with a SD card breakout board. I've been able to get information to write properly to the SD card with no issues whatsoever. ...
-1
votes
1
answer
98
views
Is my BMA421 locked up?
I have been trying to set up the BMA421 motion sensor in a nrf52 based smart watch, using the datasheet for the BMA423, which has the same interface. I had got the sensor working well with the ...
3
votes
1
answer
1k
views
Can I use an accelerometer to measure the velocity of a car in a curve?
I am making an application that is used to measure the velocity, it has an accelerometer that measures the component acceleration in the XYZ-axis. When the car is moving just straight the measurement ...
1
vote
0
answers
275
views
Trying to use a gyro sensor and having issues
My setup is Arduino Mega.
I have a gyro sensor that I'm trying to use to measure the acceleration or G force in X axis (forward movement).
So far I'm trying to figure a way to use the value of Acc or ...
-1
votes
2
answers
4k
views
Arduino Nano 33 IoT LSM6DS3: get gyro angle in degrees
I have an Arduino Nano 33 IoT and I want to get the angle of it using the built-in gyro but I can't seem to find any example code that does this.
The default gyro and accelerometer example code doesn'...
2
votes
1
answer
214
views
My motor driver gets stuck in either high or low with a certain speed super randomly. Motor output stops going based on accelerometer input
Running a DC motor(6.5A max input), motor driver (MD10C 7Amp peak output), and arduino Mega.
Basically, I am creating a stabilized object based on the accelerometer's input. It works great but all of ...
0
votes
0
answers
222
views
I am using an accelerometer as an input and a stepper motor as an output and it will have these weird delays after about 30 sec
I have a stepper motor (kysan 1124090) turning CW and CCW based on the y direction of my accelerometer(MU6090). I am using an Arduino uno. It works great but after about 30 seconds there will be these ...
0
votes
1
answer
527
views
Tilt Compensated Compass Using HMC5983 gives inconsistent output
I've been trying to build a tilt compensated compass for an autonomous Arduino car I'm building. I'm having issues with the consistency of my data.
This is the code I'm using.
#include <Wire.h>...
-1
votes
1
answer
45
views
acelermetor count goes down after 1 peak
I am using a Wemos D1 Mini and an mpu 6050 accelerametor. I managed to get the acceleratmetor to work and have 1 value come out of movements. So when a peak it hit (aka, the threshold of 1.00 is hit) ...
-1
votes
2
answers
139
views
Is it possible to get values only during vibration/movement from an Accelerometer(ADXL335/MPU6050)?
I'm trying to make a wearable motion sensor using ESP32 board and ADXL335 Accelerometer.
Presently when I'm serial printing the output I'm getting the tilt value as well, which have different values ...
-1
votes
1
answer
891
views
How to use H3LIS331DL 3-Axis Linear Accelerometer with arduino to detect Harsh braking of vehicle
I am a newbie here, Recently I was working with H3LIS331DL 3-Axis Linear Accelerometer I²C Mini Module
Here is code for the X, Y, Z-axis.
#include <movingAvg.h>
#include <...
1
vote
0
answers
365
views
How to manage interrupt from accelerometer BMA220?
I would like to use the interrupt register from the BMA220 accelerometer in order to detect high-g shock. I am using a Mega2560 and the sensor is powered by 3.3 V. I use a voltage divider to convert ...
0
votes
0
answers
235
views
Arduino Due ADXL345 Interference
I am working with an Arduino Due and the Analog ADXL345 through a module following this tutorial, with the wire.h library at Fast Speed (400kHz), the Accelerometer Sampling at 800Hz (for the Maximum ...
3
votes
3
answers
3k
views
What is the right way to query an I2C device from an interrupt service routine?
The ADXL345, for example, requires that interrupts are responded to by querying the INT_SOURCE (interrupt source) register. In example code for the SparkFun ADXL345 Arduino Library, there is code that ...