View Single Post
  #5   Spotlight this post!  
Unread 15-02-2005, 07:19
Jeff G Jeff G is offline
Registered User
#0648
 
Join Date: Nov 2004
Location: Quad Cities, IL & IA
Posts: 5
Jeff G is an unknown quantity at this point
Re: Using gyro.c with other analog sensors no go

Quote:
Originally Posted by Kevin Watson
Did you read the readme.txt file. No? Well, here's a paragraph that might interest you:

This software makes the assumption that when it's running, it
solely controls the analog to digital conversion hardware and
that only the gyro, on analog input one, is being sampled.
Calling Disable_Gyro() will disable the gyro software and allow
you to use the ADC for other purposes.

One way around this is to double the timer 2 interrupt rate and then interleave your ADC measurements within the timer 2 ISR. If there's interest, I can modify the code to include accelerometer measurements too.

-Kevin
Can we not simply use a standard analog input for the gyro? Why is it necessary to use the ADC as set up in the example code?

Thanks - Jeff