Archive

Posts Tagged ‘os pinball’

Controlling Pinball 2000

March 29th, 2009

I recently came by some source code to control the power driver board of a P2K machine. This is NOT Pinball 2000 source. This custom source was written by Daniel Johansson for his home made machine (which has been canceled).

Here’s some information about the source pulled from his site:

Below is the source code for the power-driver-board-part of my Sparks Pinball 2000 project. It is written in C as a Linux kernel module utilizing the real time extensions RTAI from https://www.rtai.org/. The sound and graphics part (not published here) is written in C++ as a Linux user space program. The communication between the two part are made using FIFO:s. The code must only be considered as test software. It is very poorly commented and may not be easy to read. If you make any modifications to it, please send me a copy…

Maybe there are someone out there who are interested in continue to build on the code and maybe write a Pinball 2000 Open Source Toolkit, that can be used by anyone interested in making their own Pinball 2000 game. If so, the code must be rewritten. It isn’t a good way to place everything that has to do with the power-driver-board (including the rules) in a kernel module. One idéa is to simpify the kernel module and let it only deal with functions that has directly to do with the power driver board like fire solenoids, flash lamps, running lamp patterns etc, and sending switch event up to a user space program where all the game code is written. Another way is to write everything in user space using RTAI-LXRT and skip the kernel module part…
Here is the code: ***. Disclaimer: The code is “as is”. Use it at your own risk. I will not be responsible for any hardware malfunction.
I included a definition file for SWEP1 for anyone interested in writing new software to their own game…

Paired with the information on Pinrepair.com, I think you could have a really good head start on a custom machine.

And a bonus video of Daniel’s machine in action:

 

Source: p2k.zip

* Pinball 2000 is a trademark of Williams Electronics Games, Inc. All rights reserved

Pinball , , , , , , , , , , , , , ,

Scoreboard Progress

February 27th, 2009

Just a quick update on what I’ve been working on. I’ve had a bit of success getting scoring and the scoreboard playing together (see video). Another feature that you don’t see in the video is that all the switches point value can be set via the C# app that I made.

I’ve added the source below. Keep in mind this is all just hacking at this point. It’s probably not very helpful but it can’t hurt.

The led matrix on the top isn’t broken, I just hooked it up wrong :-/
 

Source

Spin:

C#:

Misc:

 

 

Pinball, Programming/Development , , , , , , , , , , , , , , , , ,

Pinball Related Progress

January 25th, 2009

Earlier in the week I ordered a few parts that I needed for the switch matrix of the machine. To give you a little sneak peak of what’s to come, I’ll let you know that it involves 10 CD4021BE chips and a lot of buttons. I just recieved them Saturday afternoon so it’s a bit early to say for sure how awesome they are (I’m pretty sure they will be super awesome). I’m hoping to connect at least 16 buttons/switches using 2 CD4021BE chips and 3 pins on the propeller chip.

I’ve also decided that I want to get a real machine. Not to salvage, but to get dimensions and an idea of how things are positioned on the playfield. I want to get a better understanding on how the flipper system and the ball kickers work. If you have or know where I can get a cheap machine, please let me know.

As far as the machine design I’ve made a few changes and ‘maybe’ changes. The biggest change is that I’m tossing around the idea about nixing the 7″ LCD on the head. I’m not sure of what it can add to the head that a nice back glass can’t. We’ll see what I can work out. I figured the design part was going to be the most difficult task. So far I’m proving myself right :)

I haven’t forgotten about open sourcing pinball. I picked out the wiki software and got it all setup. I’m struggling getting through the documention on how to customize it now. I swear there has to be a million sperate options to customize. On top of that I’m working on getting information in the system before it goes public. If you’d like to help contribute to the wiki before it goes public send me an email (mespam@jeremymeltonspam.com) or leave a comment and let me know that you’re interested. I’ll give you access and help you get started.

So there you have it, quite a few things going on this past week, and a lot more to come. As long as everything goes to plan, I should have schematics and code up for the switch matrix and a few more sketches up this week. If I get lucky I’ll have another update on the open source community project.

Pinball , , , , , , , , , ,

Initial designs!

