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

learn more… | top users | synonyms

1
vote
1answer
152 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 ...
1
vote
2answers
19 views

Using MMA8451 accelerometer to count steps

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 ...
0
votes
1answer
19 views

Best way to detect tilt using MPU 6050 [on hold]

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
78 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
28 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
51 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 ...
5
votes
1answer
51 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
78 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
42 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 ...
2
votes
0answers
41 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 ...
1
vote
1answer
72 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 or need I multiple ...
0
votes
2answers
53 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
65 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
33 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 ...
1
vote
0answers
74 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
117 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 ...
0
votes
0answers
45 views

Why is pin not reading voltage when code is implemented?

I'm learning to use the Adafruit LSM9DS0 and have cobbled this code together such that an LED will turn on when it detects motion on the accelerometer, specifically when the magnitude is over a ...
0
votes
1answer
60 views

Arduino uno unexpected void loop stop

I have a trouble with following, few lines code. For some reason after few seconds Arduino uno stops responding into void loop section of code. I tried to remove serial communication, all print and ...
0
votes
1answer
28 views

Accelerometer Z Value off a significant amount, all other values reasonable

I'm using the MPU9255 Accelerometer to measure acceleration in the X,Y, and Z directions. As per the datasheet, I've applied a scaling to the raw digital values based off of whether I specified +- 2G,...
0
votes
2answers
78 views

How do I communicate with a sensor via an Arduino's RX/TX ports?

I have a sensor that communicates via serial communication. CTi Sensors TILT-05. It transmits an ASCII string with data separated by commas. I want to be able to read the incoming ASCII data in the ...
0
votes
1answer
49 views

ADXL345 I2C setup not returning anything

My hookup is like this: GND - GND VCC - 5V CS - 5V SDO - GND SDA - A4 SCL - A5 Here is the code: #include <Wire.h> #include <ADXL345.h> ADXL345 accelerometer; void setup(void) { ...
0
votes
1answer
118 views

How to properly receive data from accelerometer @ arduino in processing and map it?

I'm busy making a project where my accelerometer @arduino can controle a ellipse @processing But the problem is, it doesn't work. With the code I have now, I can receive the data from the ...
1
vote
2answers
231 views

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?
0
votes
0answers
38 views

How to track movement with accelerometer

this is first time working with arduino. I'm trying to make a DIY Harry Potter Wand that turns on an LED if you wave the wand in a certain way. I'm wondering how to get the arduino to track a ...
0
votes
0answers
191 views

Implementing tilt compensation for a 3-axis magnetometer

I'm really stuck trying do implement a tilt compensated compass on the basis of a 3-axis-magnetometer (HMC5833L) and the Arduino 101 which has a builtin IMU (acc and gyro). The sensors sample at 100 ...
0
votes
2answers
58 views

MPU6050 acceleration values not 16-bit?

I'm looking at the little code snippet from this (many other projects also use similar code): void loop(){ mpu.getMotion6(&ax, &ay, &az, &gx, &gy, &gz); ax = map(ax, -17000,...
0
votes
1answer
237 views

PID control arduino

I am hooking up an accelerometer to an arduino uno and running it through this pid controller. However the output isnt going to my setpoint. When i move the accelerometer back and forth the data goes ...
1
vote
0answers
39 views

How to interpret accel/gryo values

I'm trying to measure acceleration and rotation using an MPU-6050 as explained in this tutorial. I'm able to read values, and they change proportional to how I might move the sensor. However, the raw ...
0
votes
0answers
36 views

Voltage requirement for Trinket 3V, accelerometer and three RGB LED strands

