Andy:
Thank you for the reply. I likely can't do rigid tapping as the Sherline spindle has no reverse. But I'll go with the quadrature encoder. I think I can then turn the spindle backwards without loosing sync. I'll also learn a little about HAL which may let me put an encoder on the mill, but it needs a VFD before it has CNC spindle control.
I spent some time figuring out a Base Period for my computer when I initially set it up. This turned out to be 41666us. I may re-test but this should be OK for calcs. I think I can estimate the max number of slots with:
max # Slots = 60 / (Base Period * RPM * 4 * 2)
Base Period = 41666E-9 s
RPM = 2800
4 pulses per slot (full quadrature)
2 safety factor
If that's true I can use up to 64 slots. So 60 slots would work out well, 6 degrees per slot.
I just ordered several slotted optical switches, Optek OPB370T55. I'm weak on electronics but understand I need resistors on the LED and the phototransistor. The LED current is 50mA so, for a 5v supply, should require at least a 100 ohm resistor? The transistor "Collector DC Current" is 30mA. Using the same logic a pull up resistor 166 ohms (use 220)? A diagram of the circuit looks something like this:
image missing http://www.utopiamechanicus.com/wp-content/uploads/2011/07/pinout.gif
I finished installing the CNC conversion kit from Sherline and hooked up the Gecko 540 driver box to the steppers. Using Stepper Wizard set up LinuxCNC and have motion on both axes. I even have the correct amount of motion and backlash in the +/- 0.001" range. This might work.
I have a mess of wires all over the bench though. So I've decided to cage these in a box before continuing with the encoder (other than ordering some parts). When I get the box together I'll include a couple of pictures.
If anyone has input on the optical sensor circuit I'd like to hear it. Thank you.
Hugh
Klamath Falls, OR