Member Since: March 16, 2009
Country: United States
Now I'm wondering if anyone has tried to use more than one of these boards with a single Arduino? I have heard that there is a way to daisy chain them on the I2C bus, but there has to be a way to deal with the fact that the individual chips have the same addresses.
I did get it to work using the 1.3.3 Razor_AHRS code. I may have edited the post above after you saw it.
For anyone else still struggling with this board, I got the Razor_AHRS 1.3.3 code from here: https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/files to work by changing around the values in the SENSOR_SIGN array to {-1,-1,-1,1,1,1,1,-1,-1} in Razor_AHRS.ino and switched the buffer addresses for magnitom[0], magnitom[1] in Sensors.ino.
That has been a source of confusion. When I looked at the data sheets, it looked like the Y direction was toward the hole and X was to the right for the Accel and the Gyro, but the Mag has the Y to the right and X toward the 4 hole row.
Got it! I changed around the values in the SENSOR_SIGN array to {-1,-1,-1,1,1,1,1,-1,-1} in Razor_AHRS.ino and switched the buffer addresses for magnitom[0], magnitom[1] in Sensors.ino.
Works as expected now.
I'm having the same problem with the 10724. It appears that the MAG is rotated 90 deg CCW on the board compared to the Razor so that X is now Y and Y is -X. I've tried changing the SENSOR_SIGN value and the magnetom[] axis but I am still missing something. Any help?
Still not getting it. The 9DOF-Razor test seems to indicate that I am getting readings from all three sensors.
Is there a good write up on what the numbers represent and how to use them?
Figured it out. Seems to work. Now to figure out how to get the VPython example working as described for the Razor here: http://pranjalchaubey.wordpress.com/2011/04/14/razor-imu/
OK did that. Got it to load, now what? I have no idea from the documentation as to what I should expect to see or where. I'm using a Duemilanove.
Here is the console output from the upload:
C:\Documents and Settings\Thomas Phillips\Desktop\9DOF-Razor-IMU-Test-Firmware>make program_serial C:\progra~1\Arduino\arduino-1.0\hardware\tools\avr\bin\avrdude -p atmega328p -P COM4 -c stk500v1 -b 57600 -CC:\progra~1\Arduino\arduino->1.0\hardware\tools\avr\etc\avrdude.conf -U flash:w:main.hex
avrdude: AVR device initialized and ready to accept instructions
Reading | ################################################## | 100% 0.05s
avrdude: Device signature = 0x1e950f avrdude: NOTE: FLASH memory has been specified, an erase cycle will be performed
To disable this feature, specify the -D option.
avrdude: erasing chip avrdude: reading input file "main.hex" avrdude: input file main.hex auto detected as Intel Hex avrdude: writing flash (13370 bytes):
Writing | ################################################## | 100% 6.70s
avrdude: 13370 bytes of flash written avrdude: verifying flash memory against main.hex: avrdude: load data flash data from input file main.hex: avrdude: input file main.hex auto detected as Intel Hex avrdude: input file main.hex contains 13370 bytes avrdude: reading on-chip flash data:
Reading | ################################################## | 100% 5.64s
avrdude: verifying ... avrdude: 13370 bytes of flash verified
avrdude: safemode: Fuses OK
avrdude done. Thank you.
Is there any example code available for this board yet? I seem to need a jump start.
No public wish lists :(