Main Restorations Software Audio/Jukebox/MP3 Everything Else Buy/Sell/Trade
Project Announcements Monitor/Video GroovyMAME Merit/JVL Touchscreen Meet Up Retail Vendors
Driving & Racing Woodworking Software Support Forums Consoles Project Arcade Reviews
Automated Projects Artwork Frontend Support Forums Pinball Forum Discussion Old Boards
Raspberry Pi & Dev Board controls.dat Linux Miscellaneous Arcade Wiki Discussion Old Archives
Lightguns Arcade1Up Try the site in https mode Site News

Unread posts | New Replies | Recent posts | Rules | Chatroom | Wiki | File Repository | RSS | Submit news

  

Author Topic: skeeball with arduino/pi  (Read 8401 times)

0 Members and 1 Guest are viewing this topic.

spanks_4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 28, 2018, 10:41:24 am
skeeball with arduino/pi
« on: November 27, 2017, 10:22:52 am »
I know some people have done skeeball machines with Arduino and raspberry pi, but I'm still lost and confused..

I have a Skeeball Lightning machine with a dead display and PCB so I'm wanting to put in an Arduino, pi, solenoid for releasing the balls, and an lcd for score/ball display.

I am completely clueless when it comes to this stuff so any help would be greatly appreciated because my kid is about to have a fit over this thing not working.

spanks_4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 28, 2018, 10:41:24 am
Re: skeeball with arduino/pi
« Reply #1 on: November 27, 2017, 11:15:58 am »
This machine uses the light sensors for ball detection... Not sure if that makes a difference or not.

lilshawn

  • Trade Count: (+3)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 7395
  • Last login:Yesterday at 11:47:13 pm
  • I break stuff...then fix it...sometimes
Re: skeeball with arduino/pi
« Reply #2 on: November 27, 2017, 12:23:37 pm »
could probably be done with an arduino. I don't think A pi has enough of the proper IO to do everything. i'm not 100% on PI IO. the PI has like 20 something but some are dedicated GPIO for a specific purpose...so it really varies depending on which route you go.


depending on how the display is, you might be able to find an I2C driver to drive it so you wouldn't have to drive it directly saving you a pile of IO.  all the switches are fine to drive straight in. You'd have to count it all out.

then, just a matter of programming.

really depends on how "into it" you want to get. if you are experienced with electronics it should be pretty easy...if not, maybe not so much.

compare what maybe an arduino MEGA (or an UNO with four i2C - 7 segment drivers) with the relays and whatnot you'd need to convert it would all cost....VS just getting a replacement board for your machine would be.

consider also this could take you anywhere from a few days if you go hambone and know what you are doing in all aspects... to a month or more to get setup, programmed and installed... It all depends on how proficient you are. This wouldn't be turn key that's for sure.

PL1

  • Global Moderator
  • Trade Count: (+1)
  • Full Member
  • *****
  • Offline Offline
  • Posts: 9397
  • Last login:Yesterday at 07:37:46 pm
  • Designated spam hunter
Re: skeeball with arduino/pi
« Reply #3 on: November 27, 2017, 03:57:56 pm »
I know some people have done skeeball machines with Arduino and raspberry pi, but I'm still lost and confused..

I have a Skeeball Lightning machine with a dead display and PCB so I'm wanting to put in an Arduino, pi, solenoid for releasing the balls, and an lcd for score/ball display.

I am completely clueless when it comes to this stuff so any help would be greatly appreciated because my kid is about to have a fit over this thing not working.
This is a challenging project, but you should be able to pull it off.   ;D

-- Software
There are several skee-ball software packages currently available.

RandyT from GroovyGameGear released a version, as did several other BYOAC skee-ball builders.
(list of builds here)

Your choice of software will dictate hardware choices such as whether to use a keyboard-style encoder or a gamepad-style encoder.

-- Ball release solenoid
This will be a problem, unless you can find software that already supports it.

You may need to rig an override switch, manual bypass, or just disable the ball catch.  :dunno

-- Inputs
Running the sensors through the GPIO pins on a Pi is possible, but those are 3.3v inputs.

The sensors on your machine are probably running on 5v.

With that in mind, you're probably better off using an "active low" encoder like IPac, KeyWiz, etc. (NOT an "active-high" ZD Encoder)

This machine uses the light sensors for ball detection... Not sure if that makes a difference or not.
There are two basic types of optical sensors: beam break and reflective.
-  Beam break works with any type of ball that blocks the IR beam.
-  Reflective only works with certain types of balls.

The good news is that the sensors and balls work together on your system, so you should be able to wire the sensors to an active low encoder.

Disclaimer: I've only worked with beam break sensors.  The reflective sensors should also work, but may need to be wired differently.


Scott

