Hi there all.
after getting some brilliant help from this forum i have managed to get my arduino to recognise both accelerometers. (addresses 0x68 and 0x69, using AD0 plugged in to the 3.3V pin). My problem now is getting the code to recognise both the accelerometers, receive/accept/ print the data, and then save it to an SD card. The SD card part i’m not worried about, however getting the data to the serial monitor i’m having trouble with.
In some programs like matlab you can print the data by naming the data as a separate variable, and then calling it to the command window/ serial monitor. Is that how i should approach this?
I have found a programme based on Jeff Rowbergs code which prints both but i am unsure on how to modify it to have the results on one line instead of on two, like below;
WorldAcc 0: 53.75 -37.82
WorldAcc 1: -51.95 -49.25
I would like;
WorldAcc: 53.75 -37.82 -51.95 -49.25
I know you can do the above with “OUTPUT_SERIAL.print(”\t");". but i cannot find the second accelerometer data to do this with. Any help would be greatly appreciated as i could do with this done by wednesday if i can pull my finger out.
MPU6050_DMP6.ino (15.5 KB)
MPU6050_DMP6_Multiple.ino (14.1 KB)