RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    Please do not post a support request without first reading and following the advice in https://retropie.org.uk/forum/topic/3/read-this-first

    Sound Control by Physical button (all time)

    Scheduled Pinned Locked Moved Help and Support
    soundraspberrygpio
    3 Posts 3 Posters 459 Views
    Loading More Posts
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes
    Reply
    • Reply as topic
    Log in to reply
    This topic has been deleted. Only users with topic management privileges can see it.
    • R
      remoitrix
      last edited by

      Hi guys!

      I was searching and I couldn’t find a guide or something like that.

      I have a project and I would like to connect to physical buttons to the GPIO to control the Sound Volume ( one to increase and another to decrease)
      I don’t know if someone knows the way to do it. I mean;

      • if I have to modify a document
      • if I have to install a script
      • and how to do it.

      My proyect is a raspberry pi zero w, connected to a lcd screen by hdmi, I used a GPIO pins to the controls buttons. I have the sound amplified by a Adafruit Max 98357.

      Thanks guys!

      1 Reply Last reply Reply Quote 0
      • ClydeC
        Clyde
        last edited by

        Not exactly what you asked for, but at least in all RetroArch emulator cores you can control the volume with hotkey combinations. It seems to be a not so well known feature.

        1 Reply Last reply Reply Quote -1
        • mituM
          mitu Global Moderator
          last edited by

          You can use a simple python script to catch GPIO input presses and translate them to volume change commands. Here is an example on how to do that - https://www.raspberrypi.org/forums/viewtopic.php?t=222763.

          1 Reply Last reply Reply Quote 0
          • First post
            Last post

          Contributions to the project are always appreciated, so if you would like to support us with a donation you can do so here.

          Hosting provided by Mythic-Beasts. See the Hosting Information page for more information.