Ah yes, a stream of pulses does not make a word.
I had to build my own cable to hook up the encoder. I could have soldered directly to the pins, but this is more kosh.
Weird DF-11 connector for the Renco encoder.
Did not have the $900 dollar crimper, so I soldered the ribbon cable leads directly to the connector pins, then they snap into the black housing.
I left the pic in largde rez so you can read the digi-key p/n's if you happen to get stuck with this cable problem:
http://vacuumbrain.com/The_Lab/Winder/encoder_cable.jpg
Here is the schematic I used coming out of the encoder.
Just a few changes. There was enough capacitance in the ribbon cable to where adding C according to the RC formula just messed up the symetry of the pulse. With no C, the pulse was very square.
The diagram was right on the Renco site, so a little searching would have saved me a week, but then again, I would have nbot learned anything.
Here is another wire gauge chart I made, I took about 7 differnt charts and took the best stuff from all of them, eliminating the 9 extra dims for thickness, triple build insl, etc.. and extended the gauges down to #16.
Turns per inch will be adjusted as I determine real world values during actual winding.
Every winder has their own binder full of winding data that they take to the grave. Turns per inch, DCR, all that good stuff.
I just hazzarded a guess as to turns per inch from 45 down to 58, as there is no data on the web for these sizes, I guess it varies too much for a fixed number. I just decreased the Lay% by a seat of the pants increment according to dia. So take the turns per inch from 45 on down with a grain of salt. To get turns per inch, you just divide 1 inch by wire dia, then multyply by the Lay factor. The Lay factor is due to the fact that wire varies, and so do windewrs and their machines, so a perfect Lay is not possible. (what?)
Excel:
http://vacuumbrain.com/The_Lab/Winder/awg_wire_data.xls
Now that I have an adjusted turns per inch chart, I can figure out the division constants needed for the different gauges.
The math is fairly easy, the motor puts out 5000 pulses per rev, but the Gecko divides that by ten in order to get the ten microsteps.
So we work with 500 pulses from the dc motor.
The stepper uses 0.9 degrees per pulse, so 360/0.9 = 400 pulses per rev.
So 500/400 gives 1.25 revs of the stepper per every rev of the dc motor.
Figure in the 80:1 lead screw, and were done:
1.25/80 = 0.015625 or exactly 1/16".
We could have done the math this way:
1 1/4 = (5/4) / 80 = 5/320 = 1/16 = 0.015625"
Here is another spread sheet for working out the divider constants.
You just take the turns per inch values and divide by the tuns per inch of the dc/stepper setup to get the fraction of travel that you need for the various gauges:
http://vacuumbrain.com/The_Lab/Winder/pulse_divider_constants.xls
Final results are:
Gauges 29-34 = divide by 2
Gauges 35-37 Divide by 3
Gauges 38-39 = divide by 4
Gauges 40-42 = divide by 5
Gauges 43-44 = divide by 6
Gauges 45 = divide by 7
Gauges 46 = divide by 8
Gauges 47 = divide by 9
Gauges 48 = divide by 10
.Here are some simple divider circuits out of the Mims book:
http://vacuumbrain.com/The_Lab/Winder/divide_a.jpg
http://vacuumbrain.com/The_Lab/TA/Winder/divide_b.jpg