element14 Community
element14 Community
    Register Log In
  • Site
  • Search
  • Log In Register
  • Community Hub
    Community Hub
    • What's New on element14
    • Feedback and Support
    • Benefits of Membership
    • Personal Blogs
    • Members Area
    • Achievement Levels
  • Learn
    Learn
    • Ask an Expert
    • eBooks
    • element14 presents
    • Learning Center
    • Tech Spotlight
    • STEM Academy
    • Webinars, Training and Events
    • Learning Groups
  • Technologies
    Technologies
    • 3D Printing
    • FPGA
    • Industrial Automation
    • Internet of Things
    • Power & Energy
    • Sensors
    • Technology Groups
  • Challenges & Projects
    Challenges & Projects
    • Design Challenges
    • element14 presents Projects
    • Project14
    • Arduino Projects
    • Raspberry Pi Projects
    • Project Groups
  • Products
    Products
    • Arduino
    • Avnet Boards Community
    • Dev Tools
    • Manufacturers
    • Multicomp Pro
    • Product Groups
    • Raspberry Pi
    • RoadTests & Reviews
  • Store
    Store
    • Visit Your Store
    • Choose another store...
      • Europe
      •  Austria (German)
      •  Belgium (Dutch, French)
      •  Bulgaria (Bulgarian)
      •  Czech Republic (Czech)
      •  Denmark (Danish)
      •  Estonia (Estonian)
      •  Finland (Finnish)
      •  France (French)
      •  Germany (German)
      •  Hungary (Hungarian)
      •  Ireland
      •  Israel
      •  Italy (Italian)
      •  Latvia (Latvian)
      •  
      •  Lithuania (Lithuanian)
      •  Netherlands (Dutch)
      •  Norway (Norwegian)
      •  Poland (Polish)
      •  Portugal (Portuguese)
      •  Romania (Romanian)
      •  Russia (Russian)
      •  Slovakia (Slovak)
      •  Slovenia (Slovenian)
      •  Spain (Spanish)
      •  Sweden (Swedish)
      •  Switzerland(German, French)
      •  Turkey (Turkish)
      •  United Kingdom
      • Asia Pacific
      •  Australia
      •  China
      •  Hong Kong
      •  India
      •  Korea (Korean)
      •  Malaysia
      •  New Zealand
      •  Philippines
      •  Singapore
      •  Taiwan
      •  Thailand (Thai)
      • Americas
      •  Brazil (Portuguese)
      •  Canada
      •  Mexico (Spanish)
      •  United States
      Can't find the country/region you're looking for? Visit our export site or find a local distributor.
  • Translate
  • Profile
  • Settings
Sensors
  • Technologies
  • More
Sensors
Sensor Forum Understanding the differences between Gyroscopes and Accelerometers
  • Blog
  • Forum
  • Documents
  • Quiz
  • Events
  • Polls
  • Members
  • Mentions
  • Sub-Groups
  • Tags
  • More
  • Cancel
  • New
Join Sensors to participate - click to join for free!
Actions
  • Share
  • More
  • Cancel
Forum Thread Details
  • State Suggested Answer
  • Replies 21 replies
  • Answers 5 answers
  • Subscribers 319 subscribers
  • Views 3594 views
  • Users 0 members are here
Related

Understanding the differences between Gyroscopes and Accelerometers

Former Member
Former Member over 10 years ago

Hello all,

