Shop OBEX P1 Docs P2 Docs Learn Events
controlling the HM55B gyroscope — Parallax Forums

controlling the HM55B gyroscope

abdelrazzac10abdelrazzac10 Posts: 4
edited 2007-07-14 13:07 in BASIC Stamp
hi,
I'm using the basic stamp 2sx to control the HM55B gyroscope... unfortunately I couldn't find the appropriate calibration program of the gyroscope ,so I used the program of the BS2 module (CalibrateHm55bCompass.bs2 ),· with only·replacing ' {$STAMP BS2}· at the head of the program by·' {$STAMP BS2sx} ... it seems that the program works, it asked me to point the gyro to 0 degree and to press enter... well nothing happend after pressing enter (nothing changed! it didnt tell me anything) but I suppose that the gyroscope is calibrated...

after calibration, I used a program called "TestCalibratedHM55BCompass.bs2", with also··replacing ' {$STAMP BS2}· at the head of the program by·' {$STAMP BS2sx} ... when I run the program nothing changed on the Windowpane!.. I don't know if we are reading the angle or not! I used another program called "CalibrateHm55bCompass.bs2" but still seeing nothing changing!!! I even used the HM55B view screen program available at the PARALLAX website... still getting nothing...

anyone has experience with this gyroscope? did I go the right direction? any advice?

thank you very much

Comments

  • Bruce BatesBruce Bates Posts: 3,045
    edited 2007-07-10 12:09
    abdelrazzac10 -


    Just quickly looking at one of those programs, it appears as though you should be fine since they use SHIFTIN and SHIFTOUT which won't vary in operation based on processor speed. Just for the record the HM55B is a compass module, not a gyro module.

    Regards,

    Bruce Bates

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
  • abdelrazzac10abdelrazzac10 Posts: 4
    edited 2007-07-10 13:12
    while calibrating the "compass" BS2sx module didnt respond for me! I couldn't see notes like: calibration complete! or something... any idea?
  • Shawn LoweShawn Lowe Posts: 635
    edited 2007-07-10 19:43
    did you change the header to reflect a bs2sx?

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Shawn Lowe


    My last words shall be - "NOT YET!!!"
  • Philip GamblinPhilip Gamblin Posts: 202
    edited 2007-07-14 13:07
    First, in any application the code needs to match the device. This is a compass, if you want code for a gyro, what you have won't work. This link should help

    http://www.parallax.com/dl/docs/prod/compshop/HM55BModDocs.pdf
Sign In or Register to comment.