spanks_4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 28, 2018, 10:41:24 am
Re: skeeball with arduino/pi
« Reply #4 on: November 27, 2017, 05:18:23 pm »
I ordered the pi, arduino, and solenoid today. The next hard part is going to be figuring out how to setup the pi, which looks easy, and then setting up the arduino to work with the pi and figuring out where to put the code. Which the only thing I don't see in this guys code is an input for the gutter sensor and the start button. Maybe I'm missing it

I ran across this and decided to use his code because I like classic skeeball, but the combo thing adds a nice variance that the kiddo should love:

For the sensors I was planning on running the 5V to the arduino 5v plug or put in a switcher and put the 5v on it.

For the ball coil I'm using one of these solenoids. I will have to figure out how to write code for it to release long enough to let 9 balls pass and then lock back up. https://www.amazon.com/Uxcell-BEM-14840DA-24-480V-3-32VDC-Rectangle/dp/B00E1LC1VK/ref=redir_mobile_desktop?_encoding=UTF8&dpID=51CWnVIVdFL&dpPl=1&keywords=solid%20state%20relay&pi=AC_SX236_SY340_FMwebp_QL65&qid=1499542872&ref=plSrch&ref_=mp_s_a_1_4&sr=8-4

I also have two led strips running on the sides of the lane that for some reason when tied together one side won't light all the colors, but other side is ok so might actually need a power supply for it which would also run the sensors.

I'm jumping in head first on this, but after it's done I should have a game that's reliable and fun to play.
« Last Edit: November 27, 2017, 05:19:57 pm by spanks_4 »

ed12

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 3972
  • Last login:March 31, 2018, 03:44:39 pm
  • it is what it is..."Nobody Said It Was Easy"....
Re: skeeball with arduino/pi
« Reply #5 on: November 27, 2017, 11:29:44 pm »
u do realize u can pull the full thing off  with just 1 https://www.arduino.cc/en/Main/arduinoBoardUno/
so 1 uno and away u go
all u need to do is go get the sketch file
reset your code to reflect your in's/out's and away u go
score counting is easy as pie.
and can be set as a binary out for the uno if u get tek ?
u can use the 2 way buss

ed
Shipping something from the U.S. to Canada for repair/exchange?  Please use USPS to avoid (additional?/excessive?) shipping charges.  PM me if you have any questions.

Sjaak

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 706
  • Last login:April 06, 2024, 05:21:26 pm
Re: skeeball with arduino/pi
« Reply #6 on: November 28, 2017, 03:03:39 am »
PM sent

spanks_4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 28, 2018, 10:41:24 am
Re: skeeball with arduino/pi
« Reply #7 on: November 28, 2017, 07:44:26 am »
u do realize u can pull the full thing off  with just 1 https://www.arduino.cc/en/Main/arduinoBoardUno/
so 1 uno and away u go
all u need to do is go get the sketch file
reset your code to reflect your in's/out's and away u go
score counting is easy as pie.
and can be set as a binary out for the uno if u get tek ?
u can use the 2 way buss

ed

Out of this I understood what an uno was and what pie is which is amazing lol...
This stuff is a mystery to me, but hopefully Sjaak and PL1 can get me in the right direction..

SORHP

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 174
  • Last login:February 24, 2024, 09:49:39 pm
Re: skeeball with arduino/pi
« Reply #8 on: November 29, 2017, 05:34:58 pm »
Subscribed
Games: Super Punch Out, Fix It Felix Jr, DK, DKjr, DK3, PC10, UMK3, TRON, MS-Pac, Pac, Centipede (2x), Robotron, Galaga, Space Invaders, Street Fighter 2 CE, X-Men vs SF, BuckHunter HD, 2X Custom Vewlix, Custom Nintendo VS 3/4, Atomiswave

spanks_4

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 32
  • Last login:September 28, 2018, 10:41:24 am
Re: skeeball with arduino/pi
« Reply #9 on: December 05, 2017, 05:28:18 pm »
Update: I stripped all of the wiring out of this thing and started working on running new wires. Waiting on some more wires to come in to go from sensor boards to the Pi. Lots to do still, but slowly making progress...


matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: skeeball with arduino/pi
« Reply #10 on: December 06, 2017, 06:35:41 am »
Always wanted to build one my self, but that is way far in the future unfortunately. But as ed12 says, why make it more complex with the Rpi? The Arduino boards is fully capable of handling all I/O interfaces and scores etc. It boots instantly and no worries about Linux, scripts and other hacks you will have to take care of with a RPI.
The only thing that would require a RPI is a fancy gfx heavy scoreboard display with animations etc.
If you need sound there are plenty of mp3 and WAV trigger boards that can play anything, and you get them for only a few dollars. There are more expensive ones that can play several sounds in parallel if needed. And they are really easy to hook up to an arduino. Either you connect one output per sound or you set up a serial connection.

