Thank you for your donation!


Cloudsmith graciously provides open-source package management and distribution for our project.


Rotary encoder guru ?
#3
(09-06-2018, 06:43 AM)+3DRONE7 Wrote: Hi, first ever use of a rotary encoder.... connected 3.3v, GND, gpio 23, and 24.....
Config>audio> and set Rotary encoder to 'on'....   set MPD Config>volume control> software   (sort of counter intuitive as an encoder is a hardware item..???? ......but only options are 'disabled' and 'software')

Encoder works but needs several turns (10+) to go from low to high.... which of the parameters in the settings box do I need to change and to what to get quicker control ?

The encoder has a push switch.... is there a gpio pin to connect to that will enable mute toggle with this ?

Thanks !
bob

Hi Bob,
I´m getting a bit deeper into your issue:
What model of rotary encoder do you use? For the KY-040 the wiring of the five pins is (with pins directing down):

left: GND
2nd left: +3.3V
mid: push switch (SW)
2nd right: data (DT)
right: clock (CLK)

Connecting SW to the proper GPIO pin should enable the push switch.

Assume you`ll ask now: What are the proper GPIO pins? I´m not sure if there are standard pins ofr rotary encoder (like for IR remote control where the standard is GPIO 18 for receive and GPIO 17 for send). You can assign any GPIO pins (pls. refer to the script examples via the links), pls. don´t forget to set the pins to pull-up. The python script on github is an excellent starting point. There you can see also how to assign the rotary pins to certain GPIO pins.
https://github.com/conradstorz/KY040/blo...r/KY040.py

Cheers, AnnaBlume
Reply


Messages In This Thread
Rotary encoder guru ? - by DRONE7 - 09-06-2018, 06:43 AM
RE: Rotary encoder guru ? - by AnnaBlume - 09-06-2018, 09:50 AM
RE: Rotary encoder guru ? - by AnnaBlume - 09-06-2018, 01:13 PM
RE: Rotary encoder guru ? - by Tim Curtis - 09-06-2018, 11:40 PM
RE: Rotary encoder guru ? - by Tim Curtis - 09-07-2018, 01:13 AM
RE: Rotary encoder guru ? - by DRONE7 - 09-07-2018, 03:18 AM
RE: Rotary encoder guru ? - by Tim Curtis - 09-07-2018, 03:42 AM
RE: Rotary encoder guru ? - by fedormil - 09-14-2018, 03:29 AM
RE: Rotary encoder guru ? - by Tim Curtis - 09-14-2018, 04:35 PM
RE: Rotary encoder guru ? - by fedormil - 09-14-2018, 07:01 PM
RE: Rotary encoder guru ? - by Zootalaws - 09-12-2020, 11:43 PM
RE: Rotary encoder guru ? - by Johnathan W. - 02-27-2024, 04:51 PM
RE: Rotary encoder guru ? - by v12nut - 03-03-2024, 12:06 PM
RE: Rotary encoder guru ? - by the_bertrum - 03-04-2024, 09:31 AM
RE: Rotary encoder guru ? - by Johnathan W. - 03-05-2024, 05:09 AM
RE: Rotary encoder guru ? - by the_bertrum - 03-05-2024, 07:51 AM
RE: Rotary encoder guru ? - by steve4star - 03-05-2024, 08:03 AM

Forum Jump: