<div dir="auto">Thanks for that Jean-Pierre.<div dir="auto">I'll be putting something together in the next couple of months that will need encoders.</div><div dir="auto">This discussion has saved me some anguish so thanks to everyone for their input.</div><div dir="auto"><br></div><div dir="auto">Gerry Murray</div><div dir="auto"><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, 11 Aug 2021, 21:31 Jean-Pierre Desrochers, <<a href="mailto:jpdesroc@oricom.ca">jpdesroc@oricom.ca</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div lang="FR-CA" link="blue" vlink="purple"><div class="m_-5341650720504837300WordSection1"><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">For anybody who could be interested..<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">Just found this video yesterday and tried the circuit..<u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><a href="https://www.youtube.com/watch?v=UlehqasO-fo&t=1471s" target="_blank" rel="noreferrer">https://www.youtube.com/watch?v=UlehqasO-fo&t=1471s</a><u></u><u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">Outputs A and B (CD4013) connected to PORTB of a PIC16F1783<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">(RB0 and RB1) using interrupts on change (rising edges).<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">Now I only have to check one incoming pulse on each RB0 & RB1<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">to increment or decrement a counter.<br>Much faster than computing  all the 4 possible states in each encoder step<br>to finally get a result.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">My interrupt uses TIMER1 (1msec steps), RB0 & RB1 on change.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d">No missing counts anymore even rotating fast, on both direction.<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span lang="EN-CA" style="color:#1f497d"><u></u> <u></u></span></p><p class="MsoNormal"><span style="color:#1f497d"><img border="0" width="734" height="901" id="m_-5341650720504837300Image_x0020_1" src="cid:image001.jpg@01D78ECD.CB8A5740"></span><span style="color:#1f497d"><u></u><u></u></span></p></div></div>_______________________________________________<br>
Synth-diy mailing list<br>
<a href="mailto:Synth-diy@synth-diy.org" target="_blank" rel="noreferrer">Synth-diy@synth-diy.org</a><br>
<a href="http://synth-diy.org/mailman/listinfo/synth-diy" rel="noreferrer noreferrer" target="_blank">http://synth-diy.org/mailman/listinfo/synth-diy</a><br>
Selling or trading? Use <a href="mailto:marketplace@synth-diy.org" target="_blank" rel="noreferrer">marketplace@synth-diy.org</a><br>
</blockquote></div>