MobiFlight Community Support

Welcome to the forum for MobiFlight! Feel free to reach out to the community in case you have questions, issues or just want to share great ideas or details about your latest home cockpit project.

You like MobiFlight? Donate via PayPal and support the MobiFlight development. Thanks! 

05/03/2024 - This forum is read-only

The community support for MobiFlight has moved exclusively over to our Discord server. Register for free and enjoy more interactive functions like image and video upload, voice chat. More than 7,000 registered users around the world make it a great experience!

See you on our MobiFlight Community Discord server.

A HUGE Thank You to everyone who participated in the forum, especially obviously to Pizman and Stephan who did an outstanding job over so many years providing an incredible service to the MobiFlight community.

The forum is still providing a lot of good content, hence we keep this information accessible.

icon
Avatar
les
Posts: 21
Hi guys,

can anyone help me out with the wiring on rotary encoders,
I have bought a pack of the ones without the pcb attached,
So I have three pins on one side and 2 on the other,

If someone can relate those pins to the labels clk, dt,sw,+,gnd then I
think I can follow the instructions on the forum to make the various
projects.

thanks

Les
2017-05-29 13:45
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Ask Mr. Google.



CLK = Encoder Pin1
DT = Encoder Pin 2
SW= Push Button
5V = 5 V ( Same Arduino where you set the 3 Data Pins)
GND= Ground ( Same Arduino where you set the 3 Data Pins)

( I Not Use this kind of Encoders.... Maby the High/Low Logic is inverted.... then you have to change the Encoder Pins.... Then DT= Encoder1 and CLK is Encoder 2 Try Out )
Good Luck !
2017-05-29 16:39
Avatar
les
Posts: 21
Hi,

thanks for the reply, I think ill have to get some of the encoders with the circuit board attached, as in your picture,
Looking at google , I need to wire in extra resistors to the ones I have, which seems difficult..

thanks

Les
2017-05-31 13:13
Avatar
pizman82
Moderator
From: ETSI, Germany
Posts: 6010
Supporter
Oh.

i thought you got the KY040 Encoders ! Only this kind need a wireing with PCB and resistors !

If you got a standard Encoder like maby this https://www.reichelt.de/Drehimpulsgeber/STEC12E08/3/index.html?ACTION=3&LA=2&ARTICLE=73923&GROUPID=3714&artnr=STEC12E08&SEARCH=%252A
THEn you not need a resistor.... The Side with 3 Pins is for the Encoder ( Encoder Line 1 , Encoder Line 2 and GRD ) the Side with 2 Pins is for the Push Button (Putton Pin , GRD )

Here simply combine the two GRD and set the 3 Data Pins to 3 Slots on the Arduino ! ( 2 for Encoder, 1 for Button)

Best way : Pleas check WHAT Encoder you got and google for the DataSheet.... "Normaly" all KY040 Encoders are pre Mounted or include the Pcb´s. If you only got the Encoders without PCB i´m pretty shure you got "normal" ones !
Good Luck !
2017-05-31 19:02
icon