Reading Accelerometer/Magnetometer/Gyroscope with I2C in Max 7

Andres Vargas's icon

Hi guys!

I need some help with this project.... i'm trying to read data from a Adafruit Breakout board wich consist of a L3GD20 gyroscope and a LSM303 accelerometer/magnetometer connected to an Arduino Uno board, which shows info in the arduino's serial monitor, but i haven't found any information about the I2C protocol working with Max/MSP, so i was wandering if some of you have any info about this. I've tried the Maxuino approach but i haven't had any success

Thanks to anyone that can help i any way

hz37's icon

Surely if you can put the sensor data on the serial bus, you can be oblivious about the i2c protocol and use Max' [serial] object to read the data? The Adafruit L3GD20 library handles the communication between the board and the Arduino. The Communications Tutorial 2: Serial Communication (in your Max reference tutorials) explains how to transmit more than one number from an Arduino to Max via the [serial] object. Good luck!

Andres Vargas's icon

Hello HZ37, you method worked perfectly, thak you very very very much!