There are also the Teensy boards that is pretty similar to the Arduino boards, but with way more muscles under the hood. Then you could go with some HUB75 LED panels for the scoreboard with animations etc.
Building, collecting and playing arcade machines :)

Sjaak

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 706
  • Last login:April 06, 2024, 05:21:26 pm
Re: skeeball with arduino/pi
« Reply #11 on: December 06, 2017, 07:33:49 am »
The only thing that would require a RPI is a fancy gfx heavy scoreboard display with animations etc.

Not just animations, but also custom skeeball games  ;)


matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: skeeball with arduino/pi
« Reply #12 on: December 11, 2017, 04:32:18 am »
The only thing that would require a RPI is a fancy gfx heavy scoreboard display with animations etc.

Not just animations, but also custom skeeball games  ;)



Fair enough. But with five holes to put the ball in, how much can you vary the gameplay since it is physically limited? Yes different modes/sequences etc of course, but that can be prompted by the game indicating with lamps/led strips where to shoot and when.
Not saying a RPI driven monitor wouldn't add to the game - just saying it isn't necessary for the gameplay (much like pinball machines).
Building, collecting and playing arcade machines :)

Sjaak

  • Trade Count: (+1)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 706
  • Last login:April 06, 2024, 05:21:26 pm
Re: skeeball with arduino/pi
« Reply #13 on: December 11, 2017, 11:34:50 am »
Fair enough. But with five holes to put the ball in, how much can you vary the gameplay since it is physically limited? Yes different modes/sequences etc of course, but that can be prompted by the game indicating with lamps/led strips where to shoot and when.
Not saying a RPI driven monitor wouldn't add to the game - just saying it isn't necessary for the gameplay (much like pinball machines).

You are right that you don't need a rpi to control the sensors and do some score counting or even play some sounds and control a simple led panel. This can all be done using an arduino and a shield for the sound and probably some driver board for the led panel. All those parts are getting close to the cost of a rpi and cheap lcd screen and you would have to write the code to get it all working.

I agree that there is not much variety, it's basically games that require accuracy or speed or a combination. But I think the games/sounds/music/smoke effects ;) can add to the fun of playing skeeball.

nitrogen_widget

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 1746
  • Last login:March 30, 2024, 09:10:09 am
  • I want to build my own arcade controls!
Re: skeeball with arduino/pi
« Reply #14 on: December 12, 2017, 11:30:29 am »
you could do a cricket game on the machine.
i'm looking at amazon and the price for a knock off arduino uno +stuff and the price of an rpi zero w + stuff is roughly the same.

You can go either way here.


matsadona

  • Trade Count: (0)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 760
  • Last login:October 28, 2023, 06:00:12 am
Re: skeeball with arduino/pi
« Reply #15 on: December 13, 2017, 04:15:48 am »
Fair enough. But with five holes to put the ball in, how much can you vary the gameplay since it is physically limited? Yes different modes/sequences etc of course, but that can be prompted by the game indicating with lamps/led strips where to shoot and when.
Not saying a RPI driven monitor wouldn't add to the game - just saying it isn't necessary for the gameplay (much like pinball machines).

You are right that you don't need a rpi to control the sensors and do some score counting or even play some sounds and control a simple led panel. This can all be done using an arduino and a shield for the sound and probably some driver board for the led panel. All those parts are getting close to the cost of a rpi and cheap lcd screen and you would have to write the code to get it all working.

I agree that there is not much variety, it's basically games that require accuracy or speed or a combination. But I think the games/sounds/music/smoke effects ;) can add to the fun of playing skeeball.

Yeah, don't get me wrong - I love to add the extras. I was looking on this from a personal perspective and for me it would be more simple to put together some code for the Arduino than messing around with Linux  :P
Building, collecting and playing arcade machines :)

big420atx

  • Trade Count: (0)
  • Jr. Member
  • **
  • Offline Offline
  • Posts: 3
  • Last login:September 16, 2019, 01:22:29 am
  • I want to build my own arcade controls!
Re: skeeball with arduino/pi
« Reply #16 on: December 31, 2017, 02:07:37 am »
spanks_4

I was wondering if you have made any progress over the holidays. This mod is something that I have been wanting to do myself for awhile now. I feel like your project will finally help me get things rolling.

All the best luck to you man.

DaOld Man

  • Trade Count: (+4)
  • Full Member
  • ***
  • Offline Offline
  • Posts: 5139
  • Last login:December 13, 2023, 12:03:14 am
  • Wheres my coffee?
    • Skenny's Outpost
Re: skeeball with arduino/pi
« Reply #17 on: January 02, 2018, 09:40:26 pm »
Liking this project!