9dof Sensor Question

Hi! Is 9dof sensor can be used on servos or just on monitor? Sorry for my simple question but I can't find any tutorial on using it on servos. I thought it's the same as individual sensors but just built in 1 board. Can I use only the gyro if I want to? Thanks!

Yes, you can treat them as individual chips and use them separately.

Depending on what the sensors are there might be a library out there to make it easier. What Gyro does it use?

it has all this
ITG-3205 - triple-axis digital-output gyroscope
ADXL345 - 13-bit resolution, ±16g, triple-axis accelerometer
HMC5883L - triple-axis, digital magnetometer

Can't find any info on how to wire it, all i see is how to wire it to connect to PC.

What Arduino model do you have? Do you have a link to the exact sensor board you bought?

If it's this one, then look at the diagram on this page to see how to wire it up, there should be a SDA and an SCL pins on your arduino, wire those to the breakout board, then wire ground to ground and finally wire VCC to 3.3v on your arduino (don't wire it to 5v), other boards should be similar but it depends on what you have so be sure to check.
http://www.geeetech.com/wiki/index.php/9DOF_ITG3200/ADXL345/HMC5883L_sensor_breakout

Take a look at the i2cDev (Usage | I2C Device Library) library GitHub - jrowberg/i2cdevlib: I2C device library collection for AVR/Arduino or other C++-based MCUs to start programming with the board.

I think I bought the wrong unit or am i missing something?

this is the exact name "Arduino 9DOF ArduIMU Controller ATmega328 (ACCEL/MAG/GYRO)". Bought it from hobbyking for $32. No SDA and SCL.Thanks for the replies.

Ah I see, afraid I'm not familiar with how to use that board but I'd say you're ok with it.

I think your board is called a 9DOF Razor IMU from http://www.hobbyking.com/hobbyking/store/uploads/957425248X809733X35.pdf which is linked on the hobbyking website. That might help for googling.

I came across this https://dev.qu.tu-berlin.de/projects/sf-razor-9dof-ahrs/wiki/Tutorial which shows how to set it up. It looks like you have to connect Rx on the board to a Tx pin on the arduino and Tx on the board to Rx on the arduino (pin number depends on your arduino model).

Here's another thread that might help.
http://forum.arduino.cc/index.php/topic,131968.0.html

I'll check it. Thanks! :slight_smile: