Place the long ends of the header into a solderless breadboard to keep them steady.
We'll be using an Arduino UNO here, but the code will work on a Mega or Leonardo just fine. Most other Arduino compatibles should have no problems either but we only support official Arduinos for code.
- Connect the SCL pin on the breakout to the SCL pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A5, on a Mega it is also known as digital 21 and on a Leonardo/Micro, digital 3
- Connect the SDA pin on the breakout to the SDA pin on your Arduino. On an UNO & '328 based Arduino, this is also known as A4, on a Mega it is also known as digital 20 and on a Leonardo/Micro, digital 2
- Connect the VIN pin on the breakout to 3.3V or 5V on your Uno (5V is preferred but if you have a 3V logic Arduino 3V is best)
- Connect the GND pin on the breakout to the GND pin on your Uno
While most people probably won't need to use the pins below, we've also broken out a few extra pins for advanced users or for special use cases. If you need to use any of these pins, simply hook them up to a GPIO pin of your choice on the Uno:
GINT - The interrupt pin on the L3GD20 gyroscope
GRDY - The 'ready' pin on the L3GD20 gyroscope
LIN1 - Interrupt pin 1 on the LSM303DLHC
LIN2 - Interrupt pin 2 on the LSM303DLHC
- LRDY- The ready pin on the LSM303DLHC
If you are using an MCU or board with 3V3 logic (instead of the 5V logic used by the Arduino Uno), you can still power the 9-DOF with the VIN pin or you can use the 3Vo pin, which will bypass the on-board 3V3 regulator and level shifting:
- Connect Vin or 3Vo on the breakout to the 3.3V supply on your target MCU
- Connect GND on the breakout to GND on the target MCU