Testing the Kit Gyro?

What is the easiest way to test the kit gyro to see if it is working?

I tried hooking up a PWM cable to analog input 1, and connecting it to the gyro (white to TW, black to GB, red to 5R) and adding a printf line to user_routines.c to display rc_ana_in01.

I get a constant output of 135 regardless of if I twist the gyro or even have it plugged in.

Does the gyro need to be initialized, calibrated, etc. before it will function at all, is my printf referencing the wrong variable, or am I doing something else wrong to see if the gyro is simply functioning at all?

rc_ana_in01 is a constant. You have to use Get_Analog_Value( rc_ana_in01 ) in order to get the actual analog value.

Ah, excellent. Thanks for the quick reply. I will give it a shot.

Also, constant values from the gyro are a common sign that you’ve wired it incorrectly. Ensure that your wires connects to the pins labeled with a T, not the ones with an R.

Unless of course you wish to read relative temperature off the sensor. We figured this out the hard way last year …