EDIT*** I have a "STEC11B03 ALPS" rotary encoder and I want a python script to output the same signal to the circuit as the rotary encoder does when turning. I want the script to do the same thing as the rotary encoder by increasing or decreasing a value.
big noob here. I'm doing a project with my RPI where the goal is to control some buttons and dials from Tkinter. I need some help to control some rotary encoders. I want to "turn" the dials without touching the dials.
(*Slightly irrelevant information) I have made a code made of 8 momentary buttons that activates 8 different relays in Tkinter. The relays NC and COM are connected to the two terminals of the buttons and when the relay is activated the circuit is connected by "by passing" the button which works great.
(Relevant information) Now I am trying to control the dials in Tkinter which are made of rotary encoders. I am wondering if i should just let them be and use my hands and turn them like an animal but it would be cool if I could press a button on a screen and the rotary encoder gets "turned". Another similar project would be controlling the volume dial that is connected directly to a speaker through an RPI, to set the volume through a Tkinter interface instead of turning the dial that is fitted onto the speaker.
I have thought about fitting a servo motor to the dial and turning it that way but i wonder if there's a more elegant way to do it without any moving parts.
Does anyone now of someone who made a similar project or if it is possible to control a rotary encoder through a Tkinter interface at all?
I understand if it's alot to ask but figured I might as well. All the best.
Ps. I can post my code that is made of the momentary buttons but I don't know how relevant it is to this. Let me know if it would help to see the current code.
Pss. articel number of the rotary encoder "STEC11B03 ALPS"