Arduino 5 Minute Tutorials: Lesson 7 - Accelerometers, Gyros, IMUs

@TULASI You would need both; a gyroscope only provides relative angular acceleration. Choose an IMU with around the maximum ‘G’ rating you need; it should likely be 2g or lower, and fairly low angular acceleration (

@Himanshu Sharma You indicate The GPS unit is integrated, so you need to place it in an unobstructed location - this would likely mean on top of the roof of the vehicle. Note that even cell phones often have issues obtaining GPS lock within a car. Towards the bottom of the window (i.e. the least metal around the unit) may also be an option, though not as good.

hello sir. can you help us to find the angular displacement using triaxis sensor? thankyouu

@vanessa If you have a gyroscope you would need to do a double integration. Note that if you also have an accelerometer (three axis), then you can get absolute angles.

hello sir, do u have an email account… i seriously need your advice about our project. thank you.

Goodevening sir. :slight_smile: i’m about to get the displacement taken by the person by giving triaxis sensor the value of x, y and angle. just like the use of pedometer, but the only difference is that in any direction… can you send me ur e-mail address sir? i badly need your advice … it was so hard to explain it here. i tried many times to know you e-add but i can’t find anything… thankyou.

@evanz Unfortunately personal e-mails are not possible, but you can post your question on the RobotShop Forum.

@vanessa Unfortunately we cannot provide individual e-mails, but you can post your question on the RobotShop Forum.

hi, great article;
I an building a device arduino and mpu6050 that tell the computer yaw pitch roll of tthe device itself. (it works nice, only some drift) but i need to sense and tell the computer "i’ve moved right or left (sway?)or front /backward) like a computer mouse

@Ruben Zilzer The accelerometer component would measure linear acceleration, and you can integrate this twice to get position (but drift will build up). If not, a mouse would be a great basis for the technology needed (encoder wheel or optical).

Hi there,

I’m currently doing my FYP, developing a wearable device to measure posture deviation. I’ve chosen to use either IMU - 6DOF LSM6DS3 or ITG3200-ADXL345. I’m new to microcontrollers, hence I would like to ask what kind of specs I should look out for when choosing an Arduino? If possible, could you recommend me the arduino that I should be looking at?

Thanks.

@Arisha Both the LSM6DS3 and the ADXL345 seem to have an I2C output, so most Arduino boards have I2C. The question then becomes the speed of the main processor in order to ensure all values are obtain as close to real time as possible. For most wearable applications though, high accuracy is not needed, so a normal Arduino like the Uno would work well.

i want to read the speed of my RC car using arduino and any sensor ? what do u suggest for me to use ?

@Mark If you use your RC car outdoors, you can use a GPS to get decent measurement. If you want instantaneous speed, you can use a three axis accelerometer. Another option of course would be to use encoders.

Hi , I have BNO055 IMU sensor. how I can find the 3d position by Arduino?

@Alaa Adafrtui provide a unified sensor library (for Arduino) with the BNO055 included. This should help save you quite a bit of time programming.

Sir , can you explain how to read translational velocity from raw data accelerometer ?

@Andrews You need to integrate once to get velocity from acceleration, and integrate again to get position from velocity.

Hi Benson, I am currently doing a Hand Gesture Drone Project. As for now, i am able to do the roll & pitch by titling my wearable device to control the drone using the accelerometer. However, for the yaw, how do i use the magnetometer or gyroscope to implement it on my wearable device as the magnetometer reading is always based on true north and the gyroscope is based on the angular rate of change. If i yaw my wearable device to left or right facing different direction, it won’t be able to work.

@Wei Hong You will need to program it to determine relative direction - it should read the head motion in one direction, and not factor in the head motion to return to resting. To counteract, you would need to move your head in the opposite direction and return to rest. It will take some getting used to. Alternatively, you can have the drone stop when you return your head to resting position (from either rotation), and head rotation itself can be relative to the angle from rest. Just some ideas.