Shop OBEX P1 Docs P2 Docs Learn Events
Need help with accelerometer H48C and encoder — Parallax Forums

Need help with accelerometer H48C and encoder

onimenoonimeno Posts: 4
edited 2009-06-22 04:33 in Accessories
Hello, im new with basic stamp. And im using basic stamp bs2p.
I want to know the rpm of my wheel with encoder, the problem is i dont know how to run the encoder program simultaneously with my pwm.
My 2nd question is im using H48C tri axis accelerometer, how to convert counts or milivolts or g to degree?

Thank You very much

Comments

  • FranklinFranklin Posts: 4,747
    edited 2009-06-20 14:09
    The answer to the first question is you will need to split the program between PWM and reading the encoder. You may need to offload the pwm to another device like the pwmpal or the hb-25 in order to get the time to read the encoders but your program and hardware will determine that.
    Second question, read the documentation that came with the device and you may have to polish off some old math books to find the formulas.
    If you have code or formulas for this you can attach them to a post and we can all comment on it for you.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - Stephen
  • onimenoonimeno Posts: 4
    edited 2009-06-22 04:33
    Is there any way to do the first question with DT basic only? Without adding extra hardware?
Sign In or Register to comment.