Forum Rule: Always post complete source code & details to reproduce any issue!
Results 1 to 3 of 3

Thread: Accelerometer Issue

  1. #1

    Accelerometer Issue

    Hi,
    Code needed for a razor imu accelerator. Connects and uploads fine, but does not collect data. Really need some help!
    Thanks
    Attached Files Attached Files

  2. #2
    Senior Member
    Join Date
    Apr 2013
    Posts
    1,908
    You are missing a lot of information for anybody to help:
    What micro board (guessing Teensy but you don't say what version)
    A description or better photo of your connections to the IMU
    Link to the library
    Link to the unit you actually have (sparkfun or another version of that chip?)
    Anything you did to get a library designed for Arduino Zero, SparkFun SAMD21 Breakouts (from program notes) to compile on a teensy
    With your 'connects and uploads fine' are you referring to your Arduino, or the IMU?
    Anything you have done to confirm your micro board is still working can you run blink and does it produce the serial error messages?)

  3. #3
    Senior Member PaulStoffregen's Avatar
    Join Date
    Nov 2012
    Posts
    20,808
    Indeed, so much unknown here. You mentioned the Razor IMU product, but then posted code which looks like it's meant to run on the processor on the Razor board. Of course even which product you have is a bit of guesswork. See how I put that link into this message? Links or exact part numbers are good...

    Assuming you're using I2C, perhaps try File > Examples > Wire > Scanner. It can at least check if the I2C chip is responding. Make sure Teensy is selected in Tools > Boards, because Arduino's Wire lib doesn't have this example. Don't forget to use real pullup resistors for the I2C signals. On normal Arduino the resistors are optional (I2C works with very slow rise times if you omit them) but they are required when using Teensy. I2C on Teensy 3.x doesn't work at all if you omit the pullup resistors.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •