- Joined
- Dec 18, 2019
- Messages
- 7,503
I'm just getting used to this Teensy. So playing around with creating a hopefully known frequency sweep. That way I could know how many counts I am supposed to have, which is good for testing. A easy spinning pot would also be good for testing more random changes, along with a reversal switch.Nice progress. For software testing one might want a knob adjustable rate, but a sweep is useful.
I was looking at the Spindle Encoder. The one I have appears to have Open Collector outputs, so perhaps strong pullups to 3.3V could be used, avoiding a level shifter altogether. Might be worth testing. With proper cabling and grounding it might not be necessary to go to receivers or differential signaling.
You inspired me to take a look at the encoder. My Omron E6B2-CWZ6C has open collector outputs! However, I have to power the encoder with 5V-24VDC. So I could power the encoder with my 24V supply, but use pull ups to the Teensy 3.3V supply. I'm guessing a value of 100 ohms would be ok for the pull up. The Omron will sink 35mA max. (3.3-0.4)/100 = 29mA, which is good enough. Jury is still out whether there will be signal integrity issues... For at least the cheapo stepper driver, I can use some 2n2222 transistors. I may use bus drivers to drive the transistors, but I will start out with a direct drive of the transistor when everything is local to my bench.
Starting to look at the quadrature decoder now... Doesn't look as hard, but, you know how that goes... Might use the little stepper to drive the Omron and to read out it's position. Of course the shafts are the wrong size, but that is fixable.
Need another terminal block adapter for my second Teensy, and will make a plate to bolt down both Teensy's. Right now there's nothing to restrain anything and my scope probes can drag the whole assembly off the desk! Things will only get worse when more things get plugged together.