Shop OBEX P1 Docs P2 Docs Learn Events
gyro testing - repeatability — Parallax Forums

gyro testing - repeatability

JavalinJavalin Posts: 892
edited 2011-02-23 06:06 in Propeller 1
Hiya all,

Trying to work on some IMU / filter / type code SPIN code - and trying to think of an easy way to make my gyro rotate X degree's in Y time - i.e. 90 deg in 1 sec - so I can check that my units etc are correct.

Essentially like you would test a accellerometer by tilting it and seeing +/- 1g on the three axis

Any ideas?

James

Comments

  • Heater.Heater. Posts: 21,230
    edited 2011-02-22 06:18
    What you need is a good old fashioned vinyl record player. Then you have a source of continuous smooth rotation at 48 or 33.3 revs per minute. With a really old one up to 78rpm!.

    Now, as it's all rotating it had better be battery powered or the cables will get in a mess.

    You might be able to use a persistence of vision display to get the data out of it as it rotates:)
  • JavalinJavalin Posts: 892
    edited 2011-02-22 06:24
    hiya

    interesting, good idea, Hmmm Record player.... whats that then? ;-)

    its also cabled to external battery and USB to PC - so more difficult :-(

    James
  • Heater.Heater. Posts: 21,230
    edited 2011-02-22 06:53
    A record is a bit like a CD, only better. I know, I know, what's a CD?

    OK, so you are going to need an UPS for the PC and a small concrete mixer to turn everything. Have the concrete mixer full so as to provide mass to smooth out the rotation and get jitter free results.
  • Cluso99Cluso99 Posts: 18,069
    edited 2011-02-22 13:54
    heater: I didn't think record players were all that accurate. You know, the windup variety with a pin for the needle.
    Oh - just realised you meant those later things that used electricity <grin>
  • wjsteelewjsteele Posts: 697
    edited 2011-02-22 14:33
    Cluso99, you silly... how can you possibly use lightning to turn a phonograph??? Next thing you be saying is that we can use the same phenomena to talk at a distance through the aether! Now you're begining to sound like that French Fiction writer... Jules Verne.

    Bill
  • HughHugh Posts: 362
    edited 2011-02-23 03:11
    It all comes down to the frame of reference - I can think of one platform that rotates at a steady rate of once every 24 hours...
  • MagIO2MagIO2 Posts: 2,243
    edited 2011-02-23 06:06
    Is reading the gyro working code?
    In other words: Do you want to test the gyro itself or the other code that processes the gyro data?

    If you wan to test the code around you could simulate the gyro with another COG. For example record the test data of several scenarios to an SD card and play it back for testing.
Sign In or Register to comment.