Stack Exchange Network

Stack Exchange network consists of 175 Q&A communities including Stack Overflow, the largest, most trusted online community for developers to learn, share their knowledge, and build their careers.

Visit Stack Exchange

Questions tagged [accelerometer]

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

1
vote
0answers
34 views

FIltering,FXOS8700,FXAS21002C optimization

I'm working on an inverse pendulum project, and am using an adafruit NXP_FXOS8700_FXAS21002 along with an arduino due, and an esp8266 (two seperate projects, same code however). I'm using a Magdwick ...
0
votes
1answer
46 views

Find vehicle movement by IMU and GPS

I'm using MPU9250 which has both accelerometer and gyroscope in a vehicle. What I want is to just know that if the vehicle is currently moving or not. I searched and find out that I can't get velocity ...
0
votes
2answers
50 views

Analog vs Digital Accelerometers - pro's and con's? [closed]

For my project i need to measure accelerations up to 16g. My options are either digital accelerometers such as the MPU6050 or MPU9250 or an analog accelerometer such as the ADXL326. What are any ...
0
votes
0answers
46 views

How to configure accelerometer(ADXL345) with 2g resolution?

I don't know how to set range for accelerometer ADXL345. All I'm getting is digital raw data. How do I convert it to g with 2g range for further calculations? It's for my Final year Project. Here's ...
0
votes
1answer
172 views

How to read the raw data from GY-85 module?

This module has 3 sensors. Gyroscope, Accelerometer and Magnetometer. I think I'm reading the raw data in the wrong way. For example, for the magnetometer HMC5883L, I'm using this code which I ...
1
vote
1answer
353 views

How can I simulate an accelerometer?

I am new to Arduino. I want to simulate a circuit which uses an accelerometer ADXL335 and a DC motor. If any deviation observed in the accelerometer readings, I want the motor to rotate. Is there any ...
2
votes
1answer
54 views

How do I connect an accelerometer (GY-521) to a SparkFun Thing Dev (ESP8266)?

All of the wiring diagrams I've found for wiring up a GY-521 accelerometer to an Arduino have looked something like this: I've read in several places that it needs to be connected to A4 and A5. I ...
0
votes
1answer
63 views

Trying to use Tap Detection solution using ADXL345 with Arduino

I am using ADXL345 sensor connecting with Arduino via I2C interface, I am able to test the data at tri-axial axis but as there are some other features also, which I am going to try with Tap detection ...
2
votes
1answer
158 views

Arduino Mega and gyroscope erroneous values

I have Arduino mega2560 and MPU6050. I connected to Vcc pin of the gyro to +5V on the mega, the SDA to SDA pin, SDL to SDL pin, AD0 and GND to 2 GND pins. I used this code: #include<Wire.h> ...
0
votes
1answer
50 views

ADXL345 Data Rate seems to depend more upon Baud rate than the actual Data Rate that I set

I have an Arduino UNO that is connected to an ADXL345. The problem is I need to collect data at 50Hz at least. The ADXL345 according to its Data sheet can go up to 3200Hz without any problem. I am ...
0
votes
0answers
103 views

Sending accelerometer data using BLE to a Cordova phone app

I'm working on a simple project, that involves an Arduino sending accelerometer data to a Cordova-based phone app using BLE. I've got my Arduino wired up correctly, I think - I can see the data in ...
0
votes
0answers
77 views

Accelerometer ADXL345 Output Data

I have 5 ADXL345s (Data Sheet) and I need to use them simultaneously at different places to record data which I need for training machine learning models. I have made a reference box and I place each ...
1
vote
1answer
495 views

What is corrrect the way to find roll, pitch, yaw?

I have an MPU9250. I have calculated accelerometer, gyroscope, magnetometer. But I want to know how to caclulate roll yaw pitch. I have searched on Google. I found many answer roll = (atan2(-...
0
votes
1answer
56 views

Limiting Data Output Frequency from ADXL345

I have a working ADXL345 connected to an Arduino UNO, I need to limit the rate at which the ADXL345 takes in readings. I am using the SparkFun library for this sensor. I have read about the delay ...
0
votes
1answer
197 views

Measuring the speed of an object moving fast through air [closed]

I am new to arduino and am confused about how I would go about doing this: I want to attach a device to a small ball, that will move through the air at speed. The purpose of this device would be to ...
0
votes
2answers
221 views

Data transfer to and from Arduino to Raspberry Pi

I am trying to transmit MPU6050 accelerometer data + data from 3 potentiometers from Arduino to Raspberry Pi. I do post processing here (on Raspberry Pi) and then transfer the data back to Arduino to ...
0
votes
0answers
46 views

Controlling motors via accelerometer not working

I want to control the 2 servos(pan tilt) using accelerometer data value from android app. Im using nodeMCU v3, 2 servos(pan tilt) and smartphone. Connection: servos(pan tilt) is connected to 5 v ...
0
votes
1answer
107 views

Problem connecting Android app to Arduino [closed]

Sorry for doing this, I really don't know where to post beacuse this is both Android Studio code and Arduino code so I've posted to both sites. I want to create a project of using controlling pan-...
0
votes
1answer
111 views

Passing reference to hardware between methods in custom class

I'm a C++ / Arduino newbie, trying to build a custom library for the first time. I created a unit called CDSensors.cpp, which has two methods, SetupSensor and ReadSensors. The sensor is a SparkFun ...
1
vote
1answer
229 views

Configuring Accelerometer on BNO055 sensor

I'm using the BNO055 9DOF Adafruit sensor to measure the acceleration/orientation. How can I change the configuration of the accelerometer from 4G (default) to 16G? What I already know: The ...
1
vote
1answer
59 views

Strange behavior on bitwise operation

i am trying to write a simple program that writes the outputs of an accelerometer (which comes down to 3 analog inputs) onto an SD-Card. I got the hole thing working fine (sending the values as ...
1
vote
1answer
118 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
148 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
225 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/...
-1
votes
1answer
2k 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
276 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
746 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
62 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 <...
0
votes
1answer
248 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
375 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
324 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 ...
0
votes
2answers
614 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
205 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
223 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
512 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
26 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
762 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 ...
3
votes
1answer
122 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
243 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 ...
0
votes
2answers
408 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
50 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=...
0
votes
0answers
118 views

Orientation of Arduino 101 inside a cube

I'm building an IOT device using an Arduino 101. The arduino will be put inside a shell with the form of a Cube. My goal is to recognize in which direction the cube has been rotated (rotated by ...
3
votes
1answer
497 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 ...
3
votes
2answers
438 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 ...
0
votes
0answers
463 views

How to change MPU 6050 Interrupt Pin number?

I'm working with MPU6050 and I want to use a different Interrupt pin(Pin18) in Arduino mega2560. How to use attachInterrupt() here? #include<Wire.h> const int MPU_addr=0x68; int16_t AcX,AcY,...
1
vote
1answer
824 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
480 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 ...
4
votes
2answers
3k 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(...
4
votes
1answer
368 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
205 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 ...