Questions tagged [accelerometer]

A component which measures G-force to detect which direction it is moved or tilted in.

Filter by
Sorted by
Tagged with
1
vote
1answer
468 views

Powering an Arduino Uno using 2 (or as few as possible) AAA batteries

[Background] I'm constructing a water bottle rocket which is going to use apogee detection and a mechanism for the parachute release. Connected to the Uno will be an accelerometer and a servo, now ...
-1
votes
1answer
371 views

Fastest reading through i2c

I have an ADXL345 accelerometer and I read it with an arduino through I2C. I want to get readings at a frequency higher than 500Hz. According to the documentation this should be easily achievable, ...
1
vote
1answer
465 views

Does the position in which you mount an IMU matter?

Forgive me, I'm sure this is a total noob question, but I have never seen it actually addressed in any example or demo. When using something like a MinIMU-9 board (https://www.pololu.com/product/...
0
votes
1answer
6k views

'import' does not name type ERROR

I am working with a group of people on an arduino controlled BB8 robot. We are using an IMU unit (accelerometer+gyroscope). I found a processing example for the IMU unit we are using. The code is ...
-1
votes
1answer
574 views

Determine an earthquake intensity/magnitude level using ADXL345 and Arduino

I want to create a project using Arduino that monitor the Earthquake. I used an ADXL345 Accelerometer to detect if there is an earthquake. I used the Adafruit ADXL345 example to determine a ...
0
votes
1answer
2k views

High pass filtering accelerometer data on Arduino

I'm trying to use an accelerometer for user input to a device. The idea is that the user input will be tied to "taps" on the accelerometer, one tap means something, two taps something else, etc. I'm ...
0
votes
1answer
277 views

Two stepper one by one

I want to run two stepper motor one after the other Stepper1 has to5 rotation And stepper 2 has to move 1rotation Here is the code Stepper 1 is nema 34 And stepper 2 is nema 24 #include <...
1
vote
1answer
548 views

MPU6050 accelerometer giving output as -1 -1. Can anyone tell the issue in the code?

// MPU-6050 Short Example Sketch // By Arduino User JohnChi // August 17, 2014 // Public Domain #include<Wire.h> const int MPU_addr=0x68; // I2C address of the MPU-6050 int16_t AcX,AcY,AcZ,Tmp,...
0
votes
1answer
688 views

LSM9DS1: Inconsistent data from an accelerometer

I'm currently getting inconsistent data from the accelerometer of my Adafruit LSM9DS1. To be more precise I either get a value close to the correct gravity (eg. 9.496515) or some reading like it was ...
0
votes
2answers
552 views

How to use an Arduino to measure speed of rocket

I am not very experienced with Arduino and I am trying to learn it. I was wondering what is the easiest and most effective way to calculate speed and log it every second so to say. This would be ...
1
vote
2answers
830 views

Should I use an accelerometer or gyroscope in my project?

A friend and I are working on a sign language translation glove. Our glove currently successfully uses 5 flex sensors to determine the bend of each finger and can accurately detect letters in the ...
0
votes
1answer
287 views

Why is this IIR Filter unstable on the Arduino Due?

I am using an Accelerometer (on the MPU6050) and connected it to the Arduino Due. In order to filter the signal I am using an IIR Filter with the following transfer function: H(z) = Y(z)/X(z) = B/A ...
0
votes
1answer
268 views

FIS1100 (IMU)/ I2C/ Arduino

I am a student and currently doing a semester project. The first goal is to get accelerometer and gyroscope data from FIS1100 using the Arduino (Uno). I've got the FIS1100 Evaluation Kit user guide ...
4
votes
1answer
771 views

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 ...
0
votes
0answers
35 views

ADXL345 hangs the microcontroller as vibrations increase [duplicate]

I am using ADXL345 accelerometer with Adafruit_ADXL345 library for vibration measurement. I am reading acceleration at X, Y, Z-axis of a sensor placed on a vibrating platform.And serially sending it ...
0
votes
1answer
1k views

