Rotary Encoder HELP
Richard0327
Posts: 2
I am looking for a fast rotary encoder OBJ. I have been unsuccessful in my attemps to write one in Spin that will work accuritly at the speed I need. I believe it needs to be writtin in Assembly for the speed and I do not have the skill to do that yet. Here are my needs. I have an Accu-Coder (Encoder Products Co.) P#7160-0120-S-S-6-D-S-N. This is a rotory encoder with 120 pulses per line A and B output making it a quadriture type 480 count. I will need to know the direction (CW/CCW), the count value and for that value to be resettable to zero dynamically with out loosing any accuracy during that reset. For instance: If I wanted to reset the counter at 176 back to 0 or 893 back to 0. Also a triger pulse consisting of 1 pulse for 1 rotation 480 Count. So in short 3 output values and 1 input value. I would like this running in 1 cog. The running speed for the encoder is MAX 600 RPM = 10 RPS * 480 Pulses = 4800 Hz ro 4.8 KHz. Propeller is running at 80MHz. I could consider this for compensation.
Comments
This one talks about extending to add Speed resolve.
http://forums.parallax.com/showthread.php?117736-Good-Technique-for-getting-encoder-speed
http://obex.parallax.com/objects/search/?csrfmiddlewaretoken=60a3f5cb10ea34e344c0d89b122b4fb3&q=quadrature
Search encoder in OBEX.
Its the first result in the OBEX results
I use it all the time, it is very easy to use.
Harprit.