I am doing a project that turns a lens using a servo motor for about 10mm
and take 10K readings in the interval. When the lens turns, it direct
different light into a detector and I take
reading from the A/D that is connected to the detector. The whole process
should take only about
1-2 seconds or less.
I have 2 ideas.
1. First idea is to move the servo to a position, wait it for settle, and
then take reading; then repeat for 10K times. I suspect this will take too
long, like couple minutes.
Does anyone know how long it takes to move the Servo motor couple um and
settle?
2. Second is to do a scan, start move the motor, get the encoded locations
from the SERVO, and take A/D readings as fast as I can. This solves the
speed
problem, but how would I keep track the location I was in when I took the
reading. Even I have encoded location returned from the SERVO, I still need
to figure out the interval distance between the encoded location and the
actual location
when I took the reading?
I wonder if anyone had a similar design problem, please give me some
suggestions.
Thanks
Andrew
[EMAIL PROTECTED]
--- [rtl] ---
To unsubscribe:
echo "unsubscribe rtl" | mail [EMAIL PROTECTED] OR
echo "unsubscribe rtl <Your_email>" | mail [EMAIL PROTECTED]
----
For more information on Real-Time Linux see:
http://www.rtlinux.org/~rtlinux/