Home › Forums › Forums › Technical Support for BerryGPS and BerryGPS-IMU › Berry GPS-IMU Accelerometer Issues
- This topic has 6 replies, 2 voices, and was last updated 4 years, 11 months ago by Eric.
- AuthorPosts
- June 3, 2018 at 7:35 am #7347EricParticipant
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: — — — — — — — 77I 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
June 3, 2018 at 4:50 pm #7348PeterPParticipantwe need to look at the raw values for the accelerometer.
What code are you using?Peter --OzzMaker.com --
June 4, 2018 at 8:24 am #7349EricParticipantI’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?
June 4, 2018 at 11:12 am #7350PeterPParticipantyes, 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 --
June 5, 2018 at 11:30 am #7352EricParticipantI 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.
Attachments:
June 5, 2018 at 12:19 pm #7354PeterPParticipantHi 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 --
June 27, 2018 at 4:17 am #7438EricParticipantMy 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
- AuthorPosts
- You must be logged in to reply to this topic.