Quadrature encoder and OLED with Arduino
Posted: Fri Jul 08, 2022 12:30 pm
Hello,
I would like to test how an quadrature encoder component works and to show its counter on my OLED.
From hardware point of view everything is fine, because it works nice with Arduino IDE.
I used the code from examples of Rotary Encoder component page:
https://www.matrixtsl.com/wiki/index.ph ... :_General)
I use also a pushbutton from encoder.
When I push it, then it just changeing the value from 0 to 1 and then back to 0 at the next push.
I tried the attached Flowcode file.
In the simulation it works, but in reality, the OLED and Pushbutton works, but the encoder shows no values.
What can be wrong?
I would like to test how an quadrature encoder component works and to show its counter on my OLED.
From hardware point of view everything is fine, because it works nice with Arduino IDE.
I used the code from examples of Rotary Encoder component page:
https://www.matrixtsl.com/wiki/index.ph ... :_General)
I use also a pushbutton from encoder.
When I push it, then it just changeing the value from 0 to 1 and then back to 0 at the next push.
I tried the attached Flowcode file.
In the simulation it works, but in reality, the OLED and Pushbutton works, but the encoder shows no values.
What can be wrong?