Quote:
|
Originally Posted by Conan
I tried attaching the gyro to other analog inputs. I must be doing this wrong (or the gyro is broken). In Kevin's code, the only part I should change to switch the analog input port is the #define in gyro.h, right? I tried switching this from "1" to "2", and now there is NO output. The same thing happened on input port 3.
|
It didn't work because the ADC software, by default, only samples one channel. If you move the gyro to ADC channel 2, you'll need to edit adc.h to sample at least two channels.
-Kevin