WHall
03-09-2010, 12:37 AM
Hi all,
I'm continuing to work with my high altitude balloon project, will soon test a continuous rotation servo with a wheel encoder (eight reflective stops for simplicity) and the QTI sensor to read the reflected light.
I'm also thinking about using a small DC motor and US Digital with shaft encoder (E8P) to accomplish the "rotate 90 degrees, stop, repeat in 5 - 7 seconds" motion I previously described at http://forums.parallax.com/forums/default.aspx?f=10&m=426909&g=427481#m427481. Thanks for the suggestions! I've read Phil's thread http://forums.parallax.com/forums/default.aspx?f=5&m=169803, which has been helpful. Information about the Nubotics Wheel Watcher kit and quad encoder, which I understand can be used with the BS2 (monitoring only one channel's output), has contributed to my understanding as well.
My question: can I get away with using a BS2 (and no coprocessor), read around 200 pulses/revolution from the motor/encoder set up and give a stop command in that time frame? A main routine will monitor a photoresistor that will signal (after a camera flash) that it's time to turn the servo or DC motor. That's the only thing that will be happening in code. I like this solution because it eliminates some of the environmental factors (extreme cold, passing through troposphere and high wind) that might affect a semi-exposed IR sensor and the code wheel it must read.
I'd really appreciate anyone's experiences using the US Digital encoder (or any shaft encoder) with the BS2!
I'm continuing to work with my high altitude balloon project, will soon test a continuous rotation servo with a wheel encoder (eight reflective stops for simplicity) and the QTI sensor to read the reflected light.
I'm also thinking about using a small DC motor and US Digital with shaft encoder (E8P) to accomplish the "rotate 90 degrees, stop, repeat in 5 - 7 seconds" motion I previously described at http://forums.parallax.com/forums/default.aspx?f=10&m=426909&g=427481#m427481. Thanks for the suggestions! I've read Phil's thread http://forums.parallax.com/forums/default.aspx?f=5&m=169803, which has been helpful. Information about the Nubotics Wheel Watcher kit and quad encoder, which I understand can be used with the BS2 (monitoring only one channel's output), has contributed to my understanding as well.
My question: can I get away with using a BS2 (and no coprocessor), read around 200 pulses/revolution from the motor/encoder set up and give a stop command in that time frame? A main routine will monitor a photoresistor that will signal (after a camera flash) that it's time to turn the servo or DC motor. That's the only thing that will be happening in code. I like this solution because it eliminates some of the environmental factors (extreme cold, passing through troposphere and high wind) that might affect a semi-exposed IR sensor and the code wheel it must read.
I'd really appreciate anyone's experiences using the US Digital encoder (or any shaft encoder) with the BS2!