Shop OBEX P1 Docs P2 Docs Learn Events
Hitachi H48 C Accelerometer — Parallax Forums

Hitachi H48 C Accelerometer

uosamor007uosamor007 Posts: 21
edited 2012-03-14 13:32 in Accessories
hi, i recently bought the hitachi H48C accelerometer sensor and i am trying to find some sample code to test out, but i am having trouble finding any. any sample code that anyone has will be appreciated
thank you

Comments

  • kwinnkwinn Posts: 8,697
    edited 2012-03-04 08:38
    uosamor007 wrote: »
    hi, i recently bought the hitachi H48C accelerometer sensor and i am trying to find some sample code to test out, but i am having trouble finding any. any sample code that anyone has will be appreciated
    thank you

    There is a propeller driver for it in the OBEX "http://obex.parallax.com/objects/430/". You may want to post the micro/language you are using if that does not help.
  • ajwardajward Posts: 1,130
    edited 2012-03-08 16:18
    I used Beau Schwabe's "H48C Tri-Axis Accelerometer" object from the obex. Modified it a bit to display to the serial LCD. Works just fine!

    Amanda
  • uosamor007uosamor007 Posts: 21
    edited 2012-03-14 13:32
    thank you ajward i am getting positive results thanks to your input. much appreciated. the only issue is i am trying to set the earth as my reference point and i am not sure how to go about doing this in the code. any suggestions?
Sign In or Register to comment.