Table of Contents
AK8975 Magnetometer (Compass)
QMC5883L Magnetometer
Accelerometers
GPS
Ublox Commands
Gyroscope
MPU6050
AK8975 Magnetometer (Compass)
I2C Address: 0x0e
library with code
product
(with GPS running at 38400 baud)
change GPS to 9600 baud
QMC5883L Magnetometer
device can switch between standby mode and continuous mode via writing to registers via I2C
the
mprograms library
supports this
datasheet
explains that reading/writing via I2C is still possible in standby mode
Accelerometers
nice library and sample code for ADXL345
GPS
uC (circuit and c code) with ATGM332d
Ublox Commands
You can get the commands for hot start, cold start, etc. by opening up the
messages
window from the
view
menu
hot start and cold start are in
CFG
under 'RST'
click
show hex toggle
(icon at the bottom) to see the hex values for the command to be sent
cold start: B5 62 06 04 04 00 FF A1 02 00 B0 47
hot start: B5 62 06 04 04 00 00 00 02 00 10 68
warm start: B5 62 06 04 04 00 01 00 02 00 11 6C
Gyroscope
MPU6050
arduino library
which is more popular and seems more sophisticated (in a good way) from Adafruit's
excellent tutorial
some clues
for how to get MPU6050 in cycle mode and maybe use sleep mode for MCU instead of shutting down
a peek
in how to set registers using the MPU6050 library
a discussion
on those pesky interrupts and how the library might not do it correctly
in-depth look at the MPU6050
although basically it's the example code explained, which already seems to ignore its own interrupt routine
getting the arduino to recognize the interrupts
a complete walkthrough without code on motion detection interrupt for MPU6050