[SOLVED] Rotary encoder with IQaudIO Digi Amp

Max2Play Home Forums General Questions on Hardware and Max2Play Versions [SOLVED] Rotary encoder with IQaudIO Digi Amp

Viewing 17 posts - 1 through 17 (of 17 total)
  • 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 #28750

    Hi 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.pdf

    And if you have any further question, feel free to post it on the forum.

    Best Regards,
    Mohammad Mbydeen

    8. Mai 2017 at 19:13 #28757

    Hi 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 -Q

    After 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.41

    Can the -o option be used twice in the parameter setting as this is a combination from sondcard- and cmd line options?

    Best regards
    TOM

    9. Mai 2017 at 11:41 #28762

    Hi Tom,

    Could you please send us pictures on how did you do the soldering on the IQaudIO card ?

    Best Regards,
    Mohammad Mbydeen

    9. Mai 2017 at 20:47 #28769

    Hi Mohammad,

    here is a picture, hope it helps:

    image

    All connected to P6 on the audio board
    Volume:
    Pin 1 – orange -> Encoder left
    Pin 3 – brown -> Encoder right
    Pin 8 – red (0V) -> Encoder mid

    Mute:
    Pin 2 – yellow
    Pin 10- green (0V)

    Best regards
    TOM

    • This reply was modified 7 years, 7 months ago by Tom.
    • This reply was modified 7 years, 7 months ago by Tom.
    12. Mai 2017 at 11:55 #28810

    Hi 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:

    IQ1
    q2

    Best Regards,
    Mohammad Mbydeen

    14. Mai 2017 at 23:39 #28838

    Hi 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
    TOM

    15. Mai 2017 at 11:17 #28840

    Hi Tom,

    Try to connect the green cable to the GPIO 22 (pin 2) and the red cable to the ground (pin 10), and see if this will solve the problem or not 🙂

    Regards,
    Mohammad Mbydeen

    • This reply was modified 7 years, 7 months ago by Mbydeen.
    15. Mai 2017 at 13:17 #28847

    Hi 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.41

    Best regards
    TOM

    17. Mai 2017 at 14:37 #28886

    Hi 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 Mbydeen

    17. Mai 2017 at 21:09 #28889

    Hi 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
    TOM

    18. Mai 2017 at 10:43 #28897

    Hi 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 Mbydeen

    18. Mai 2017 at 16:57 #28930

    Hi Mohammad,

    I agree. Can you please send me a new encoder?
    Please find my order number from the Max2Play web shop as a reference:
    #2000004063

    Best regards
    TOM

    22. Mai 2017 at 11:33 #28991

    Hi Tom,

    We will send you a new rotary encoder, and you dont have to send the old one back.

    Best Regards,
    Mohammad Mbydeen

    29. Mai 2017 at 15:20 #29100

    Hi 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
    TOM

    7. Juni 2017 at 14:39 #29341

    Hi,

    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

    19. Juni 2017 at 21:29 #29649

    That’s it. It’s working now – thank you for your support!

Viewing 17 posts - 1 through 17 (of 17 total)

You must be logged in to reply to this topic.

Register here