skywalker wrote: 
> Hi,
> 
> i have this rotary encoder AZDelivery
> KY-040(https://www.amazon.de/gp/product/B079H3C98M/ref=ppx_yo_dt_b_asin_title_o01_s00?ie=UTF8&psc=1)
> and i conneted
> GND to PIN 25
> + to PIN 1
> SW to PIN 29 (GPIO 5)
> DT to PIN 37 (GPIO 26)
> 
> 

I have the same encoder.  It works properly for volume control, and I
have the central push button configured for play/pause.

I have it connected as follows:
GND to pin 6 (GND, so your pin 25 should also be fine)
+ to pin 1 (3V3)
SW to pin 37 (GPIO26: SW is the pin for the central push button)
DT to pin 38 (GPIO20: DT is for one direction of the rotary encoder)
CLK to pin 40 (GPIO21: CLK is for the other direction of the rotary
encoder)

With these connections I use the following sbpd commands:
e,21,20,VOLU,2
b,26,PAUS,2,0,STOP,500

I use pigpiod -t 0 -f -l -s 10


------------------------------------------------------------------------
chill's Profile: http://forums.slimdevices.com/member.php?userid=10839
View this thread: http://forums.slimdevices.com/showthread.php?t=107001

_______________________________________________
diy mailing list
[email protected]
http://lists.slimdevices.com/mailman/listinfo/diy

Reply via email to