Build Your Own Arcade Controls Forum

Main => Raspberry Pi & Dev Board => Topic started by: Richardgregory on December 12, 2016, 09:17:05 pm

Title: Newbie and question about Ipac
Post by: Richardgregory on December 12, 2016, 09:17:05 pm
Hi folks:

So it's winter and I need a new project, so I decided to dive into setting up Rasberry Pi 3 and MAME.  As far as controls go, do I need to order an Ipac to wire up the joysticks and buttons?  Or is there another way to do this?

Thanks
Title: Re: Newbie and question about Ipac
Post by: sinfolmatt on December 12, 2016, 10:33:48 pm
There are other options.  My first build was with an iPac.

I am making a second now and using these which are cheaper.
https://www.amazon.com/gp/product/B00UUROWWK/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1 (https://www.amazon.com/gp/product/B00UUROWWK/ref=oh_aui_detailpage_o05_s00?ie=UTF8&psc=1)

It depends on your plan for the build (number of players, buttons for each player, just mame or other consoles emulated?)Personally the iPac is better if you are willing to spend more because you can reprogram the keys, program shift keys and more.  But for a simple setup a cheaper usb encoder can work also.

I think you can also wire directly to the GPIO headers on the pi and program those but I have little experience with that.
Title: Re: Newbie and question about Ipac
Post by: JDFan on December 12, 2016, 11:50:28 pm
What type of CPO setup ??

If using only a few inputs you could go directly to the GPIO pins and grounds and not have to buy anything -- Here is a pinout for the GPIO pins - those in green are available for buttons and some of the yellow can also be used depending on the peripherals you are also using.

(https://cdn-learn.adafruit.com/assets/assets/000/037/733/large1024/gaming_New-GPIO-Diagram.png?1480813804)

Here is a link to a decent tutorial on setting one up from adafruit - https://learn.adafruit.com/retro-gaming-with-raspberry-pi?view=all
Title: Re: Newbie and question about Ipac
Post by: mahuti on December 13, 2016, 10:14:15 am
FYI, connecting to the GPIO will cost almost as much in hardware (unless you solder straight to it) as it costs to get that encoder mentioned on amazon. A GPIO breakout kit will cost almost as much or more as well. GPIO is great... but those boards on Amazon work great for a simple set up and they are really cheap, I bought about 4 and I haven't had any troubles with them.
Title: Re: Newbie and question about Ipac
Post by: JDFan on December 13, 2016, 03:46:54 pm
FYI, connecting to the GPIO will cost almost as much in hardware (unless you solder straight to it) as it costs to get that encoder mentioned on amazon. A GPIO breakout kit will cost almost as much or more as well. GPIO is great... but those boards on Amazon work great for a simple set up and they are really cheap, I bought about 4 and I haven't had any troubles with them.

Or just buy a set of these for $1.14 on EBAY ( http://www.ebay.com/itm/2014-New-Female-To-Female-40-pcs-Wire-Cable-Line-1p-1p-Pin-Connector-20cm-2-54mm-/171359763130?hash=item27e5d67aba (http://www.ebay.com/itm/2014-New-Female-To-Female-40-pcs-Wire-Cable-Line-1p-1p-Pin-Connector-20cm-2-54mm-/171359763130?hash=item27e5d67aba) )

(http://i.ebayimg.com/images/g/LAQAAOSws65TnlYK/s-l400.jpg)

and use them individually on the GPIO pins as needed - cut of the other end and crimp on a  Quick disconnect  to the other end for attaching to the switch - about $4 for a 25 pack on ebay ( http://www.ebay.com/itm/25-Vinyl-Female-Quick-Disconnect-Terminal-16-14GA-AWG-gauge-Blue-0-187-Wire-/121916873852?hash=item1c62cfdc7c:g:oUQAAOSwzJ5XV80v (http://www.ebay.com/itm/25-Vinyl-Female-Quick-Disconnect-Terminal-16-14GA-AWG-gauge-Blue-0-187-Wire-/121916873852?hash=item1c62cfdc7c:g:oUQAAOSwzJ5XV80v) )

(http://i.ebayimg.com/images/g/oUQAAOSwzJ5XV80v/s-l1600.jpg)
Title: Re: Newbie and question about Ipac
Post by: mahuti on December 14, 2016, 09:49:25 am
That's great. I've looked at different times for those things and haven't seen them that cheap. Course I haven't looked on eBay for them either :-)  That said, delivery date is Jan-5 to Feb 23... a window that is usually too frustrating for me. I think the last time I ordered something like that from overseas it landed somewhere in the middle of that type of window.

Could order similar from Amazon.  (https://www.amazon.com/centstar-Dupont-Cables-Jumper-Connector/dp/B01EMI7X1O/ref=sr_1_1?ie=UTF8&qid=1481726750&sr=8-1&keywords=40+pcs+Wire+Cable+Line+1p-1p+Pin) for about $6 and have it in a few days.

Title: Re: Newbie and question about Ipac
Post by: JDFan on December 14, 2016, 12:38:39 pm
That's great. I've looked at different times for those things and haven't seen them that cheap. Course I haven't looked on eBay for them either :-)  That said, delivery date is Jan-5 to Feb 23... a window that is usually too frustrating for me. I think the last time I ordered something like that from overseas it landed somewhere in the middle of that type of window.

Could order similar from Amazon.  (https://www.amazon.com/centstar-Dupont-Cables-Jumper-Connector/dp/B01EMI7X1O/ref=sr_1_1?ie=UTF8&qid=1481726750&sr=8-1&keywords=40+pcs+Wire+Cable+Line+1p-1p+Pin) for about $6 and have it in a few days.

Yeah the shipping does take a couple weeks (most of the time they arrive around the beginning of the delivery window unless there is some holdup in customs ) - but I usually keep several around and order more as needed - In a pinch an old IDE cable has the same type of connections but the wire gauge is a bit small so harder to work with. 

Also if you need a bit longer wire you can use the same type of wires (jumper wires) with the male connectors and string together a couple wires to make the wire longer without having to splice it in.
Title: Re: Newbie and question about Ipac
Post by: mahuti on December 14, 2016, 12:54:24 pm
Quote
- but I usually keep several around and order more as needed


See. I usually think I'm getting out of this hobby and that I'm just going to start playing my machines. Then I get sucked back in. I don't think ahead to keep things laying around. I'm going to have to. Now that RadioShack is nearly dead (and really sucky) i can barely even get spade terminals in the right size without going online.
Title: Re: Newbie and question about Ipac
Post by: JDFan on December 14, 2016, 01:09:19 pm
Quote
- but I usually keep several around and order more as needed


See. I usually think I'm getting out of this hobby and that I'm just going to start playing my machines. Then I get sucked back in. I don't think ahead to keep things laying around. I'm going to have to. Now that RadioShack is nearly dead (and really sucky) i can barely even get spade terminals in the right size without going online.

I know the feeling - while living in Los Angeles I was the same since there were several Fry's, etc. around to stop and pick up things - but now that I'm back in El Paso the only electronics place around here is Best Buy  :laugh2: - So I have to either keep some things or wait for the online order to get here. 
Title: Re: Newbie and question about Ipac
Post by: mahuti on December 15, 2016, 01:45:55 am
I used to live in Orange County a few miles from Frys. I know the feeling. Here in St. Louis...  nothing decent either.
Title: Re: Newbie and question about Ipac
Post by: lazrhog on December 21, 2016, 01:34:57 pm
I think the iPac gives you the ability to process multiple keypresses better over USB.  I believe both methods work through.  My setup has an iPac2.  Very happy with it - plus it gives me a 5v power source close to the led lit buttons (as I hot glued the iPac to the control board)