RetroPie forum home
    • Recent
    • Tags
    • Popular
    • Home
    • Docs
    • Register
    • Login
    1. Home
    2. Tags
    3. gpio
    Log in to post
    • All categories
    • MeduZaPaTM

      Raspberry PI GPIO plugin for LEDSpicer

      Watching Ignoring Scheduled Pinned Locked Moved Ideas and Development led gpio ledspicer pwm gpio pwm
      1
      1 Votes
      1 Posts
      403 Views
      No one has replied
    • C

      Setting ServoStik using python and GPIO pins

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio python servostik
      8
      0 Votes
      8 Posts
      955 Views
      flagrant99F

      I just got it working with the following python script using rgbcommander's servostik linux command line. Hardware mode is not needed.

      http://users.telenet.be/rgbcommander/

      from gpiozero import Button from subprocess import check_call from signal import pause #Functions def onGpio3Open(): #Arcade 1up switched to OFF check_call(['sudo', 'poweroff']) print("gpio3Released") check_call(['sudo', 'poweroff']) def onGpio17Closed(): print("gpio17Pressed") check_call(['sudo', './SetServoStik', '8']) def onGpio27Closed(): print("gpio27Pressed") check_call(['sudo', './SetServoStik', '4']) #Main Execution Starts Here gpio3Btn = Button(3) gpio3Btn.when_released = onGpio3Open gpio17Btn = Button(17) gpio17Btn.when_pressed = onGpio17Closed gpio27Btn = Button(27) gpio27Btn.when_pressed = onGpio27Closed pause()
    • C

      RPI4+GPIO acting strange

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support rpi4 gpio mkarcadejoystic jstest
      10
      0 Votes
      10 Posts
      1k Views
      G

      @gogangdong said in RPI4+GPIO acting strange:

      4.5.13

      The hardware was wired to the GPIO for the wiring of the mk_arcade_joystick_rpi and the mountains and joysticks, Sanwabuttons a,b,x,y,l,r,start, and select buttons to fit the GPIO and install 4.5.13 (https://files.retropie.org.uk/images/weekly/).B,Y,Other buttons on joystick did not work.
      mkarcadejoyystick 0.1.7 version(https://github.com/RetroPie/RetroPie-Setup/blob/master/scriptmodules/supplementary/mkarcadejoystick.shSetup/blob/master/scriptmodules/supplementary/mkarcadejoystick.sh

      In the input setting of the retropie, say you found the GPIO controller and enter the keystroke (if you press Y, GPIO).They say they found the controller and enter the keystrokes. The joystick and other buttons do not work and the key setting sets the joystick to the top and B buttons, and the other buttons do not work.)

    • C

      GPIO problem.

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio retropie 4.4.4
      3
      0 Votes
      3 Posts
      226 Views
      C

      @mitu said in GPIO problem.:

      DL2 underneath to detect the joysticks

      Hi mitu and thank for your reply.
      I have installed also the latest retropie release but I have the same issue.
      I'll give a try to install SDL_jstest to see what it says.
      Thank you.
      Bye,
      Cri

    • M

      Vice 64 Joystick Config File

      Watching Ignoring Scheduled Pinned Locked Moved General Discussion and Gaming vice 64 c64 binding gpio config file
      5
      0 Votes
      5 Posts
      506 Views
      V

      @monkeybus I remember when Compute! published Turbotape, it was unbelievably fast. Here are the technical details for those interested.

      https://www.atarimagazines.com/compute/issue57/turbotape.html

    • MaMikeeM

      Best Practice GPIO shutdown switch

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support shutdown gpio controller gpio pi 3
      3
      0 Votes
      3 Posts
      453 Views
      cyperghostC

      @mitu There is no modification needed at all you can use multi-switch --generic command to offer an easy setup.

      @MaMikee Please install raspi-gpio at first with sudo apt install raspi-gpio command. There are tons of other possibilities available ;)

    • ohmycommodoreO

      GPIO ribbon cable advice

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio
      2
      0 Votes
      2 Posts
      137 Views
      stoney66S

      I would think you would want male to female, something like the below though not sure if there is anything specific to this cables pinout, as long as they are matched 1 to 1 then I assume it would work. Also the male end will hopefully fit over the Retrotink board pins.

      https://www.amazon.com/UCTRONICS-Breadboard-Connection-Raspberry-Display/dp/B07D991KMR

      The c64 was the greatest computer ever!

    • R

      Sound Control by Physical button (all time)

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support sound raspberry gpio
      3
      0 Votes
      3 Posts
      467 Views
      mituM

      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.

    • K

      N64 Games use GPIO Pins

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio led strip n64 problem
      2
      0 Votes
      2 Posts
      248 Views
      mituM

      @kfleischmann This seems like a custom build - not something standard in a RetroPie installation. Check the onstart/onend script, they might have something to do with it - https://retropie.org.uk/docs/Runcommand/#runcommand-onstart-and-runcommand-onend-scripts.

    • N

      GPIO Disabled

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support stick gpio joystick arcade
      2
      0 Votes
      2 Posts
      364 Views
      mituM

      @naughtjosh How did you connect the controller to the GPIOs ? Did you install any of the additional drivers needed for such setup - https://retropie.org.uk/docs/GPIO-Modules - ? Simply connecting a few wires to the GPIO pins is not enough.

      Ideas that don't require any downloads?

      Set-up your PI on a location where you have internet, just in case you'll need a driver to be downloaded or use your phone as a WiFi access point.

    • J

      LED Status light hooked up to Tx GPIO pin. Can I make it blink?

      Watching Ignoring Scheduled Pinned Locked Moved Projects and Themes led status gpio
      1
      0 Votes
      1 Posts
      670 Views
      No one has replied
    • A

      GPIO Devices not detected

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support gpio joystick buttons hardware detection
      2
      0 Votes
      2 Posts
      650 Views
      F

      Sounds like retrogame isn't installed, or it isn't loading when booting, or isn't configured properly.

      If you open the terminal (press F4) and push your buttons and see if the corresponding letters appear.

      If you see no letters when moving the joystick or pushing buttons, then retrogame isn't working

    • L

      Connect new NES Controller to Raspberry pie

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support nes controller gpio
      2
      0 Votes
      2 Posts
      133 Views
      mituM

      As with the old controller, there's no 1:1 mapping between the cables/wires and the actual buttons - you can't wire it directly to the GPIO and expect it to automatically work, you'll need a driver.
      When you're talking about the 'new' NES controller, do you mean the one for the NES Classic Mini or the one for the Switch ?
      The controller for the NES Classic Mini has the same port type as a Wii (U) Classic controller - see here and here for details.

    • P

      GPIO Controls Not Registering After Launching Games

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support cm3+ gpio controls controller python script
      7
      0 Votes
      7 Posts
      850 Views
      mituM

      @pengu1n said in GPIO Controls Not Registering After Launching Games:

      [WARN] Input device ID 3 is unknown to this libretro implementation. Using RETRO _DEVICE_JOYPAD.

      That's because of the RA's configuration - try resetting the configuration to default by copying the retroarch.cfg.rp-dist files over the retroarch.cfg in the /opt/retropie/configs/all/ folder.

    • M

      Adafruit 5.0" non touch tft with kippah not displaying anything

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support adafruit adafruit gpio gpio screen issues display issue
      1
      1 Votes
      1 Posts
      347 Views
      No one has replied
    • M

      getting the GPIO buttons on the 3.2" screen to switch between HDMI and GPIO screen

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support portable builds gpio python buttons
      2
      0 Votes
      2 Posts
      311 Views
      M

      @md201 Looks like my directories were off. Adding the simple /home/pi/switch to all os.system commands did the trick............ :(

    • F

      Retropie configure 2 GPIO joysticks

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support retropie retrogame adafruit gpio gpio gpiooner
      9
      0 Votes
      9 Posts
      3k Views
      LolonoisL

      @Freddy00 Driver installation with sudo ~/Retropie-Setup/retropie_setup.sh should work. If you want to review the compile log see zless ~/~/RetroPie-Setup/logs/rps_2019-03-15_194311.log.gz when back on commandline (your date and time may vary).

      You can type lsmod alone, you should spot the mk_arcade... driver loaded.
      (If the command still is not found you should install kmod, but it should be already there, so there should no need to issue sudo apt-get install kmod.

      Then, and only then when lsmod shows the module, proceed with https://github.com/recalbox/mk_arcade_joystick_rpi#auto-load-at-startup edit the mk_arcade_joystick.conf and change the map=1 to map=1,2. Save the file, reboot and then you can configure your joysticks with emulationstation.

      If you use the retropie_setup.sh method you should succeed. If not please do post the build log as noted above.

      PS: I would refrain from following the Github tutorial from A to Z, a) it is tailored towards another Retro-Distro (Recalbox), b) if you get stuck it's hard to help and c) last but not least this is a forum about Retropie-Distro (and not Recalbox).

    • K

      portable project questions about wii nunchuck

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support wii nunchuck gpio retropie arcade
      2
      0 Votes
      2 Posts
      388 Views
      K

      @krullbeast more specifically, can i map the nunchuck(as a directional pad also) C and Z buttons as select and start in emulation station or retroarch AND also have two seperate A and B buttons wired to GPIO pins on my Pi 3b? will they all communicate with the Pi? or will the A and B buttons not work after enabling 12c serial at start up?

      i am very new to this, please forgive me if i sound stupid.
      and thank you for any advice
      this is a rough schematic of what i'm trying to build

    • chubstaC

      Pi 3B+ audio issue in bartop

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support amplifier gpio sound
      2
      0 Votes
      2 Posts
      420 Views
      mituM

      Try adding the following parameters in the /boot/config.txt file

      disable_audio_dither=1 audio_pwm_mode=2

      then reboot and see if it makes a difference.

    • S

      no controller in Retroarch help please

      Watching Ignoring Scheduled Pinned Locked Moved Help and Support controllers retroarch confi gpio
      2
      0 Votes
      2 Posts
      280 Views
      ClydeC

      So the controller is/was connected to the internal GPIO port of the Pi? Any chance that some of the wires have been detached while travelling?

      If that is not the case, please provide the information that is asked for in https://retropie.org.uk/forum/topic/3/read-this-first