Home
Prox / RFID
Verichips
Ladder Logic
[interfacing] †
Tube Joints
Key Code From Photo
SolveSpace (3d CAD)
SketchFlat (2d CAD)
Photographs
Miscellany
Resume / Consulting
Contact Me

LDmicro Forum - Encoder

(you are viewing a thread; or go back to list of threads)

Encoder (by Boris)
ATMega 128
Which is max. speed for LEFT-RIGHT direction of encoder (Error free).
How to connect 24V encoder. Schematics please.
Which cycle time?
Sun Feb 13 2011, 06:55:09
(no subject) (by Jonathan Westhues)
I'm assuming you mean a quadrature encoder, with two digital outputs; so it counts 00, 01, 11, 10, 00, ... in one direction, and the reverse in the other.

With such an encoder, the maximum speed occurs when you get one new code every cycle time. So if e.g. the encoder generates 48 codes (which corresponds to 12 rising edges on a given output) per revolution, and the cycle time is 1 ms, then the maximum speed is one code per cycle, or one code every 1 ms, or 1/48 of a revolution every 1 ms, or one revolution every 48 ms. That's about 20 rotations per second.

I'm not sure what you mean by a 24 V encoder; but if you have two quadrature digital outputs going from 0 V to 24 V, then you could just use two voltage dividers to make 0 to 5 V logic levels for the micro, and connect those to two digital inputs.

An example is attached, with one possible way to decode the quadrature.
Sun Feb 13 2011, 14:04:13, download attachment stepper-encoder.ld
(no subject) (by Boris)
I have Omron 6EB2 encoder 500 Pulses/Revolution and frequency inverter.
I have to control movement of conveyor.
I have to connect them to +24V power supply (control voltage).
If I understood correctly speed must be 1/2 revolution per second?
I will use part for encoder from Your example.
Thanks!
Sun Feb 13 2011, 17:13:30
Post a reply to this comment:
Your Name:
Your Email:
Subject:
(no HTML tags; use plain text, and hit Enter for a line break)
Attached file (if you want, 5 MB max):