Voting resources, early voting, and poll worker information - VOTE. ... Adafruit is open and shipping.
0

rotaryio and motor encoder
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

rotaryio and motor encoder

by bodat86 on Sun Oct 11, 2020 9:55 am

I am considering using a Metro M4 with Circuitpython to read a motor encoder that will have a maximum of 6,600 pulses per second. This includes both A and B signals. Will that be too much for rotaryio to read?

bodat86
 
Posts: 15
Joined: Sun Jul 01, 2018 5:10 am

Re: rotaryio and motor encoder

by tannewt on Mon Oct 12, 2020 5:49 pm

The Metro M4 should be ok. rotaryio uses an interrupt to track the position which takes CPU cycles. The CPU runs at 120 megahertz which is 120,000,000 cycles per second. 6600 interrupts will have ~18000 cycles per interrupt which should be plenty.

tannewt
 
Posts: 1837
Joined: Thu Oct 06, 2016 8:48 pm

Re: rotaryio and motor encoder

by bodat86 on Mon Oct 12, 2020 7:21 pm

Thank you!

bodat86
 
Posts: 15
Joined: Sun Jul 01, 2018 5:10 am

Please be positive and constructive with your questions and comments.