Hello,
I am trying to get the encoder KY-040 with SBPD up an running (same
encoder as skywalker posted in post #393). As far as I know the encoder
hast built in pull-up resistors for SW (switch), DT and CLK. SBPD is
running, and I already tried many configurations for gpio ports, with +
connected or not, ... . Enoder is recognized by SBPD, LMS Server is
found automatically, but when I turn the encoder no output appears in
the -v debug screen.


Code:
--------------------
    tc@pCP:~$ sbpd -v e,23,22,VOLU,2
  1629728608.6509 6 sbpd.c,316: Options parsing: Set verbose mode
  1629728608.6512 6 sbpd.c,505: Using builtin button configuration
  1629728608.6512 6 control.c,108: Adding Command PLAY: Fragment ["pause"]
  1629728608.6513 6 control.c,108: Adding Command VOL+: Fragment 
["button","volup"]
  1629728608.6513 6 control.c,108: Adding Command VOL-: Fragment 
["button","voldown"]
  1629728608.6514 6 control.c,108: Adding Command PREV: Fragment 
["button","rew"]
  1629728608.6514 6 control.c,108: Adding Command NEXT: Fragment 
["button","fwd"]
  1629728608.6514 6 control.c,108: Adding Command POWR: Fragment 
["button","power"]
  1629728608.6515 6 GPIO.c,312: Initializing GPIO
  1629728608.6560 6 control.c,406: Rotary encoder defined: Pin 23, 22, Mode: 
Detent, Fragment:
  ["mixer","volume","%s%d"]
  1629728608.6562 6 discovery.c,385: MAC address found: b8:27:eb:0e:12:87
  1629728608.6563 6 servercomm.c,176: Initializing CURL
  1629728608.6644 6 sbpd.c,264: Starting main loop polling
  1629728608.6648 6 discovery.c,238: Found server E900A8C0. A new address
  1629728608.7656 6 discovery.c,349: discovery packet: port: 9002, name: 
LogitechMediaServer, uuid: 4c8f7f40-0a39-49da-8038-9f2eef43e701
  1629728608.7658 6 discovery.c,130: Squeezebox control port found: 9002
  1629728608.7658 6 discovery.c,149: Server address found: 192.168.0.233
  
--------------------


My sbpd-script.sh looks like that:

Code:
--------------------
    #!/bin/sh
  
  # start pigpiod daemon
  #pigpiod
  #pigpiod -t 1
  pigpiod
  
  # give the daemon a moment to start up before issuing the sbpd command
  sleep 1
  
  # load uinput module, then set the permission to group writable, so you don't 
need to run sbpd with root permissions
  sudo modprobe uinput
  sudo chmod g+w /dev/uinput
  
  # issue the sbpd command
  sbpd -d -s e,23,22,VOLU,2
  
--------------------


Thank god i also have a "naked" encoder (
https://www.ttelectronics.com/products/categories/encoders/encoders/en12-vs/
) which work like a charm. With the same ports and the same config the
KY-040 is not working an the "normal" encoder works very well.

As far as I read in the feed, some oter users already got KY-040
encoders up an running. I also tried the posted expample configs, but no
success. I do not have attached any hat at the moment.

Any idea where the problem could be ? Maybe the pullup resistors of the
KY-040 ? 

Thank you for your help
pille


------------------------------------------------------------------------
pille's Profile: http://forums.slimdevices.com/member.php?userid=16070
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