Shop OBEX P1 Docs P2 Docs Learn Events
About h48c 3-axis accelerometer(I use bs2p24) — Parallax Forums

About h48c 3-axis accelerometer(I use bs2p24)

B.C WangB.C Wang Posts: 4
edited 2013-07-20 12:48 in BASIC Stamp
Hello,
what I do is quad crawler balanced on a board !
its action:the crawler's body will keep level when I tilt board whatever x-axis/y-axis or together simultaneously.
how to calculate the angle in H48C?
use ATN fuunction or arcsin/arccos?

besides,if I want to add proportion control,tell me some advice(I want this crawler respond quickly )
I browsed the file about it on the Internet,but that's method needs to input value!
I want it could not have to input instead set what value first then the quad crawler starts.

Comments

  • FranklinFranklin Posts: 4,747
    edited 2013-07-19 20:53
    Welcome to the forums. Your project sounds interesting, have you developed any code that you are trying yet? There are several ways to increase the response time but they depend somewhat on the hardware you are using and how you are controlling it.
  • FranklinFranklin Posts: 4,747
    edited 2013-07-20 12:48
    Code should be wrapped in [code] tags to keep it's formatting and make it easier to read.
    Also can you better describe "a little strange" and where in your code you think the problem might be comming from?
Sign In or Register to comment.