I am using a 3.7V 2000mAh Lipo battery to power a small project: 3V Trinket Pro which reads analog x,y,z values off of ADXL335 accelerometer and outputs them to three addressable LED strands (16 RGB ...
0
votes
1answer
73 views

Is there a way to combine a 3-axis accelerometer/gyroscope into one value?

I have a three-axis accelerometer that reads me its x, y, and z components. This results in three graphs. Is there a way to "combine" these components into one reading, hence, one graph? Same ...
1
vote
2answers
74 views

Accelerometer IoT

I am not sure if I am in the right place. I would like to build a device (as small as possible) that has an accelerometer and can talk to my phone via bluetooth. Im not asking anyone to build this for ...
1
vote
0answers
41 views

ADXL345 with SPI 4-wire interface returns -1, -1, -1

I've been trying to read values from my ADXL345 accelerometer breakout board with an SPI 4-wire interface. I have successfully used it with an I2C interface but I really need the extra speed. I ...
0
votes
1answer
34 views

Managing 80 ~ 90 accelerometers with Arduino

If one were to want to keep track of data from 80 - 90 accelerometers using arduino, what would be the best way to go about this challenge?
3
votes
3answers
2k views

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 ...
1
vote
0answers
114 views

How do I set my sampling rate?

I want to monitor the vibration from a motor running at 9.5Hz at 565rpm. I am using Arduino Uno and the ADXL345 as my condition monitoring equipment. How do I set the sampling frequency? I want to ...
3
votes
1answer
156 views

Accelerometer Interrupt Meaning - Wakeup Function

I am working with an LSM9DS1 IMU, and now specifically trying to program a wakeup feature into the system. My idea is to set the accelerometer at the lowest possible read rate, then when the ...
0
votes
2answers
82 views

Using 6 axis accelerometers

I've been messing around with accelerometers for Arduino for a school project. I bought the SODIAL GY-521 accelerometer + gyroscope module for Arduino. It uses de Invensense MPU 6050. I managed to ...
0
votes
2answers
180 views

Accelerometer axis inputs driving three RGB LED strips - Trinket Pro 5V

I am looking to take the analogRead Value of the x, y and z axis (at pins 0, 2 and 4) and if it's a motion state, perform a rainbow, cylone and cascade LED sequences using Adafruit Neopixel library. ...
3
votes
3answers
422 views

Send multiple sensor values over serial

I want to send a JSON string over serial from arduiono device to my computer. The JSON string contains a sensor value array. To fill this array I use String.concat("value") function. But If I have ...
1
vote
0answers
84 views

Get the rotation on Genuino 101

How can I get the exact rotation of the Genuino 101? I would like to create a plumb rule. I tried the example app with processing, Arduino/Genuino 101 CurieIMU Orientation Visualiser, but it didn't ...
1
vote
0answers
1k views

Two MPU 9250 connected to one arduino (Code of the MPU6050 edited for MPU9250)

I have done a lot of tries to make my two IMU work with my arduino. I'm also done with many research about it and I found this code: // I2C device class (I2Cdev) demonstration Arduino sketch for ...
3
votes
3answers
914 views

How to use Multiple MPU9250 to Arduino Lilypad

Is it possible to connect more than one or to be specific 5 MPU9250 into 1 Arduino lilypad? How will I set the addresses, and where should I put the pins for SDA and SCL? I hope someone out there ...
0
votes
1answer
70 views

SDA and SCL problem with MEMS

I have a simple question to ask you about SDA and SCL pins. I have a gyro and I use these 2 pins to make it work; how can I use an accelerometer combined to a Gyro if these 2 pins are used? I should ...
1
vote
2answers
428 views

Connecting an arduino uno to an arduino due

So I am trying to get my arduino uno to talk to my arduino due but I'm having issues getting the data outputted on the due side. My arduino uno is the master while the due is the slave. The sensor is ...
1
vote
0answers
643 views

Accelerometer sensor gy-61 convert to m/s2

I have a problem calibrating my GY-61 accelerometer on an Arduino Uno to get values in m/s2. Analog-reading code: const int xPin = A5; const int yPin = A4; const int zPin = ...
1
vote
0answers
37 views

High current draw when serial monitor is on [closed]

I have a SPI accelerometer and I'm testing its current draw. When the serial monitor is switched off, it draws 300uA. However, when the monitor is switched on, it draws 1000uA. If the monitor is ...
0
votes
1answer
558 views

Using BLE Nano with LSM9DS1

I'm trying to use the BLE Nano to connect to a LSM9DS1 IMU. However when I am able to connect to the IMU, the values the Nano outputs do not update and do not seem to make sense. I am able to ...
1
vote
2answers
194 views

Can anyone tell me about the onboard accelerometer of LightBlue Bean?

I would like to know the specs of the accelerometer used on a LightBlue Bean before buying one, but I couldn't find any info online. Anybody has an idea?
-1
votes
3answers
3k views

Plotting a real time graph of sensor data from Arduino on Processing, MatLab or Python

I have an accelerometer connected to my Arduino Due to spit out data on my serial monitor as described in my earlier post. I'm trying to find a sketch I could use to plot a continuous real-time graph ...
0
votes
1answer
137 views

Bluetooth distorts analog read?

I'm working to make a simple pedometer with Arduino, and after managing to find an algorithm that correctly finds the steps, I added a bluetooth extension (the overly popular and cheap JY-MCU) to ...