ADXL345 hangs the micro-controller as vibrations increase

I am using ADXL345 accelerometer with Adafruit_ADXL345 library for vibration measurement. I am reading acceleration at X, Y, Z-axis of a sensor placed on a vibrating platform.And serially sending it ...
2
votes
1answer
235 views

ADXL345 becomes 0g when plugin MicroSD Adapter using SPI

Try SD SPI code and ADXL345 SPI code separately and both are fine. When merge the codes, ADXL345 reading okay (not plug in MicroSD Adapter). Pin should bo okay. Every time MicroSD is plugged (the ...
2
votes
2answers
386 views

AtTiny85 and MMA8452Q accelerometer cannot connect using i2c

I am trying to connect the MMA8452Q with AtTiny85 using the TinyWireM library. I made the proper hardware setup with pull-ups on SCL and SDA pins - tested it on Arduino Uno and it works, however ...
1
vote
2answers
633 views

How can I find and specify the address of my adafruit MMA8451 accelerometer in arduino code? [duplicate]

I am trying to use four of the same accelerometer on the same bus and acquire data from each of them using an SD card. Because I am using four of the same accelerometer I need to be able to ...
2
votes
0answers
54 views

looking for a very accurate and sensitive accelerometer [closed]

For a research type project, we are looking for a very accurate and sensitive accelerometer (preferably 6-axis). The average range of the acceleration that we need to record is about 0.0003g (g=...
2
votes
1answer
818 views

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 ...
2
votes
2answers
676 views

Problem with measuring vibrations (Arduino UNO + step motor + accelerometer)

I'm trying to measure vibrations of the motor's shaft that is oscillating due to an eccentric load. For that, I am using the MPU 6050 6 axis accelerometer. The motor is a NEMA 17 stepper, connected to ...
1
vote
1answer
1k views

Accessing two MPU-9250 DMP

I want to use both IMU at the same time using the Sparkfun Library on a SAMD21 mini breakout board. Can anyone help? The begin function is : inv_error_t MPU9250_DMP::begin(void) { inv_error_t ...
1
vote
1answer
686 views

Accelerometer MPU-6050 marks timeout in Unity

I've been having this problem, that I am trying to use an accelerometer MPU-6050 to get the rotation and pass that information to Unity. I also have some buttons in the same Arduino. I'm using an ...
6
votes
2answers
8k views

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(...
3
votes
1answer
670 views

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. ...
2
votes
1answer
364 views

Why is there no smooth value from ADXL335?

I have written this code to read x-acceleration from ADXL335. Why is the value toggling between 342, 343, 344 even at rest? Is there anything I need to do to get a smooth curve? How to increase ...
0
votes
1answer
8k views

OVF in serial monitor instead of data

I am currently working with two Arduinos and I'm trying to synchronize them. I want to get data from four LIS3DH accelerometers. The LIS3DH accelerometers are connected to the Arduino using I2C ...
-4
votes
1answer
65 views

Need help with my project

Can anyone give me the full code of my project because my code is not working? My aim is that when the Z axis of an accelerometer is below 370 and a pushbutton connected to a pin 2 becomes high, then ...
-1
votes
1answer
210 views

autoCalibrateAccelerometerOffset() Why does my Z values swing from 0 to 1g in static condition?

I tried to implement the autoCalibrateAccelerometerOffset() function, through the code below on Arduino Genuino 101. In a static test, without any stress or noise, I read the three axis value. ...
-1
votes
2answers
135 views

Arduino rc plane logger [closed]

Well, I want to make an rc plane with an arduino that logs to an sd card A) Video B) Accelerometer data C) Tempature D) Humitity E) Atmospheric pressure F) Gyroscope Data What arduino/parts should I ...
2
votes
3answers
679 views

Absolute encoder vs Accelerometer for calculating angles

I've been toying with this idea for a while and after some thorough research I'm more than happy that the project is realistic. However I'm in need of some direction in terms of the sensors I should ...
2
votes
1answer
620 views

Accelerometer readings on a moving object [closed]

