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 accelerometer or gyroscope
  • 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 Verified Answer
  • Replies 10 replies
  • Answers 2 answers
  • Subscribers 318 subscribers
  • Views 1018 views
  • Users 0 members are here
  • accelerometer
  • gyroscope_sensor
Related

accelerometer or gyroscope

Former Member
Former Member over 11 years ago

I'm building a camera stabilizing gimbal for use on a drone helicopter. I would like to smooth out some of the turbulance experienced by the copter in windy conditions. What sensor would better serve my needs, an acclerometer or a gyroscope?  I am only interested in handling values in the X and Y directions. I also notice there are various "g" sensitivities (1.5g, 6g etc.).  Any thoughts on that would help and probably save me time and $$.

Thanks

  • Sign in to reply
  • Cancel
  • vsluiter
    0 vsluiter over 11 years ago

    Barry,

     

    You'll probably need both; the gyroscope measures angular velocity (degrees/second), which is good for maintaining a constant angle. You just need to integrate the angular velocity to get the angular position, and that way you can keep the camera at a constant angle with respect to your copter.

    However, that's probably not good enough; the gyros have a small error that adds up while integrating (because integrating boils down to adding up samples), and you probably want to keep the angle constant with respect to the earth, not the copter. That's why people use accelerometers. With an accelerometer you can determine the gravitational vector, i.e., you know where 'down' is. You can use this to correct drift in the integrated gyro angle EXCEPT for rotation around the gravitational vector. That's why people also add magnetometers to correct for that.

    The downside of the accelerometer is that it also measures the acceleration of your copter. So if you move quickly, it will have a wrong picture of where 'down' is. Smart filters (Kalman / extended Kalman) are used to neglect acceleration data during fast movements.

     

    To get back to your question: the most versatile solution is to use Invensenses overprized MPU9150 (available on Sparkfun breakout board). It features a 3D accelerometer, gyroscope AND magnetometer. With the default settings you can read out the raw sensor values, but with special firmware (google for Pansenti MPU9150) you can get orientation data out of the device.

     

    To get even more back to your question:

    You say you're only interested in 'values' in X and Y directions. But what 'values' do you need? linear displacement? Change in rotation? With respect to what? If you've got that clear you can probably find out easier which sensor fits your basic needs.....

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

    Hi Barry,

     

    Victor is right.  You need to firmly establish the vehicles position in space and its attitude with respect of surface coordinants.

    I once implemented the same problem on a helicopter with an infrared camera.

    First you have to establish the helicopters position and then fold those 3D parameters back into earth coordinants so that you can establish how the camera field of view is projected from the Helicopters point of view and then back into earth coordinants.

     

    So while you only need x and y movement commands, you still need to do the 3D space mapping to find out how you can point the camera at the right spot on the earth.  The accelerometer can tell you the acceleration changes, but no the full angular movement.  That is why you need the gyroscope.  It can establish the yaw, pitch and roll deviations needed for the projection calculations.

     

    I implemented these calculations on an old Intel 8085 augmented by an AMD 9511 math coprocessor back in the early 1980's.  So a good high end MCU with floating point math capability should be able to handle these changes in real time unless you plan to perform some really violent aerobatics.

     

    I hope this helps,

    DAB

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

    Wow, thanks guys.  You have given me enough information to digest and google for a while, now.  When I said I was only interested in x and y directions, I meant I was only interested in correcting for pitch and roll.  I don't plan on doing any heavy aerobatics while filming, I am just looking to smooth out the turbulence.  The MPU9150 looks interesting, although it is a bit pricey.  Being a photographer, my programming skills are not at the expert level.  I'm wondering if I will be able to process all of the information that the 9 DOF are going to be throwing at me.  I really thought this would be a lot simpler than it is turning out.  I figured I would just take a signal from the accelerometer and feed it to a servo (or BLDC) on the camera gimbal and everything would be great.  Not so…  I am having fun researching and learning, though. 
    Thanks again, guys and if you have any links or ideas on integrating the 9 DOF into pitch and roll correction signals to the gimbal motors, I will thank you again.

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

    Any thought for the low-tech approach? Mount the camera inside a 3-D gimbal ball with a stabilizing downweight like on those steadi or glidecam rigs? Or have it hanging in a self leveling pod below?  Good luck.

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

    If you're not that tech-savvy, and you do have a gimbal rig, this is interesting as well:http://www.simplebgc.com/eng/

    If you google / ebay on 'MPU605 gimbal camera' you'll find some electronics kits that will make it easy for you to make something like this!

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

    I realize there are some solutions that are probably pre-packaged, but I get a lot of satisfaction out of figuring this stuff out.  I've done several low tech trials, including using an old computer hard drive motor as a mechanical gyroscope and servos controlled by the main controller of the copter.  I am convinced that the sensor needs to be part of the camera mount because that is what needs to be stabalized.  I am having fun tinkering with arduinos, and the skills I am learning will be put to use in my other ideas. One of the ideas is a stepper motor controlled camera mount that moves along a rail in precise increments, for use in time lapse video clips.  And, the other reason I want to figure this stuff out... My daughter is studying EE and I can't let her get smarter than me image

     

    Thanks again guys, you have been very helpful.

    Barry

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

    Hey Barry,

    No problem, just didn't want to push you into the deep corners of EE without letting you know that alternatives exist image

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

    Hi Barry,

     

    I just remembered something else that I did with the camera control that you might want to consider.

     

    Use a smoothing filter on the X and y drive to introduce a limited amount of change in the positioning.  If you try to keep up with real time, you will have a very shaky video as the camera gets banged about during turbulence or maneuvering.  I set up a five degree max per update, which worked out fine for the application I had.  Nothing upsets a pilot or operator more than having the video bounce all over the place.

     

    Just a thought.  Good luck and keep us posted.

     

    DAB

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

    Thanks DAB,

    I am at the stage where I am trying to smooth out all of the movements in the servos due to all of the real time inputs from the sensor.

    Thanks again to everyone,

    Barry

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

    I found this web page to be very helpful.  It helps explain the values read from the acceleration and gyroscope sensors, and how they are combined.

    http://www.starlino.com/imu_guide.html

    • 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