Berry GPS-IMU Accelerometer Issues

Home Forums Forums Technical Support for BerryGPS and BerryGPS-IMU Berry GPS-IMU Accelerometer Issues

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #7347
    Eric
    Participant

    Hi,

    I’m using a Berry GPS-IMU on a Raspberry Pi 2. The gyroscope and the magnetometer are giving me good outputs but I can’t seem to get anything but a constant value from the accelerometer.

    This is my output from sudo /usr/sbin/i2cdetect -y 1:

    0 1 2 3 4 5 6 7 8 9 a b c d e f
    00: — — — — — — — — — — — — —
    10: — — — — — — — — — — — — — — 1e —
    20: — — — — — — — — — — — — — — — —
    30: — — — — — — — — — — — — — — — —
    40: — — — — — — — — — — — — — — — —
    50: — — — — — — — — — — — — — — — —
    60: — — — — — — — — — — 6a — — — — —
    70: — — — — — — — 77

    I ran gyro_accelerometer_tutorial03 and it shows AccXangle and AccYangle at a constant -45 and 45, respectively.

    Do you have any ideas of what the issue is? What can I do to test if the accelerometer is running properly?

    Thank you!

    Eric

    #7348
    PeterP
    Participant

    we need to look at the raw values for the accelerometer.
    What code are you using?

    Peter --OzzMaker.com --

    #7349
    Eric
    Participant

    I’m mainly using the Python code in the python-BerryIMU-gryo-accel-compass folder.

    By raw accelerometer values, you mean ACCx, ACCy, and ACCz as given in the berryIMU.py file, correct?

    #7350
    PeterP
    Participant

    yes, they are the values we need.
    could you place the IMU on a flat service.. don’t move it.. show me what those values are. would need about 50 samples.

    Peter --OzzMaker.com --

    #7352
    Eric
    Participant

    I put in this line of code into the BerryIMU-simple.py file after the “if 1: print” lines.

    if 1:

    print (“ACCx %5.2f \33[1;34;40m ACCy %5.2f \33[1;31;40m ACCz %5.2f” % (ACCx, ACCy, ACCz))

    I’ve run the program 10 times, rebooted, and tried another 10 times with varying run times and each time I get the same constants. ACCx = -24539, ACCy = -24539, and ACCz = 24539.

    #7354
    PeterP
    Participant

    Hi Eric
    it looks like there is something wrong with the accelerometer on your IMU.

    can you please forward your receipt of sale to sales< @ >ozzmaker.com.
    We may have to send you out a new one.

    Peter --OzzMaker.com --

    #7438
    Eric
    Participant

    My supervisor David just sent out a receipt. Please let me know if there’s anything else I can do or if you need any more information.

    Eric

Viewing 7 posts - 1 through 7 (of 7 total)
  • You must be logged in to reply to this topic.

Blip, blop, bloop…