Pages: [1]   Go Down
Author Topic: Encoder of motors  (Read 359 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 2
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Hello, Im Abdiel, and I need to read an encoder of a motor with arduino, I have 4 signals,  A,A' and B,B' , my question is, Can I use the arduino board to read an enconder, i heard that is possible with interruptions, but i dont know how to do that, and i dont know if the frequency of the interruptions is enough to read my encoder, What's the frequency of the interruptions, Help me please.
Logged

Massachusetts, USA
Offline Offline
Tesla Member
***
Karma: 201
Posts: 8665
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

If you keep your code short you may be able to get 1,000,000 interrupts per second.  If your encoder is 200 pulses per revolution that would be 5,000 RPM.
Logged

Send Bitcoin tips to: 1L3CTDoTgrXNA5WyF77uWqt4gUdye9mezN
Send Litecoin tips to : LVtpaq6JgJAZwvnVq3ftVeHafWkcpmuR1e

0
Offline Offline
Shannon Member
****
Karma: 199
Posts: 11649
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Those outputs are likely to be differential pairs, so that the A' signal is the inverse of the A signal,
similarly for B and B'.  This is done to allow reliable reception over long cables in a noisy environment.

You may be able to just sense the A and B signals.  You will find many other threads here about
decoding these quadrature encoders, but my first advice would be use a multimeter to see what
voltage levels the encoder outputs (sometimes differential signals are low voltage, sometimes sensors
use open-collector outputs and require external pull-up resistors to get a usable signal.

You can also find out how many transistions per revolution too...  But perhaps you have the model
number and can point us to the datasheet for the encoder?
Logged

[ I won't respond to messages, use the forum please ]

Pages: [1]   Go Up
Jump to: