RegisterSearchFAQMemberlistUsergroupsLog in
Reply to topic Page 1 of 1
How To: Raspberry Pi GPIO Buttons for RaceCapture
Author Message
Reply with quote
Post How To: Raspberry Pi GPIO Buttons for RaceCapture 
Demo Video:

https://www.youtube.com/watch?v=b4YTmlmBw5Q


This isn't very complicated, get RaceCapture working in Raspberry Pi First.

Go grab yourself the buttons that you will need 2 or 3 buttons:

Left, Right and "ESC" though Left and Right are really all you need. ESC just bring your back to the main Race Capture Menu.

This works:

https://learn.adafruit.com/retro-gaming-with-raspberry-pi

I intend to buy this and use it: https://learn.adafruit.com/retro-gaming-with-raspberry-pi (NOT TESTED YET)

For the purpose of testing this you don't need buttons, I used wires connected to the pins on my Raspberry Pi to fake a button when touched together as seen in video above.

Next follow the instructions here:

https://learn.adafruit.com/retro-gaming-with-raspberry-pi/adding-controls-hardware (Scroll to the bottom where they start talking about GPIO pins)

RetroGamer takes GPIO inputs and converts them to keyboard presses. This will explain how to connect your button(s) and configure RetroGamer. Once configured you should be able to control RaceCapture without needing the touchscreen.

Connect your buttons to the GPIOs and make note of which ones you are using as we need to map those to keyboard presses.

In the above instructions you'll run "retrogame.sh" choose any of the menu options.

edit /boot/retrogame.cfg

You'll only need three entries, entries that start with a # sign are just comments.

Remember where you wrote down what GPIO pins you used in your setup for your buttons? That's what goes in the configuration file as a number, for example:

LEFT 18
RIGHT 21
ESC 16

The above means, when GPIO 18 has "contact" then "send a left button" etc.

It is very simple to get working.

Ask me any questions you might have, while I'm new to Raspberry Pi I've been using Linux for eons, and can walk anyone through most of this.

Cheers,

Paul

View user's profile Send private message
Reply with quote
Post  
This is great, Thanks! We'll make it sticky for a while.

View user's profile Send private message Send e-mail
Display posts from previous:
Reply to topic Page 1 of 1
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You cannot download files in this forum