Shop OBEX P1 Docs P2 Docs Learn Events
Hitachi H48C 3-axis accelerometer module. — Parallax Forums

Hitachi H48C 3-axis accelerometer module.

Tom PTom P Posts: 97
edited 2007-10-26 21:42 in General Discussion
I have begun some experimenting with the Hitachi H48C 3-axis accelerometer module.
I have been looking at the H48C_3-axis.Bs2 program and would like some help in modifying the program so I can light an LED when X or Y -channel g-force has exceeded .5g. Essentailly I want to make an alarm based on changes

Post Edited By Moderator (Joshua Donelson (Parallax)) : 10/23/2009 4:34:41 AM GMT

Comments

  • FranklinFranklin Posts: 4,747
    edited 2007-10-26 20:11
    A subject line would be helpful to all. Also if you could attach the code you are running it would help those of us (ME) to look at the code without having to search for it (which I'm not going to do)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • DgswanerDgswaner Posts: 795
    edited 2007-10-26 21:42
    I haven't looked at the code in a while but the demo gives values in G's and tilt ..... I think just add a IF statement... if G's > X then do something.....

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    A complex design is the sign of an inferior designer. - Jamie Hyneman, Myth Buster
Sign In or Register to comment.