Max2Play Home › Forums › General Questions on Hardware and Max2Play Versions › [SOLVED] Rotary encoder with IQaudIO Digi Amp
- This topic has 16 replies, 3 voices, and was last updated 7 years, 6 months ago by Tom premium.
-
5. Mai 2017 at 21:40 #28728
Hi
Got the encoder from the Max2Play web shop but I’m not able to get it running…
I have a PI2 with IQaudIO Digi Amp+ and Rotary Plugin installed. Encoder is connected according to IQaudIO guide but volume cannot be controlled by the encoder 🙁
I tried a bunch of different settings, any idea?Please find my current settings below:
#### SQUEEZELITE VERSION ####
Squeezelite Max2Play v1.0.2 based on v1.8.4-726, Copyright 2012-2015 Adrian Smith, 2015-2016 Ralph Irving.#### SQUEEZELITE BUILDOPTIONS ####
Build options: LINUX ALSA EVENTFD RESAMPLE FFMPEG VISEXPORT IR GPIO DSD CONTROLSBS ALSASYNC BLUETOOTHSYNC#### AUDIOPLAYER CONFIG ####
### Configuration of Audioplayers
SQUEEZELITE_PARAMETER=-o hw:CARD=IQaudIODAC,DEV=0 -a 80:4:: -V Digital -Q
SQUEEZESLAVE_PARAMETER=-n plugequal
SHAIRPORT_PARAMETER=-d default:CARD=IQaudIODAC
USE_USB_DAC=0
USE_EQUALIZER=0
SYSTEM_USER=pi
YMPD_PARAMETER=–webport 8081
LMSIP=192.168.178.41#### SQUEEZELITE -l ####
Output devices:
null – Discard all samples (playback) or generate zero samples (capture)
equal
plugequal – Equalizer for plughw:0,0
default:CARD=IQaudIODAC – IQaudIODAC, – Default Audio Device
sysdefault:CARD=IQaudIODAC – IQaudIODAC, – Default Audio Device
dmix:CARD=IQaudIODAC,DEV=0 – IQaudIODAC, – Direct sample mixing device
dsnoop:CARD=IQaudIODAC,DEV=0 – IQaudIODAC, – Direct sample snooping device
hw:CARD=IQaudIODAC,DEV=0 – IQaudIODAC, – Direct hardware device without any conversions
plughw:CARD=IQaudIODAC,DEV=0 – IQaudIODAC, – Hardware device with all software conversions#### SHAIRPORT VERSION ####
2.8.0-openssl-Avahi-ALSA-soxr#### OUTPUT SOUND DETAILS CARD 0 ####
access: RW_INTERLEAVED
format: S32_LE
subformat: STD
channels: 2
rate: 44100 (44100/1)
period_size: 882
buffer_size: 3528#### OUTPUT SOUND DETAILS CARD 1 ####
8. Mai 2017 at 14:28 #28750Hi Tom,
Which instruction have you followed ? Have you installed the Rotary Encoder on the IQaudio plugin ?
Please follow the instruction below:
https://www.max2play.com/en/2017/02/easy-control-with-rotary-encoder-and-ir-remote/
http://www.iqaudio.com/downloads/IQaudIO.pdfAnd if you have any further question, feel free to post it on the forum.
Best Regards,
Mohammad Mbydeen8. Mai 2017 at 19:13 #28757Hi Mohammad
Yes, I followed http://www.iqaudio.com/downloads/IQaudIO.pdf to connect the encoder. Mute is working so far
I also installed the Rotary plugin but the encoder is not working.Settings for Squeezelite are:
Soundcard: sysdefault
ALSA Parameter: 80:4::
CMD line options: -o hw:CARD=IQaudIODAC -V Digital -QAfter squeezelite restart the logfile shows:
#### AUDIOPLAYER CONFIG ####
### Configuration of Audioplayers
SQUEEZELITE_PARAMETER=-o sysdefault:CARD=IQaudIODAC -a 80:4:: -o hw:CARD=IQaudIODAC -V Digital -Q
SQUEEZESLAVE_PARAMETER=-n plugequal
SHAIRPORT_PARAMETER=-d default:CARD=IQaudIODAC
USE_USB_DAC=0
USE_EQUALIZER=0
SYSTEM_USER=pi
YMPD_PARAMETER=–webport 8081
LMSIP=192.168.178.41Can the -o option be used twice in the parameter setting as this is a combination from sondcard- and cmd line options?
Best regards
TOM9. Mai 2017 at 20:47 #28769Hi Mohammad,
here is a picture, hope it helps:
All connected to P6 on the audio board
Volume:
Pin 1 – orange -> Encoder left
Pin 3 – brown -> Encoder right
Pin 8 – red (0V) -> Encoder midMute:
Pin 2 – yellow
Pin 10- green (0V)Best regards
TOM12. Mai 2017 at 11:55 #28810Hi Tom,
According to the picture that you sent, you have the wrong wiring, The GPIO 23 and 24 are used for the rotary encoder. And you can use the GPIO 22 and 25 for the button. Regarding to the ground you should connect it to 0V GPIO, please have a look at the below diagram:
Best Regards,
Mohammad Mbydeen14. Mai 2017 at 23:39 #28838Hi Mohammad,
thank you for your answer. But strange, because that’s exactly what I’ve done. Pin1(GPIO23) from P6 connector, which is the nearest to the chip, is connected to the left pin of the decoder(orange cable on my picture). Pin3(GPIO24) is connected to the right pin of the encoder(brown) and the mid pin of the encoder goes to pin8(0 V) via red cable. Sorry, but I don’t get what’s wrong…
Best regards
TOM15. Mai 2017 at 13:17 #28847Hi Mohammad,
green cable is connected to GPIO 25 (pin 4) now. The volume control is still not working 🙁 As GPIO25 is used for IR control, it doesn’t make sense to connect the switch between pin 2 and pin 4. But anyhow, let’s concentrate on the encoder and volume control. Do you agree the HW setting is ok? If yes, we should take a look on the software settings.
Here is the current configuration:
#### AUDIOPLAYER CONFIG ####
### Configuration of Audioplayers
SQUEEZELITE_PARAMETER=-o sysdefault:CARD=IQaudIODAC -a 80:4:: -o hw:CARD=IQaudIODAC -V Digital -Q
SQUEEZESLAVE_PARAMETER=-n plugequal
SHAIRPORT_PARAMETER=-d default:CARD=IQaudIODAC
USE_USB_DAC=0
USE_EQUALIZER=0
SYSTEM_USER=pi
YMPD_PARAMETER=–webport 8081
LMSIP=192.168.178.41Best regards
TOM17. Mai 2017 at 14:37 #28886Hi Tom,
The Hardware and software settings are right. But could you please describe how the volume control is still not working ? Is there no any sound output ? and is the rotary Encoder Software running with Process ID on the IQaudio plugin ?
Best Regards,
Mohammad Mbydeen17. Mai 2017 at 21:09 #28889Hi Mohammad,
thank’s for coming back. Device is running and volume is controlled by iPeng only. When using the encoder nothing will happen. Mute is working for the time the switch is pushed.
The software for the encoder is installed and process for IQ_rot is running.Best regards
TOM18. Mai 2017 at 10:43 #28897Hi Tom,
Please note that we have tested the rotary encoder for IQAudIO and its working well. Regarding to the Mute button, you have to add -X [gpio_button] in the Sqeezelite commandline, maybe you can try to use another rotary encoder, it could be a hardware malfunction.
Best Regards,
Mohammad Mbydeen18. Mai 2017 at 16:57 #28930Hi Mohammad,
I agree. Can you please send me a new encoder?
Please find my order number from the Max2Play web shop as a reference:
#2000004063Best regards
TOM29. Mai 2017 at 15:20 #29100Hi Mohammad,
thank you for the replacement. The volume control is working now!
Only issue I still have is the mute function. Starting the player with -X 22 and when pressing the mute button, the sound is off and can’t be activated again 🙁
Device restart is needed.Best regards
TOM7. Juni 2017 at 14:39 #29341Hi,
please use GPIO 25 (the IR pin on the Board) and 3V (directly under the GPIO 25 Pin) for the Button and „-X 25“ in the command line settings of Squeezelite. This works as the GPIO needs 3V instead of GND to work. The GPIO 22 seems to be blocked by the internal Mute function of the DigiAMP+.
All the Best,
Stefan -
You must be logged in to reply to this topic.