Good morning. I've been playing with the quad encoder component. Trying each example. I'd like to use the polling method so I'e been fiddling with a circuit for that on breadboard with odd results. Ive been going back and forward to the example but I can't seem to get it to simulate the way I would expect. The dial turns when I click the arrow to the right but gets to a point where it wont come back and also the count displayed is not incrementing by 1 each time - 2 or 3. Also when it gets above 20 it will come back down and stick at 20. Simulation set to max. I have to reload the example to get the count back to zero.
Because of this randomness I cant tell what the issue is with my own version.
Any ideas?
N
*** Update - Seems to be the same in FC9
Quad encoder
-
- Posts: 265
- http://meble-kuchenne.info.pl
- Joined: Tue Jul 13, 2021 1:53 pm
- Has thanked: 36 times
- Been thanked: 29 times
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: Quad encoder
Hi
It's been a while since I last used a rotary encoder and the WiKi examples worked fine most of the time (if I remember correctly) with one example a little troublesome. I put that down to me / my setup.
I used a KY040 and the bounce on them could take you into orbit...... so it's easy to understand you not reading just a single click. Not had one refuse to count though.
I might be able to have a play with one later tomorrow, if so I'll grab the WiKi files and see.
Regards
It's been a while since I last used a rotary encoder and the WiKi examples worked fine most of the time (if I remember correctly) with one example a little troublesome. I put that down to me / my setup.
I used a KY040 and the bounce on them could take you into orbit...... so it's easy to understand you not reading just a single click. Not had one refuse to count though.
I might be able to have a play with one later tomorrow, if so I'll grab the WiKi files and see.
Regards
Re: Quad encoder
The simulation doesn't work for me straight off the bat. I'd made up a circuit on breadboard to test - couldn't get satisfactory outcome so downloaded the polling example form wiki and it wont simulate properly either
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: Quad encoder
Hi
I downloaded the three examples and found they simulate OK for me. However I notice that you can't change "pointer" style and although you can "rotate" the pointer to any position, the count doesn't follow (you need to use the buttons).
Regards
I downloaded the three examples and found they simulate OK for me. However I notice that you can't change "pointer" style and although you can "rotate" the pointer to any position, the count doesn't follow (you need to use the buttons).
Regards
Re: Quad encoder
the result using the buttons for me doesnt produce a single increment each time (or decrement) and can jump by 3 or 4 but thats not reliable either - today it incremented to 4 and wouldn't go any higher. No rotation of the knob works
-
- Valued Contributor
- Posts: 1528
- Joined: Thu Dec 03, 2020 10:57 am
- Has thanked: 353 times
- Been thanked: 549 times
Re: Quad encoder
Hi
Stupid question, but are you up to date with version and full database?
Jumping by such suggests it is reading multiple key presses (or missing) Have you tried slowing the simulation down and looking at the variables as the chart progresses?
Regards
Stupid question, but are you up to date with version and full database?
Jumping by such suggests it is reading multiple key presses (or missing) Have you tried slowing the simulation down and looking at the variables as the chart progresses?
Regards