tomassk
Posts: 11
Joined: Mon Aug 25, 2014 8:19 am

Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 5:25 pm

Hello all :)

I have got a one question... Is possible to make an arcade machine with Coin Acceptor, GPIO buttons and joystick and with only one game Space Invaders. I mean this... You will insert coin and you can play one game.

Is that possible ? And if is, so how should I make it.

Thank you for every replay :)

User avatar
kusti8
Posts: 3439
Joined: Sat Dec 21, 2013 5:29 pm
Location: USA

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 5:40 pm

Adafruit has a single coin acceptor and a four coin acceptor. I believe that wires to one of the GPIO pins which you can detect in python. Don't have it so not sure how it works.
There are 10 types of people: those who understand binary and those who don't.

tomassk
Posts: 11
Joined: Mon Aug 25, 2014 8:19 am

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 5:53 pm

kusti8 wrote:Adafruit has a single coin acceptor and a four coin acceptor. I believe that wires to one of the GPIO pins which you can detect in python. Don't have it so not sure how it works.
Yes I know it. But how to connect it together when you will insert coin it will let you only one game.

User avatar
DougieLawson
Posts: 39121
Joined: Sun Jun 16, 2013 11:19 pm
Location: A small cave in deepest darkest Basingstoke, UK
Contact: Website Twitter

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 5:56 pm

tomassk wrote:
kusti8 wrote:Adafruit has a single coin acceptor and a four coin acceptor. I believe that wires to one of the GPIO pins which you can detect in python. Don't have it so not sure how it works.
Yes I know it. But how to connect it together when you will insert coin it will let you only one game.
You'll have to do that with programming in the game (or in a script wrapped round the game). For each coin accepted you'll add 1 credit, multiple credits or a fraction of a credit, for each game played deduct 1 credit, keep the balance in memory.

A multiple coin acceptor can do some of that stuff for you. https://www.youtube.com/watch?v=G_ubo3hjXhI
Note: Any requirement to use a crystal ball or mind reading will result in me ignoring your question.

Criticising any questions is banned on this forum.

Any DMs sent on Twitter will be answered next month.
All non-medical doctors are on my foes list.

tomassk
Posts: 11
Joined: Mon Aug 25, 2014 8:19 am

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 6:14 pm

DougieLawson wrote:
tomassk wrote:
kusti8 wrote:Adafruit has a single coin acceptor and a four coin acceptor. I believe that wires to one of the GPIO pins which you can detect in python. Don't have it so not sure how it works.
Yes I know it. But how to connect it together when you will insert coin it will let you only one game.
You'll have to do that with programming in the game (or in a script wrapped round the game). For each coin accepted you'll add 1 credit, multiple credits or a fraction of a credit, for each game played deduct 1 credit, keep the balance in memory.

A multiple coin acceptor can do some of that stuff for you. https://www.youtube.com/watch?v=G_ubo3hjXhI
Thank you and what emulator should I use ?

User avatar
Jessie
Posts: 1754
Joined: Fri Nov 04, 2011 7:40 pm
Location: C/S CO USA

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 6:33 pm

For Space Invaders any version of Mame built for the Pi will work. The facilities for adding coins are already there. You just need to pull wires from the switch on the coin validator to whatever interface device you will be using for input. For arcade cabs I use minimusAVR with KADE firmware loaded. The pi will just see it as a keyboard or joystick depending on which options you select.

tomassk
Posts: 11
Joined: Mon Aug 25, 2014 8:19 am

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 6:53 pm

Jessie wrote:For Space Invaders any version of Mame built for the Pi will work. The facilities for adding coins are already there. You just need to pull wires from the switch on the coin validator to whatever interface device you will be using for input. For arcade cabs I use minimusAVR with KADE firmware loaded. The pi will just see it as a keyboard or joystick depending on which options you select.
Thank you. Can I use RetroGame from Adafruit GPIO to USB utility ?

jamesh
Raspberry Pi Engineer & Forum Moderator
Raspberry Pi Engineer & Forum Moderator
Posts: 26660
Joined: Sat Jul 30, 2011 7:41 pm

Re: Space Invaders with Coin Acceptor and GPIIO buttons

Tue Aug 26, 2014 7:15 pm

I'm sclosing this thread as its now duplicated by

http://www.raspberrypi.org/forums/viewt ... 64#p602964
Principal Software Engineer at Raspberry Pi (Trading) Ltd.
Contrary to popular belief, humorous signatures are allowed.
I've been saying "Mucho" to my Spanish friend a lot more lately. It means a lot to him.

Return to “Gaming”