Shop OBEX P1 Docs P2 Docs Learn Events
accelerometer and gyroscope - Page 2 — Parallax Forums

accelerometer and gyroscope

2»

Comments

  • trannhtrannh Posts: 24
    edited 2010-04-16 15:31
    How do you determine which frequency to sample at? Ideally, what I want is to get readings as the person tested is walking. How do I determine which is the best possible frequency for my bs2px uC? What would you use?
  • SRLMSRLM Posts: 5,045
    edited 2010-04-16 21:40
    You don't really have much control over the sampling frequency, at least not directly. I'd just go with as fast as possible, and sort it all out later. You can, of course, slow it down but I don't see why you would want to. Basically what your program will consist of is collecting the data from the two sensors, sending to the computer, and repeating as fast as possible.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Powered by enthusiasm
  • trannhtrannh Posts: 24
    edited 2010-04-17 17:33
    Do I need to connect the serial port to the BS2px with any wire? Also, when I connect the battery, do I need a wire to connect the power side of the battery to the Vin pin and the ground terminal of the battery to the ground pin of the BS2 px or does the BS2 carrier board already do that?
  • SRLMSRLM Posts: 5,045
    edited 2010-04-18 01:59
    You'll need to add a USB to serial converter in between to connect the USB. Other than that, please take a look at the documentation provided with the products. The schematic spells things out pretty clearly.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Powered by enthusiasm
Sign In or Register to comment.