January 19th, 2009

You’ve waited long enough and I’ll keep this post short so you can get to the pictures! Here are some rough sketches of some ideas that I’m thinking about for my machine. 
As you can see I’m planning to create a professional level machine (quality/details/features) with some fresh ideas. Not being a manufacture has some benefits. I can include things that would be virtually impossible for a manufacture, like Stern to create (Manufacturing and  licensing costs).

(Click an image for fullsize) 

Factoids and notes: 

  • As of now my goal is to create a tribute of sorts to the old stadium. A lot of the design decisions are made with this in mind.
  •  Overall I want to stay away from the pitch and bat machines (except for the mini playfield)
  • The mini playfield will be a small scale of the new stadium.
  • The mini playfield will play like a ‘pitch-n-bat’ machine.
  • The rivalry mode is quite complex. I’m not sure if it will make it to the final machine.
  • Big Hurt‘ is the only comercially made baseball related machine — excluding pitch and bat machines.

Pinball , , , , , , , , ,

Open Sourcing Pinball

January 14th, 2009

First things first. Happy freakin’ new year!

Ok, enough of that jazz. Over the past month or so the nagging voice of reason has been rearing it’s head around. Can I really pull this off? I mean pinball machines are made by dozens of people — Highly experienced people at that! I half blame this on my wandering brain and half blame it on Scott @  XTCPinball for even bringing it up ;). It seems he’s having the same kind of doubts with his machine. I’m notorious for thinking of huge ideas and becoming overwhelmed by what needs to be done. I need to keep myself from thinking of the big picture right now. It’s always nice to dream but if I don’t take this one step at a time I’ll never finish.  It also helps to see that that Nuggy is still working and progressing well on Coconut Island.

 One of the things I’ve noticed with with my research is that it almost feels like there is a cloak of secrecy around the inner workings of pinball machines.  From dimensions to volts to how this and that work, it seems nobody, if they even know, wants to divulge their technical knowledge. Sure there are some kind people on RGP that would help out. But as with anyone asking too many questions I’m sure the flame would fly. Of course, I’m sure if you sifted through the RGP archives long enough you could probably have enough information to build a pinball machine, eventually. I don’t know about you, but that just doesn’t sound like fun to me.

Oddly enough this got me thinking about open source software and how awesome it really is. Some of the better programs out there are open source and community based. If you can find the right people, your project can really take off and become something special. My next thought went along the lines of “How can this apply to homebrew/DIY/home made pinball machines? Oh look! A duck!”.   

There are tons of people out there with a lot of information to share. Some of it’s directly related to pinball, some of it’s might not be. Either way you think about it, there’s a big untapped pool of information that needs to be…well…tapped. Anyone can contribute to some aspect of a pinball machine — whether they know it or not. I want to harness the open source minded crowd to help with the….wait for it; Open Source Pinball ‘movement’. Ok, so it’s not a movement…yet (high hopes anyone?) :D If you really think about it, opening up the pinball arena to hundreds, maybe thousands of people, could even help out Stern – the last of the big guys. Fresh minds bring in new ideas! Furthermore this could open the door for some new blood that could really get pinball popular again (Coconut Island and Snow Mountain for instance).

So that’s how it kind of happend. Over the course of the next few days, maybe weeks, as time permits (so probably months ;) ), I will be setting up a community wiki/forum/blog. The information I have collected on my own is very small in comparison to the wealth of knowledge there is out there that might not be published. I want to facilitate the information sharing. A wiki, for starters should get the ball rolling. What I’ve seen in my research is that everyone has their own idea of how to put a machine together. This is great and means that there is a bunch of information that everybody can learn from. The more information that can be put in a central location the better it will be for the start of a community.  The worst that could happen is I have a online notebook for my research.

So that’s it for now. I will post again with the progress of the machine at a later date. I need to create some schematics and get some videos made — it’s pretty exciting!

* Edit – Thanks to WikiMatrix, I’ve narrowed the wiki choice down to 5 out of some 200+ choices. Here’s a “WikiMatrix” of the features each one has. If you have any suggestions for a wiki I’d really like to hear them!

Pinball , , , , , , ,