I hope this stack is the right place for this question. I have an accelerometer mounted securely on a swaying object -lets say a stick or pole- this object is swinging back and forth in small angles (+...
-1
votes
1answer
572 views

ADXL345 accelerometer doesn't work

I just got the ADXL345 accelerometer module. I tried everything I could find online but I can't get it work. Here's how I connect the pins to the arduino uno: ADXL345 -> ARDUINO VCC ...
2
votes
2answers
407 views

Is it possible to measure the velocity of a Unmanned Aerial Vehicle using only accelerometer?

Our project is about dropping a payload from a UAV on the specified area. We are using an accelerometer (connected to the Arduino board) to measure the velocity of the plane (assuming the initial ...
0
votes
1answer
2k views

Using MMA8451 accelerometer to count steps [duplicate]

I'm trying to use an Adafruit MMA8451 accelerometer to create a pedometer-type device that counts steps. I'd like to initiate a counter that says "if the x-axis readout is > some threshold, add 1 to ...
1
vote
1answer
832 views

Best way to detect tilt using MPU 6050 [closed]

I want to make a gesture controlled car using this IMU.. What is the simplest way to detect tilts? I've seen many programs on the Internet that calculate the angles but is this really necessary? Why ...
1
vote
1answer
113 views

It seems like the math of arduino is off

[SOLVED] By changing the offset for the incoming data into int16_t type there won't be any rounding errors and the values I'm getting are all back to zero in the sensor its base position This is my ...
2
votes
1answer
160 views

Adding fade to this RGB LED IMU

I've built an accelerometer based dice. It changes colour based on what side of the dice faces up. All is well and good, except I'd like the RGB to fade from one colour to the next instead of changes ...
1
vote
1answer
3k views

Wake Arduino (Atmega328) from sleep with ADXL345 interrupt

So I'm relatively new to microcontrollers, and I'm having a problem implementing a feature I want for a project. I've learned about putting an Atmega328P to sleep from this tutorial. I'm using an ...
4
votes
1answer
240 views

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 ...
1
vote
2answers
5k views

How to interpret accelerometer output data?

I'm running my accelerometer through my Arduino mini and outputting my values using the following values // print the sensor values: Serial.print(analogRead(xpin)); // print a tab between ...
1
vote
1answer
297 views

Accelerometer fix values

I use Arduino Uno with an Accelerometer ADXL345-gy-291 (the full name of the ship) i did hook it up like this Note I'm using SPI Communication, that was the right one to use in my case. when I plug ...
5
votes
3answers
777 views

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 ...
1
vote
1answer
687 views

Receive data from multiple wireless sensors simultaneously

I want to receive data from multiple (2/3) wireless sensors at the 512 Hz data rate simultaneously at a single receiver (bluetooth or any other wireless standard). Is it possible with one receiver or ...
0
votes
2answers
165 views

Accelerometer sample code

Just to illustrate my work here, I found a tutorial on how to code an accelerometer, I wanted to understand how does it work, literally get how it works, and not simply using the code without ...
0
votes
1answer
161 views

Detecting ground distance through rubber

I want to put a small Arduino and some sensors inside a tennis ball to measure the ball's height above the ground. It won't be used for tennis, just for fun. Is there any sensing solution that would ...
0
votes
1answer
306 views

Arduino SPI Communication with H3LIS100DL accelerometer

I'm having trouble getting information off the accelerometer I'm trying to use. What code should I use to read the X,Y, and Z axis? I've read the data sheet but I don't have any experience with SPI ...
2
votes
0answers
600 views

Transforming from analog output to speed and acceleration with gy-61

Maybe it's a simple question but I'm unable to get what I need. My task is this: Get the acceleration and speed of each axis of the accelerometer. I thought of something like: const int VCCPin = ...
1
vote
1answer
2k views

Help with MPU-6050

I have bought MPU-6050 a month ago for a project, I have got a hang I2C protocol and register maps of MPU. I have learnt how to get raw values of accelerometer and gyroscope. What I needed for my ...