A component which measures G-force to detect which direction it is moved or tilted in.
Questions tagged [accelerometer]
188 questions
8
votes
5 answers
Can I measure velocity from an accelerometer? How accurately?
I've bought this module
Kootek GY-521 MPU-6050 MPU6050 Module 3 Axis analog gyro sensors+ 3 Axis Accelerometer Module
My project will involve affixing this to a moving object, moving at velocities varying from 0.1 to 1.0 meters per second.
From…
James Wierzba
- 229
- 1
- 3
- 9
6
votes
1 answer
A proper way to get the roll, pitch and yaw values
TL, DR : What is the method (in terms of sensors and algorithm) to get the roll, pitch angles of an aircraft at any instant?
I am planning to build a hobby aircraft. I am so confused about which kind of sensors should I use and how to use them in…
muyustan
- 175
- 1
- 7
6
votes
2 answers
What does this notation stands for? Wire.read() <<8 | Wire.read()
I'm using the Arduino's site test code for getting raw values from a MPU-6050 accelerometer + gyro. In the loop, there are this lines for getting the next data from its registers:
Wire.requestFrom(MPU_addr, 14, true); // request a total of 14…
Julio
- 113
- 2
- 3
- 11
5
votes
1 answer
Do gyroscopes purposefully show erroneous data?
I tested an MPU-6050 (GY-521) using an Arduino Nano. I used the I2CDevLib and opened the MPU6050_DMP6.ino with the Arduino IDE. I opened the MPUTeapot.pde Processing-file with Processing. A few changes was necessary to make it work:
MPU6050…
Friend of Kim
- 1,543
- 3
- 16
- 16
5
votes
3 answers
Ooops, no LSM303 detected ... Check your wiring!
History
I have an Adafruit 10DOF IMU Breakout which has been working on my Mega for some time. This morning my program did not run so I starting troubleshooting.
Scenario
I eventually plugged the IMU breakout into my Uno with the *out-of-the-box…
Jacksonkr
- 327
- 2
- 13
5
votes
2 answers
What is the difference between Accelerometer, Gyro, and Magnetometer Sensor?
I'm starting in the arduino world and I'm building an autonomous smart vehicle.
So, after some weeks building and adjusting the vehicle, I got to a point in this project that I want to log it's movements. Talking with a friend, he showed me an…
Gabriel Brito
- 165
- 1
- 2
- 10
4
votes
1 answer
Arduino 101 accelerometer drift or calculation error?
I want to calculate the displacement of the Arduino 101 board compared to the starting point (only in the x direction so far).
In below data I'm swinging the board multiple times in circles around my laptop and then putting it back at the origin a…
Henrik Bohman
- 51
- 3
4
votes
1 answer
Methods to prevent Accelerometer values changing from current spikes
I've connected an Arduino Uno to a MAX7219 IC, which is connected to only one standard 8x8 LED matrix, and an ADXL355 3-axis accelerometer. I use the matrix initially, and turn on all LEDs, while taking the "rest" values for the accelerometer to…
naiveai
- 149
- 6
3
votes
2 answers
Difficulties acquiring angle values from MPU6050
I'm attempting to acquire angle values from an MPU6050 IMU sensor using an ESP32-DevKitM-1 microcontroller.
My setup contains the ESP32 board, the MPU6050 board, and an SD card reader to save the readings from the sensor:
I'm using the Arduino IDE…
Runsva
- 173
- 5
3
votes
1 answer
Help with reading data from ADXL373 Accelerometer (I2C)
I am using ADXL373Z accelerometer with Arduino Uno for a project.
When I run the code, I am getting incorrect values which are probably not even acceleration data. I am thinking it might be a wiring problem, I attached circuit diagram below. This is…
Maxxie
- 31
- 3
3
votes
1 answer
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 is ok, as only linear components are involved.
My…
Geisterfahrer
- 51
- 4
3
votes
3 answers
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 looks like:
void ADXL_ISR() {
//…
James Brusey
- 143
- 1
- 7
3
votes
1 answer
How can I2C be made to work through a level shifter?
I am attempting to use a bi-directional level shifter for an IMU to shift the SDA and SCL lines in an I2C implementation, however cannot get the level shifter working with the Arduino at all. It feels like the bi-directionality is confusing the…
J Collins
- 295
- 1
- 11
3
votes
1 answer
How to get and interpret digital accelerometer data?
I am trying to connect an Arduino to a digital accelerometer. The Arduino receives commands from a mobile app and transmits over Bluetooth through hardware serial.
I also posted this question here.
Code:
#include < SPI.h >
const int X8 =…
rur2641
- 291
- 1
- 3
- 10
3
votes
2 answers
Detecting distance moved by accelerometer?
I have an accelerometer connected to an Arduino Uno board, is there a way I can detect the distance it this accelerometer moved on each of the 3 axis?
None
- 211
- 2
- 3
- 7