I apologize for what is likely an ignorant question, but I am fairly new to electronics and have little confidence. I am working on a personal project where I am using a servo motor to move a rod back forth 90 degrees (not exactly, but this analogy should suffice), and I am interested in measuring the instantaneous (angular?) acceleration (I want to use it to calculate torque). Surprisingly, I have come across trouble while researching online for a sensor to do this. My understanding now is that an accelerometer is only capable of measuring linear acceleration (which means the object can't be rotating, right?), while a gyroscope only measures angular velocity when an object is spinning about an axis. Technically, the rod in my project isn't spinning-it's just rotating back and forth between two angles (0 and 90) on the XY plane. Is there a simply way/sensor to do this? More broadly, am I completely misunderstanding the uses of gyroscopes and accelerometers? I hope i explained the issue properly...

  • Sign in to reply
  • Cancel

Top Replies

  • amgalbu
    amgalbu over 10 years ago in reply to Former Member +1
    Accelerometer measure acceleration. According to physics , acceleration is a variation in speed. If an object is falling, its speed increases of 9.8 m/s every second, so its acceleration is 9.8 m/s^2 usually…
  • michaelkellett
    0 michaelkellett over 10 years ago

    Part of your problem is that for some reason most manufacturers and users of MEMS accelerometers and angular-sensing-things usually describe rate sensors as gyroscopes.

     

    Take an example from Farnel, 2433080 - may not do for your purposes but cheap and OK to explain:

    from the second paragraph of the description in the data sheet:

     

    It includes a sensing element and an IC interface

    able to provide the measured angular rate to the

    external world through digital interface (I2C/SPI).

     

    So it actually measures angular rate. Your rod is twizzling back and forth so the rate will be changing (only you know by how much and how fast) but this device has selectable ranges and bandwidth (from 1 to 56Hz) so it may be OK. To measure the acceleration you will need to differentiate the rate signal - so you'll need a micro to read the sensor and do the maths (you might be able to find an analogue sensor and avoid using  a micro). This system will not measure the angular acceleration instantly - there is inherent delay in the filtering and signal processing (not to to do with how fast the processor is but more fundamental).

     

    If you must actually detect acceleration I can tell you how to make an angular accelerometer but you don't want to go there unless you have to.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelkellett

    Hi Michael,

     

    Thanks for your post. Firstly, when you say twizzle-just to make sure we're on the same page- the rod isn't actually rotating about itself. I may not understand how that word is properly used though. The rod is simply moving 90 degrees in an arc, it's never "spinning" if you will. So if you just imagine a pendulum starting from its equilibrium position, and then moving clockwise 90 degrees, that's similar to my system. The pendulum is never rotating about an axis (maybe the z-axis I guess?). I hope I'm explaining this well.

     

    And yes, I'm currently using an arduino as my micro-controller. As for the best way to measure angular acceleration-is the gyroscope a simple implementation that would work given what I now told you? If so, would you suggest I differentiate to get acceleration, or use an analogue sensor as you say (not sure how that works). Also, if your other idea is more accurate, would you advise I follow it?

     

    Thanks a lot for your help thus far.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    Are you able to put the rate sensor or whatever at the centre of rotation ?

     

    How fast does the rod swing though 90 degrees.

     

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelkellett

    I might be able to find a way to mount it on the center of rotation-but I'm not sure.

    The speed actually varies between experiments, but I can control it and will eventually keep track of it. For example, it might move 50 deg/sec on one trial, then 100 deg/sec on the next.

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • michaelkellett
    0 michaelkellett over 10 years ago in reply to Former Member

    It may be that the cheapest solution is to use a low cost optical shaft encoder,

     

    Farnell 2401104 (about £40) does 3600 cycles per rev which gives you 4 x 3600 = 14400 edges per revolution or 40 edges per degree. At 100 degrees per second this is 4000 edges per second and an Arduino should be able to keep up and record the data.

    This will be much more accurate than a rate gyro.

     

    MK

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Reject Answer
    • Cancel
  • amgalbu
    0 amgalbu over 10 years ago

    I think you can get the same result using a cheap 3 axis accelerometerc mounted at the tip of the rod. You can measure the centripedal and tangential components of the acceleration to determine the current position of the rod, and from then infer the speed and angular acceleration

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to michaelkellett

    It's interesting that you suggest this. The servo actually has a potentiometer (5K linear taper pot) which I think I can hack into (a lot of people online have videos on how to do this). Do you think a potentiometer is much worse than an encoder? I'm guessing you want me to collect data from the encoder, and then in the code, differentiate twice to get the acceleration?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to amgalbu

    Hi Ambrogio,

    Thanks for the response. I'm confused because I think you're implying that an accelerometer actually gives position? Or am I completely misunderstanding you?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • vsluiter
    0 vsluiter over 10 years ago in reply to amgalbu

    Ambrogio Galbusera wrote:

     

    I think you can get the same result using a cheap 3 axis accelerometerc mounted at the tip of the rod. You can measure the centripedal and tangential components of the acceleration to determine the current position of the rod, and from then infer the speed and angular acceleration

    you would have to callibrate / compensate / align to not be affected by gravitational force (also measured as acceleration) and the signal you want to measure. Rotating in the horizontal plane could help.

     

    I don't understand madgorillaz '  concern about an accelerometer not being able to measure angular acceleration. If you mount an accelerometer on a disc which you'll start spinning, you will see the acceleration. Just be careful to align the sensitive axis to the direction of rotation, or take a 2D-sensor.

     

    You could also start hitting nails with heads and just buy an Invensense MPU6050 or ST LSM330DLC to have both gyroscope and accelerometer in one package. You can buy breakout boards for these at Sparkfun / ebay. Arduino libraries are available for the MPU6050, so you could start logging to your PC immediately. The MPU6050 has way better specs than the ST (Invensense: 16-bit ADC, 1000Hz data rate).

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
  • Former Member
    0 Former Member over 10 years ago in reply to vsluiter

    Well I think I'm just having trouble understanding them. If an accelerometer can only measure acceleration from one axis at a time, how can it measure acceleration when it is mounted on an object that is rotating (not spinning)? Am I missing something fundamental?

    • Cancel
    • Vote Up 0 Vote Down
    • Sign in to reply
    • Verify Answer
    • Cancel
>
element14 Community

element14 is the first online community specifically for engineers. Connect with your peers and get expert answers to your questions.

  • Members
  • Learn
  • Technologies
  • Challenges & Projects
  • Products
  • Store
  • About Us
  • Feedback & Support
  • FAQs
  • Terms of Use
  • Privacy Policy
  • Legal and Copyright Notices
  • Sitemap
  • Cookies

An Avnet Company © 2025 Premier Farnell Limited. All Rights Reserved.

Premier Farnell Ltd, registered in England and Wales (no 00876412), registered office: Farnell House, Forge Lane, Leeds LS12 2NE.

ICP 备案号 10220084.

Follow element14

  • X
  • Facebook
  • linkedin
  • YouTube