Programming two IMU6050's


hi there all.

after getting brilliant forum have managed arduino recognise both accelerometers. (addresses 0x68 , 0x69, using ad0 plugged in 3.3v pin). problem getting code recognise both accelerometers, receive/accept/ print data, , save sd card. sd card part i'm not worried about, getting data serial monitor i'm having trouble with.

 in programs matlab can print data naming data separate variable, , calling command window/ serial monitor. how should approach this?

i have found programme based on jeff rowbergs code prints both unsure on how modify have results on 1 line instead of on two, below;

worldacc  0:  53.75    -37.82
worldacc  1: -51.95    -49.25


i like;

worldacc: 53.75    -37.82   -51.95    -49.25


i know can above "output_serial.print("\t");". cannot find second accelerometer data with. appreciated done wednesday if can pull finger out.

thanks






quote
i like;

worldacc: 53.75    -37.82   -51.95    -49.25
use serial.print()s data on same line, perhaps "\t" between them output tab between data items, serial.println() final data item move next line ready next output.


Arduino Forum > Using Arduino > Programming Questions > Programming two IMU6050's


arduino

Comments

Popular posts from this blog

Error compiling for board Arduino/Genuino Uno.

Installation database is corrupt

esp8266 (nodemcu 0.9) client.write très lent ???