Home › Forums › Forums › Technical Support for BerryGPS and BerryGPS-IMU › Berrygps-imu magnometer + accelerometer doesnt work
- This topic has 8 replies, 3 voices, and was last updated 5 years, 10 months ago by Mark Williams.
- February 17, 2017 at 8:26 am #6100
So i have soldered the bridge to make magnometer use 1D, bue currently the compass only points at 31 and the accelerometer just doesnt work?
Currently using this for school project any help would be great! Thanks!February 17, 2017 at 11:54 am #6101
what do you mean by 1D?
What code did you use to test your compass and accelerometer?February 17, 2017 at 1:03 pm #6102
Sorry I mean the address from i2cdetect, I soldered the jumper addr2 closed because for some reason it wasnt detecting the magneometer and accelerometer.
I used the code from the git clone provided, i changed the address in the library from 0x1E to 0x1D compiled it and ran it.February 17, 2017 at 2:22 pm #6104
What is the out put from ‘sudo i2cdetect -y 1’?
What is the name of the program you are trying to run?
Do you get any output from the program?February 17, 2017 at 2:50 pm #6105
My pi is at school right now ill get back to you on the i2detect.
I ran the compass tutorial 1 and basically the output for heading was basically 30-40 occasionaly it spikes to 300 or drops to 20. I tried moving it in all directions even with rotating but that doesnt seem to change anything? The results seem to be in the same range no matter how i moved the berrygps-imu.
Ive also ran it with the compass tutorial with compass interface, the needle only pointed in one direction the entire time i rotated or moved the berry.
By the way thanks for the response!July 19, 2017 at 4:38 pm #6702VittorioParticipant
Sorry for my bad english. I have a problem with the Compass.
I tried to move and rotate it several times but without results.
Can you help me please?
Attachments:July 20, 2017 at 6:58 pm #6729
can you please show the raw readings from X,Y,Z on the magnetometer?July 20, 2017 at 8:59 pm #6730VittorioParticipant
Data from compass_tutorial01_basics.
Attachments:July 20, 2017 at 9:26 pm #6732
there looks to be a problem with the IMU, we will have to send another one.
can you please send your order receipt to firstname.lastname@example.org.
- You must be logged in to reply to this topic.