Author Topic: Angular/orientation sensing - Gyro, accelerometer, or IMU?  (Read 5109 times)

0 Members and 1 Guest are viewing this topic.

Offline Mayo2017Topic starter

  • Contributor
  • Posts: 13
  • Country: 00
Angular/orientation sensing - Gyro, accelerometer, or IMU?
« on: March 09, 2015, 01:53:48 am »
Working on a project right now where I need to measure orientation of a device for processing with a PIC16 micro. Trouble I'm having is that there's a large amount of solution out there for angular measurement, and it's a bit overwhelming when it's not a group of sensor types I've ever worked with. I get the basic principles behind gyros, accelerometers, and combined IMUs, but I just need a nudge in the right direction as to what sort of thing I should be looking for.

I'm looking to measure the device's angular orientation to at minimum a precision of 0,25° - 0,1° or better being ideal. I don't anticipate needing a high-G-capable sensor, expecting a max of 2g on a really bad day, and the update rate doesn't really need to be any better than 1Hz, thought better is of course appreciated. The actual rate of change it'll be experiencing is well under 1°/second, so it doesn't need to be able to do quick updates. I2C-capable is a good thing since it would keep things simple with other devices.

Anyone have anything they've used down at sub-degree resolution without too much trouble? Not looking for someone to go out and find a product for me, just wondering if anyone already had something they knew of, or even what kind of device I should be looking for.  :-//
« Last Edit: March 09, 2015, 03:01:46 am by Mayo2017 »
 

Offline richard.cs

  • Super Contributor
  • ***
  • Posts: 1219
  • Country: gb
  • Electronics engineer from Southampton, UK.
    • Random stuff I've built (mostly non-electronic and fairly dated).
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #1 on: March 09, 2015, 08:06:46 am »
Orientation on which axes and over what kinds of timescales?  An accelerometer can tell you which way is down, gyros can give you relative orientation (conpared to their starting position) over short timescales,  if you need absolute orientation over hours then expect to pay several thousand for the gyros and have some way of setting the initial orientation. At this point an external reference becomes more practical.

I think we need more details of your budget,  application,  etc.
 

Offline hli

  • Frequent Contributor
  • **
  • Posts: 274
  • Country: de
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #2 on: March 09, 2015, 08:33:42 am »
Reference: slaa518a.
Link: http://www.ti.com/lit/an/slaa518a/slaa518a.pdf (Nine-Axis Sensor Fusion Using the Direction Cosine Matrix Algorithm on the MSP430F5xx Family)
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4429
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #3 on: March 09, 2015, 08:59:49 am »
Is this device subject to significant acceleration besides gravity?

If it just needs to know which way is 'down', you can use a 3 axis accelerometer. Several manufacturers make them with I2C interfaces, and they're cheap.

Accuracy might be an issue, though... your best bet might be to pick out the most accurate one you can find, and test it. If you only need 1 Hz update rate, you can at least average many samples to get the necessary resolution, then test it for linearity and drift.

Offline Mechatrommer

  • Super Contributor
  • ***
  • Posts: 11718
  • Country: my
  • reassessing directives...
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #4 on: March 09, 2015, 10:46:31 am »
gyro is to measure angular speed not orientation. acceleratometer is to measure linear acceleration, not orientation. what you are looking for is magnetic sensor... but i'm not sure what accuracy a cheapo one can provide. maybe its propositional to the price.
The Ultimatum of False Logic... http://www.soasystem.com/false_logic.jpg
 

Offline AndyC_772

  • Super Contributor
  • ***
  • Posts: 4429
  • Country: gb
  • Professional design engineer
    • Cawte Engineering | Reliable Electronics
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #5 on: March 09, 2015, 11:09:37 am »
A magnetic sensor will tell you which way is north, not which way is up.

Offline miguelvp

  • Super Contributor
  • ***
  • Posts: 5550
  • Country: us
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #6 on: March 09, 2015, 11:17:17 am »
light pulse and light sensors in the jig.
Sensors hooked to interrupts and a processor that is fast enough and has a clock accurate enough to determine the times.
Once you collect the times then you can calculate the position, orientation etc.

Higher frequency chip for more precision and of course a precise clock to match that precision.
 

Offline mikeselectricstuff

  • Super Contributor
  • ***
  • Posts: 14454
  • Country: gb
    • Mike's Electric Stuff
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #7 on: March 09, 2015, 11:32:41 am »
If you need to know which way is up on something that isn't moving fast or vibrating,  an accelerometer will do it.
For that accuracy  you will probably need to do multi-point calibration.
I used a Freescale accelerometer, I think 14 bit - whatever was the best one they did at the time - to sense the position of the London Eye (big wheel) & dynamically remap the lighting to produce stationary displays regardless of wheel position.
ISTR that with a fixed rotational axis, without calibration it was accurate to a degree or so, but seemed stable enough that you;d probably get quite a lot better with some calibration.
There may be issues with things like offet and gain drift over temperature.

If you're trying to detect level with movement in multiple axes it gets more involved but should still be doable.

Youtube channel:Taking wierd stuff apart. Very apart.
Mike's Electric Stuff: High voltage, vintage electronics etc.
Day Job: Mostly LEDs
 

Offline f5r5e5d

  • Frequent Contributor
  • **
  • Posts: 349
Re: Angular/orientation sensing - Gyro, accelerometer, or IMU?
« Reply #8 on: March 09, 2015, 02:53:38 pm »
0.1 degree sounds challenging when all noise, tempco and drift terms are added up

search did lead to a accelerometer tech new to me: http://www.memsic.com/accelerometers  maybe worth looking at
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf