tag:blogger.com,1999:blog-38893335957684232.post886557305174848795..comments2023-01-20T16:43:34.935-08:00Comments on Hardware Hacks: Using a quadrature encoder (rotary switch) with ArduinoDr. Ayarshttp://www.blogger.com/profile/11192509765516630383noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-38893335957684232.post-59500790273160769822014-04-29T13:16:44.800-07:002014-04-29T13:16:44.800-07:00I have used a similar encoder. I came across this ...I have used a similar encoder. I came across this link:<br />http://www.dghacks.com/micro-controller/quadrature_encoders/<br />Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38893335957684232.post-9439724003409550022011-06-04T02:50:43.422-07:002011-06-04T02:50:43.422-07:00Thanks very much for this Eric! For those who are ...Thanks very much for this Eric! For those who are interested, I have designed a breakout board for this encoder: http://www.inmojo.com/store/disassemble-reassemble/item/rotary-encoder-breakout-pcb-only/Dan Thompsonhttps://www.blogger.com/profile/09932336949749833460noreply@blogger.comtag:blogger.com,1999:blog-38893335957684232.post-29613538171576057222010-07-10T09:20:33.457-07:002010-07-10T09:20:33.457-07:00It uses two digital lines, one of which is an inte...It uses two digital lines, one of which is an interrupt. The UpdateRotation() function is triggered when line A goes low, and it checks the status of line B to see which way the step went.Dr. Ayarshttps://www.blogger.com/profile/11192509765516630383noreply@blogger.comtag:blogger.com,1999:blog-38893335957684232.post-2346923533879709282010-07-09T10:58:05.833-07:002010-07-09T10:58:05.833-07:00So does this detect rotation in both directions, u...So does this detect rotation in both directions, using just one interrupt? I've seen stuff about needing two interrupts for some reason...Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-38893335957684232.post-43093168104254637952010-01-24T10:07:00.057-08:002010-01-24T10:07:00.057-08:00Thanks! I was just going through this problem myse...Thanks! I was just going through this problem myself, the interrupt seems like a good solution for a small project.Dr. Craigheadhttp://www.jeffcraighead.comnoreply@blogger.com