Reply To: How to Open I2C Bus

Home Forums Forums General discussion How to Open I2C Bus Reply To: How to Open I2C Bus

Mark Williams

2 A) The values already in the code are the calibration data for my BerryIMU. You replace these values with the data from your calibration results.
2 B) I checked both images and that data looks good in both.
2 C)Use the first example.
Run the code with the command below for a few minutes. While it is running rotate the BerryIMU in all directions to try and gather as much information as you can.
pi@raspberrypi ~ $ sudo ./compass_tutorial01 > rawdatauncalibrated.txt

You then need to remove the first and last line before plotting it with Mathematica, you can do this manually or you can use this command;
awk ‘NR>2{ print l} {l=$0}’ calnewtemp.txt > ~/uncalibrated.txt

Mark --

Blip, blop, bloop…