Hello,
I bought a motor with an encoder attached to it. It's an Accu-Coder model 25t/h. ValinOnline.com: Process Control, Filtration, Motion Control & Automation Products
Here's the full model number for the encoder. 25T-05SG-1024-NV1RHV-SMK-S3
I am trying to get the encoder to work with arduino. I want to relate the count to the rotation in angle. Is there some sample code out there that I can test with?
Thank you
Follow the advice given.
How often, when do You want the encoder data to available in the Arduino?
I have a similiar thing in mind.
You'll need additional components since encoder has line driver outputs and the Arduino needs TTL type levels. RS422 receiver chips like the AM26LS32 parts will work in this application.
You do not get angular position from that encoder, only an index pulse at top dead center (the Z channel) and 1024 counts per revolution. It’s up to you to figure out where the shaft is as this type of encoder is designed for velocity, not position applications.
Also be aware that 16MHz AVR will have trouble keeping up with that encoder at higher speeds, above 1000 rpm may be a real challenge but ultimately it depends upon what else the Arduino is doing.
You'll need additional components since encoder has line driver outputs and the Arduino needs TTL type levels. RS422 receiver chips like the AM26LS32 parts will work in this application.
Not as I understand line driver encoder output. The output voltage level will be controlled by Vcc of the device which is shown as from 5-28v. Each output line has an inverse line, but the encoder does not need to be used in any differential mode like with RS422.
If the encoder is run at 5v, A/B outputs can be passed directly to the arduino. The arduino input interrupt pins will need external pulldowns to keep them from floating when the line is not active.