Hello, can someone tell me which sensor is read by which analog pin in the ADC section of the ArduIMU code?

For example, it looks like the pitch accelerometer is on pin 0 and the variable mapped to the pitch accelerometer is AN[0].  I can't figure out some of the rest.  Reading analog pin 1 in a test program looks like its giving me the roll accelerometer.  However, when I serial print AN_OFFSET[1]-AN[1] in the arduimu code, the value is a flat zero.

You need to be a member of diydrones to add comments!

Join diydrones

Email me when people reply –

Replies

  • After looking though the board schematics it looks like the x acel = pin 0, y acel = pin 1, z acel = pin 2, z gyro = pin 3, x gyro = pin 6, y gyro = pin 7 where x is pitch, y is roll, and z is yaw.

    When I test the gyro pins 6, 7, and 3 with a simple print analogRead() to serial program, the results are static. Are my gyros broken?

    As a side question, which sensor corresponds to which variable, AN[0] to AN[5] in the arduimu program?
This reply was deleted.

Activity

Neville Rodrigues liked Neville Rodrigues's profile
Jun 30
Santiago Perez liked Santiago Perez's profile
Jun 21
More…