(Topic ID: 266605)

Replacing the M6800 in a Stern MPU100 with an Arduino

By DickHamill

4 years ago


Topic Heartbeat

Topic Stats

  • 282 posts
  • 51 Pinsiders participating
  • Latest reply 9 months ago by DickHamill
  • Topic is favorited by 88 Pinsiders

You

Linked Games

  • Stars Stern Electronics, 1978

Topic Gallery

View topic image gallery

IMG_1511 (resized).jpeg
pasted_image (resized).png
pasted_image (resized).png
pasted_image (resized).png
Stars2021-REV3 (resized).png
IMG_4356 (resized).jpeg
mpu.r30 (resized).png
22BFE879-2B7B-4155-B66E-BC9CEDC3CBEA (resized).jpg
5FCA0E77-1E60-4842-97BF-919E50FFD97E (resized).jpg
Screen Shot 2021-08-01 at 3.46.55 PM (resized).png
IMG_1527 (resized).jpeg
Screen Shot 2021-05-05 at 10.05.48 PM (resized).png
Screen Shot 2021-05-05 at 10.05.14 PM (resized).png
IMG_0162SB (resized).jpg
WAVTriggerBeautyKDS (resized).jpg
WAVTriggerBeauty (resized).jpeg
There are 282 posts in this topic. You are on page 3 of 6.
#101 4 years ago
Quoted from slochar:

So looking through the code, seems like you're HALTing the 6800, which tristates it. Am I right in assuming that you can take over the bus at that point via the arduino and address memory locations? i.e. see what's in the ram, etc. - I know that won't get the 6800 registers from the processor (there'd have to be a 6800 emulator running on the arduino to get that) but at least contents of ram could be explored as a debugger? That might get me where I'd like to go with this. I plan on trying out the code on my stars next week with an ancient Duemilenove I have laying around.
I know the debugger memory stuff would require many more I/O pins (although not so much if I just want the Ram contents, nothing with roms).
Maybe I can rig something with an external interrupt to have the processor save the registers into memory somewhere (the extended ram in the weebly board would help here) - what does the 6800 do when it comes out of HALT? All its registers are internal so does it just resume where it left off or does it reset?
Still keeping the dream of a monitor alive.....

Yes (and no) - you're right that the latest version of the daughter card that I'm running halts the 6800 (I'll attach a diagram).
So, yes, the Arduino can access the bus and read memory. But there are a couple of big caveats that I think might mean you need a different solution for what you want. First, the 6800 is HALTed by grounding the halt line for the duration that the machine is on. I only halt/un-halt with the machine turned off. That's partly because I don't have an extra pin on the Arduino to spare for driving that line.
And, because of the number of IO pins available on a Nano, I only have 5 address lines. So you could technically read addresses 0x0000 - 0x0003, 0x0008 - 0x000B, 0x0010 - 0x0013, 0x0018 - 0x001B of RAM, but that's it.

For what you're looking to do, I would recommend a Arduino Mega, which would have all the pins to cover the Address/Data/Control lines. Then, (if you jumpered a line from the Arduino to pin 6) you could run software that watches for a particular address and then calls an NMI and halts the processor.
Once inside the NMI, you would be able to see the contents of the register on the stack.

Another solution (and this one is WAY out there), is I have another program that Emulates the 6800 on an Arduino. It's basically a software implementation of the 6800 and the input is a 4k array of bytes (the original ROM). I have this running on an MPU100, but it's not 100% debugged. I can get the emulation through the 7 flashes, but the interrupt never decrements 0x0018 (I don't know why) and it gets hung up here:
LDAB #$03 *12F1: C6 03 '..'
Z12F3 STAB M0018 *12F3: D7 18 '..'
Z12F5 LDAB M0018 *12F5: D6 18 '..'
BNE Z12F5 *12F7: 26 FC '&.'

It loops forever back to 0x12F5, waiting for the ISR to clear out 0x0018.
Anyway, that's another approach you could try, but the emulation clearly isn't perfect for the ISR, so there's some debugging to do.

If you really want to break and examen registers, I think your best bet is the Mega & using the NMI.

I'd be happy to work with you on the code for this if you want to give it a try.

Wiring rev3 (resized).pngWiring rev3 (resized).pngWiring rev3a (resized).pngWiring rev3a (resized).png
#102 4 years ago
Quoted from Robotworkshop:

It looks like the 6800 is pulled right off those board so no need to halt it if it isn't there.

Robotworkshop , I'm now dual-booting one of my machines - so I'm leaving the 6800 in place and I have a switch so I can boot to the old code or new.

#103 4 years ago

I have a mega as well. I'll assume I'll have to issue the NMI via the arduino to handle debouncing though. I forgot that the stack would save the registers, duh!

#104 4 years ago

Was messing around with this today:
BallyNanoAdapterV1 (resized).pngBallyNanoAdapterV1 (resized).png

Size is 1.8" X 3.8"

I need to add a point to jump to R134 and the 3 Pole switch

Still has some issues with the traces too close together

#105 4 years ago
Quoted from Cheddar:

Was messing around with this today:
[quoted image]
Size is 1.8" X 3.8"
I need to add a point to jump to R134 and the 3 Pole switch
Still has some issues with the traces too close together

Cheddar -- RoyGBev is working on something similar.

You might consider a header to attach a switch for J5:24, 10, & 13, like in the diagram above.

1 month later
#106 4 years ago

DickHamill This thread is of great interest to me, but I have a slightly different goal. I have a -35 MPU board. I want the game to play normal except I want to capture pretty much everything that "happens" during the game.

With your extensive experience I was wondering if you think it is feasible to leave the existing M6800 in the machine and either capture the data to/from the 6810 RAM or emulate the RAM chip itself with the Arduino. The idea would be that the 6810 holds the entire active game state and so following that memory as it changes would give you the ability to "watch" the game state from outside of the machine.

This has some different challenges from your project because you offload the entire game (ROMs, processing, RAM, timings, etc) into your Arduino. I'm not even sure the Arduino would be fast enough to process the data on the RAM bus either as the RAM or just watching it. I suppose I could also work toward implementing your project except as I understand it to get an authentic experience I would have to re-implement the entire game code on Arduino, which probably isn't feasible.

I've posted a similar question on the Electronics StackExchange: https://electronics.stackexchange.com/questions/509846/feasible-to-capture-data-to-from-a-1970s-ram-chip

Curious your thoughts, super cool project.

#107 4 years ago

You would probably be better off with the LISY https://lisy.dev/lisy35.html board in your machine instead, and modify pinmame to capture what you're looking for. Ben Eater has a series where he uses an Arduino mega to capture the bus of a 6502 computer he's building on a breadboard.

It's not just the 6810 that's holding game data, it's the 5101 as well (displays, lamps, audits). For Bally games, every score is pulled from the 5101 down to the 6810, moved to another area of the 6810, added to, then checked against the replay levels in the 5101, then moved back to the 5101.

The hardest part of what you want to do is interpreting the mountain range of data this would generate, and what you would glean from that. What's the goal in watching the game state? Modification, art project, game genie type device?

Why wouldn't it be feasible to recreate the game code on the Arduino? Implementing your stock Playboy code would be relatively easy. The game code in early bally games is really straightforward. The operating system is where all the programming rigor is there.

I see from the stack exchange answers that most of them are pointing you towards FPGA's. I believe there's already open source cores for a lot of the 6800 series.

#108 4 years ago
Quoted from Dandelock:

I want the game to play normal except I want to capture pretty much everything that "happens" during the game.

Can you explain exactly what you want to do with the captured RAM data?
BTW, while the 6800 is rated to 1MHz, Bally only runs it around 500kHz clock speed.

#109 4 years ago
Quoted from Quench:

Can you explain exactly what you want to do with the captured RAM data?
BTW, while the 6800 is rated to 1MHz, Bally only runs it around 500kHz clock speed.

I want to build statistics around my game. Track scores, which switches are hit most frequently, etc. View current state, maybe make a virtual representation of the game board and be able to "replay" the game by stepping through the game states.

My goal started out as simply and automated way to capture the score of every game played. I looked at capturing this right from the display bus. Then the Playboy owners thread gave me the idea about capturing the frequency some of the switches are hit (the Playboy keys). Which one is naturally hit the most? During play try and nudge the ball into the rarer switches. Then I said why stop there? Maybe capture the outlanes to see how dangerous each side is vs the middle, and side targets, etc, etc. But looking at the switch matrix I'll need 8+4 channels to capture that. If I wanted to do displays and switches I would need something like 20 channels... So I read Bally's Theory of Operation and it talked about the purpose of the 5101/6810 RAM in the game so this seemed the obvious "straight from the horse's mouth" location.

If anyone else has a creative solution I'd like to hear it. slochar has given me a good idea with the LISY. Ideally an Arduino (or similar) would replace the MPU and be able to load the original game ROM for play. Then hopefully there would be some way to inspect the game state from outside the ROM execution. LISY seems pretty close to that.

Edit: I've also looked at a computer vision solution for this, pointing a webcam at the playfield and one at the backglass. This could still be feasible (especially for the score) but I think computer vision is going to have a really hard time tracking a mirror-finish ball flying around a playfield with art on it.

#110 4 years ago

You might look into scorbit: https://medium.com/scorbit-pinball/scorbit-pinball-january-2020-update-89b6acb4a79e

For the scoring. For the other things, this is what I'd do:

Get a weebly board. It has more ram and rom on it to track the statistics you're looking for.

Modify the OS rom to record all those statistics. (Not the scores). Once in a while either look at them or record them as well.

To automate this as much as possible I'd likely attach the arduino like Ben Eater did to the J5 connector, and write a sketch to look for a specific strobe to an unused memory location in the stock code, which alerts the arduino to capture a byte. Then, send a stream of bytes along with the strobe to the arduino which comprises your information.

Your project idea would go one of several ways as I see it:

1) Snoop the bus to grab the info you want. Difficulty here would be parsing out the information, for which you'd have to understand the original code anyway, or re-write into Ike's framework - which in this case I think would be easier because you could report the information you're after directly. (Either over the serial monitor, or via an SD card library - lots of these exist already for arduino to do data logging.)

2) Add into the original code the ability to track what you're looking for, and use the arduino to collate it and dump it out. Bally Playboy has open romspace as it's shipped on 3x2716, so you have 2048 bytes available there to add your code. The difficulty here is interfacing the arduino to grab the statistics (well, and depending on how well versed you are in 6800 assembly.... if you can't do that, you'll have to find someone willing to do it/has done it already)

3) Add into the original code the ability to track what you're looking for, with the weebly board's extra ram leveraged to keep track of all the extended statistics. This also requires the ability to recreate the source code. Has the advantage that the arduino doesn't have to dump data in real time, the stats for the game can be kept, then at the end of the game, some handshaking can go on between the arduino and the 6800 coding.

Ike's setup with rewriting the whole game is by far the easiest IMO if you are comfortable with arduino coding (I know enough to barely get by, but I was able to follow his code no problem on BJ2020 and Stars2020, to the point where I think I could modify it as I saw fit.... with google at the handy to help)

There is another alternative to recreating the original source, and that's to re-write anew into something like Oliver Kaegi's PCK kit:
http://www.pinball4you.ch/okaegi/pro_pck.html - a ready built documented OS. There are also various other homebrew OS's available, from whatever LISY has, to one I've written (not publicly available) that requires the weebly board, to a Stern OS rewrite (meteor-up, as well as the earlier mpu100 games).

I've used the weebly stern/pinbol [williams] OS to recreate Stars as a proof of concept. I'm in progress of rewriting Bobby Orr Power Play into Stern PIGS' style code, and used the stern os mpu100 game to write CPR's cancelled Lost Vegas software and also rewritten a couple of other games (some williams in there so not applicable to Bally world). I actually track some statistics in the Night Rider game I wrote, although not down to each switch activation.

I keep track of all my games' scores in a spreadsheet and have done so for at least the last 12 years or so. It helps me track if I'm getting any better at the games (I'm not) and more importantly, tells me if I should think about selling a game, based on the # of plays I put on it year to year. There are external factors at play here though, because I'll go hot on titles for a while and then cold for a long time, or there will be something piled on it, or I'm doing a PF swap, etc.

I'm tempted to try and get something hacked into some of the games and add arduinos to it, ideally that communicate back to a database back end so I can get statistics at a glance, like after a party or something. Baby steps first though.

Stern's sb-100 sound board grabs a byte off the bus as its regular operating mode so I think an arduino could do the same.... heck, you could put the logic chips on it that do that and have the arduino read from those chips instead of trying to grab and debug real time.

#111 4 years ago

From your initial question, you can map your own 6810 and 5101 RAM externally from the J5 connector using address decoding to pull the J5 EXTMEM signal low.
Note, in order to replay your states, you'd need to capture the state of the whole machine which also includes the CPU registers (i.e. where's the stack currently pointing) and configuration of the PIA chips. The solenoid/coil/relay states are not stored in RAM the PIA ports are where their states exist. This is an unrealistic approach.

On a different idea with replay, modifying the original game code during the main execution loop where it determines which switch activations are valid you could get it to write the switch number to an unused memory area that an intelligent device hooked up to the J5 connector scans which essentially logs/records those switch activations real time.
You could also scan a memory mapped area during the main execution loop where you real time pass those time logged switches back allowing you to replay a recorded game input.

As slochar said, you can also modify the game code to spit out the end of game scores, again to some currently unused memory address you read from J5 connector.

#112 4 years ago
Quoted from slochar:

You might look into scorbit: https://medium.com/scorbit-pinball/scorbit-pinball-january-2020-update-89b6acb4a79e
For the scoring. For the other things, this is what I'd do:
Get a weebly board. It has more ram and rom on it to track the statistics you're looking for.
Modify the OS rom to record all those statistics. (Not the scores). Once in a while either look at them or record them as well.
To automate this as much as possible I'd likely attach the arduino like Ben Eater did to the J5 connector, and write a sketch to look for a specific strobe to an unused memory location in the stock code, which alerts the arduino to capture a byte. Then, send a stream of bytes along with the strobe to the arduino which comprises your information.
Your project idea would go one of several ways as I see it:
1) Snoop the bus to grab the info you want. Difficulty here would be parsing out the information, for which you'd have to understand the original code anyway, or re-write into Ike's framework - which in this case I think would be easier because you could report the information you're after directly. (Either over the serial monitor, or via an SD card library - lots of these exist already for arduino to do data logging.)
2) Add into the original code the ability to track what you're looking for, and use the arduino to collate it and dump it out. Bally Playboy has open romspace as it's shipped on 3x2716, so you have 2048 bytes available there to add your code. The difficulty here is interfacing the arduino to grab the statistics (well, and depending on how well versed you are in 6800 assembly.... if you can't do that, you'll have to find someone willing to do it/has done it already)
3) Add into the original code the ability to track what you're looking for, with the weebly board's extra ram leveraged to keep track of all the extended statistics. This also requires the ability to recreate the source code. Has the advantage that the arduino doesn't have to dump data in real time, the stats for the game can be kept, then at the end of the game, some handshaking can go on between the arduino and the 6800 coding.
Ike's setup with rewriting the whole game is by far the easiest IMO if you are comfortable with arduino coding (I know enough to barely get by, but I was able to follow his code no problem on BJ2020 and Stars2020, to the point where I think I could modify it as I saw fit.... with google at the handy to help)
There is another alternative to recreating the original source, and that's to re-write anew into something like Oliver Kaegi's PCK kit:
http://www.pinball4you.ch/okaegi/pro_pck.html - a ready built documented OS. There are also various other homebrew OS's available, from whatever LISY has, to one I've written (not publicly available) that requires the weebly board, to a Stern OS rewrite (meteor-up, as well as the earlier mpu100 games).
I've used the weebly stern/pinbol [williams] OS to recreate Stars as a proof of concept. I'm in progress of rewriting Bobby Orr Power Play into Stern PIGS' style code, and used the stern os mpu100 game to write CPR's cancelled Lost Vegas software and also rewritten a couple of other games (some williams in there so not applicable to Bally world). I actually track some statistics in the Night Rider game I wrote, although not down to each switch activation.
I keep track of all my games' scores in a spreadsheet and have done so for at least the last 12 years or so. It helps me track if I'm getting any better at the games (I'm not) and more importantly, tells me if I should think about selling a game, based on the # of plays I put on it year to year. There are external factors at play here though, because I'll go hot on titles for a while and then cold for a long time, or there will be something piled on it, or I'm doing a PF swap, etc.
I'm tempted to try and get something hacked into some of the games and add arduinos to it, ideally that communicate back to a database back end so I can get statistics at a glance, like after a party or something. Baby steps first though.
Stern's sb-100 sound board grabs a byte off the bus as its regular operating mode so I think an arduino could do the same.... heck, you could put the logic chips on it that do that and have the arduino read from those chips instead of trying to grab and debug real time.

Thanks for the super insightful post. I think I'm now leaning more towards Ike's solution and recreating the game logic from scratch. I'm an experienced programmer (albeit not C/C++/Assembly) and only experienced enough with electrical engineering to get by. I think I offloading as much as possible to the Arduino and replacing the entire 6800 makes the most sense for extensibility. I should probably go back and read this entire thread in detail.

A few questions:

1. I've seen some products which replace the entire MPU board with a newer smaller "smarter" board but after 10min of Googling I can't seem to find it. Is this ringing any bells? Any advantages to that solution?
2. For the pinball ROMs for this era is it possible to view the logic code or am I going to have to reverse engineer from the gameplay behaviors/rules? Like I said I don't have any Assembly experience at this point but as long as the logic is accessible I can figure it out. I would like to reimplement an authentic experience as close to the real thing as possible. Something like a ROM decompiler or equivalent...
3. How forgiving is this hardware? Assuming I hook up the physical aspects correctly, is it feasibly possible to damage the machine/components via code bugs? Sounds like Ike has done the OS portion where I think a lot of this risk is with the AC cycle timings and stuff. Not a huge fan of unforgiving learning where a code mistake means you have to wait a week for a part from Digikey.

#113 4 years ago
Quoted from Dandelock:

1. I've seen some products which replace the entire MPU board with a newer smaller "smarter" board but after 10min of Googling I can't seem to find it. Is this ringing any bells? Any advantages to that solution?

Sounds like the LISY or the arduino setup. I think there was another one that plugged into the 6800 and replaced it made by someone in the UK, I think he's applejuice here? Not sure on that one. (There was a project from 2009/2010 or so where someone replaced the 6800 in a williams firepower with something else, but I've lost track of that setup, figures, once I want to experiment with it!)

If you mean replacement MPU's, both Alltek systems and Weebly https://nvram.weebly.com make universal replacement boards that are about 1/2 the size of the original Bally board. Alltek doesn't allow end users to change the rom code on it, and it's a direct replacement with dip switches to select your game. Weebly has an auxiliary 27512 eprom socket to allow experimentation, extra romspace via that socket ($1000-$ffff instead of $1000-$1fff, $5000-$5fff on bally original boards), and extra nvram ($100-$fff - which I think can dip even lower than the $100 but I've not formally tried that. Almost 1k of ram is enough anyway!)

Quoted from Dandelock:

2. For the pinball ROMs for this era is it possible to view the logic code or am I going to have to reverse engineer from the gameplay behaviors/rules? Like I said I don't have any Assembly experience at this point but as long as the logic is accessible I can figure it out. I would like to reimplement an authentic experience as close to the real thing as possible. Something like a ROM decompiler or equivalent...

Look into Pinmame debug versions. There is a link in the Oliver Kaegi site to it. It emulates the original boardset and you can disassemble the code. It's easier to either play the game and take notes or just take the rules from the manual to implement vs. learning how to disassemble and modify the original code. You can look at the 'stern galaxy disassembly' thread https://pinside.com/pinball/forum/topic/stern-galaxy-code-disassembly to see what some of the code might look like, but only the 6800 code there - Bally doesn't have an interpreted language like Stern mpu200 games did. The backend is very similar though, and the nvram from $200-$2ff is a full byte instead of a high nibble like Bally has.

Seriously, from a gameplay perspective, Playboy is extremely simple, especially if you don't implement odd combinations of dip switches and just decide on one. There isn't even a lot of carry over status IIRC. I have one torn apart in the basement that I should get back to at some point....

Quoted from Dandelock:

3. How forgiving is this hardware? Assuming I hook up the physical aspects correctly, is it feasibly possible to damage the machine/components via code bugs? Sounds like Ike has done the OS portion where I think a lot of this risk is with the AC cycle timings and stuff. Not a huge fan of unforgiving learning where a code mistake means you have to wait a week for a part from Digikey

Yes, you can blow stuff up. The hardware that drives coils and lamps is completely under your software control. The lamps will turn off on their own if not refreshed but the coils won't - they turn off if another coil fires, or at the expiration of a timer. If you read Ike's blog site he covers the timing issues. If your machine is fused properly it won't be that big of a deal, replace fuse. You learn to trust your ears and nose although once the nose smells the coil, the driving transistor is usually fried. But you'd listen for things locked on and not releasing.

If you were willing to put a weebly board in it I'd be willing to mock up Playboy's ruleset in either my new pinbol style OS or stern pigs, your choice. Stern Pigs I'd be willing to share the source code but the pinbol style OS is staying private for now source-wise. (i.e. it's not ready for prime time, and you can do almost everything in Pigs that you can do in it anyway)

If you want to do the Oliver PCK I can point you in the correct direction, but I don't use that one. I think he has some safeguards built into it for new people. all the pinball OS's do - for instance, on pigs you'd really have to do something dumb to have a coil lock on and stay on. The OS automatically turns off the coil after a specified time when you fire it.

For instance, the pigs code to fire the grotto in playboy would be: enable_solenoid_07 $14 - $14 is the time (longer, because it's a kickback) and solenoid 07 fires Q8. Now if you did something dumb like put $ff for the time, you'll likely blow a fuse, because that's just too long.

The only thing that pigs won't do is control the sound board, that would have to be written custom. I'd probably enlist Quench 's help for that since he has a bally playboy working AFAIK whereas I don't even though I have the game (it's a project!) I don't 'think' it would be too hard to implement the sound board, they are pretty basic in their operation, vs. say the sb-300 that's in the stern mpu200 games (which I was not able to get the timing down to activate on the pinbol os....yet....)

The arduino code looks C-like to me, you could probably get by with modifying what Ike's got going in it. I still think that would be the easiest to do what you're thinking, sound board code needs to be written for that as well I think.

I didn't spot a 6800 emulator for the arduino on a very cursory google search, but that doesn't mean there isn't one. Looks like someone did port over a 6809 emulator that I'll have to go checkout, but that wouldn't run the original code at all (6809 is source level compat. with 6800, but the opcodes are all different).

#114 4 years ago

Awesome community here, truly. I'm going to move forward with an Arduino Mega attached to J5 (and interrupt pin from the 8600 socket). I'm still reading through the thread but I'm way far on the novice side so I'm going to start slowly. My previously segmented knowledge is now coming together on how this works. As I understand it eliminating the need to communicate with the ROM/RAM chips greatly simplifies everything because all you're doing is interacting with the PIA chips and some timing signals from the board. You now get to choose how to react to those signals and what signals you send in response.

Mentally this is a really attractive situation because the game hardware now becomes just input and output devices and you have full control (for better or worse). I'm so glad I found this thread because it means the sky is the limit. Why WATCH the game when you can BE the game? I suppose you could do all kinds of crazy stuff like having a game mode where you have unlimited balls, just don't hit a specific target, otherwise gameover. Heck, the outhole could be a key game component now and emulate a mini-game within the larger game. Hit the 5 keys, drain the ball to enter a mini game mode where the whole playfield is reset for a short period to rack up a multiplier, then drain the ball again to resume the actual game, bringing back the previous playfield state before the minigame, but now with a point multiplier. If you were committed to 1 or 2 players only you could even use the P4/P5 displays for other game info, or even a LCD on the Arduino.

Is anything I'm saying there overstating the capabilities, or am I correct the sky is the limit (physical game capabilities aside obviously)?

#115 4 years ago
Quoted from Dandelock:

As I understand it eliminating the need to communicate with the ROM/RAM chips greatly simplifies everything because all you're doing is interacting with the PIA chips and some timing signals from the board. You now get to choose how to react to those signals and what signals you send in response.

Sort of - the ram/rom is replaced by the equivalent on the arduino, and the signals are another layer. You're interacting on an upper layer, one step removed from the hardware. You just let it do its thing, refreshing displays, timing solenoids, refreshing lamps, sending sound data to the sound board, and reading switches. You're not going to be changing that part too much I'd think, if at all, unless you want to tag a special message on when the switch is hit. I'd put that in the upper layer instead (reaction to the switch).

What you are choosing to react to and how is basically the switch events. All the rules in playboy are 2 pages in the manual, and that's if you want to implement all the dip settings (I wouldn't bother with that). Not having a multiball game to deal with or other oddball hardware helps.

Quoted from Dandelock:

Is anything I'm saying there overstating the capabilities, or am I correct the sky is the limit (physical game capabilities aside obviously)?

Depends on how sloppy you code it, I think Ike said he's at 96% capacity with a very generous amount of extra rules for Stars. Your data logging could take place via the serial monitor on a laptop or something to make it even easier, you don't have to get SD card support working.

One thing that you may wonder about (I did when I first started doing this) - is trying to identify what memory locations are keeping track of how many lamps you have lit, or keys on playboy, etc. - game status. Almost always, the game status is just whatever the lamp is.... there's no separate register in most cases that says "5 keys lit" - any routine that needs the key status just counts the lit lamps. That's not to say that you couldn't/shouldn't implement it if you have variable space, but if you do, document it well. I know when you write the code it seems obvious, but I'm a big fan of the one assembly directive, one comment philosophy, and more lines if needed. This will help debugging later.

#116 4 years ago
Quoted from Dandelock:

I want the game to play normal except I want to capture pretty much everything that "happens" during the game.

Interesting that you bring this up -- I went down this path very recently. When I was diagnosing a System 80 Gottlieb board, I interfaced an Arduino into TC1 and captured all the address/data signals while the machine was trying to boot so I could crawl through signals and figure out which chips were bad. The reason that worked for me was because I was able to single-step the System 80 (because the 6502 has single step capability, as opposed to the 6800, which only has a ready line).

When I tried the same thing with an Arduino and a -17 board, I discovered quickly that an Arduino Mega (running at 16MHz) was not fast enough to capture all the signals on the bus fast enough to log everything. Even in the simplest ISR I could write, I couldn't reliably catch every clock signal.

That's when I switched to the ESP32-S2-Saola board.
IMG_1806 (resized).jpegIMG_1806 (resized).jpeg

This board is pricey ($8), but it has 40GPIO pins, runs at 240 MHz, has 320kB of SRAM, etc. I've hooked my board up and I've been trying to capture signals. I haven't been successful yet. The ESP32-S2 documentation is horrible and some of the pins can't be used for buffered input. For example, it has an onboard NeoPixel LED and it's hardwired into pin 18. Try to use that as an input and the NeoPixel will eat the signals. Anyway, still working on it. My goal is nearly what you're talking about. There are still a couple of mysterious parts of the original code and I want to understand them completely by stepping through them on the original hardware. There are probably other (better) ways to do this, but I'm going down this path because I think the ESP32-S2 could be a more interesting implementation than the Arduino Nano.

So, I don't have anything really helpful to tell you except you might want to abandon the Arduino Mega if you want to capture the bus signals from the -35. It runs at 800-some kHz, right? That's going to be tough.
I can't yet prove that the ESP32-S2 will work, but I'll post if I get it going.

#117 4 years ago

So I'm making progress on this work. I purchased an Arduino Mega and was surprised to find that I need to make modifications to the code because the pins don't line up with the Nano. I was able to refactor the code to at least get the MachineDiagnostics.ino file to work.

I ended up with this pin configuration, of which the J5/Nano columns were taken from the latest Stars 2020 PDF.
Arduino Mega PinsArduino Mega Pins

Node the PD entries had to be changed to PL. As far as I can tell the Arduino Mega does not have PD4/5/6 pins, so I couldn't use them. I was able to reuse PB/PC pins.

Bottom line is I had to do a find and replace in the MachineDiagnostics.ino for the following:
DDRD -> DDRL
PORTD -> PORTL
PIND -> PINL

When booted I get this:


Start of program
Monitoring VMA signal, looking for presence of M6800 processor
Saw no sign of M6800 -- program will continue
Attempting to read & write from U10
Testing U10A Control Register
The U10A control register passed
Testing U10B Control Register
The U10B control register passed
Testing U11A Control Register
The U11A control register passed
Testing U11B Control Register
The U11B control register passed
Testing the clock cycle (if this hangs here, the conncection to clock is faulty)
It took 19144 microseconds for 10000 clock cycles
Clock frequency (very) approximately = 522 kHz
DIP Bank 0 = 0xFE
DIP Bank 1 = 0xFE
DIP Bank 2 = 0x7F
DIP Bank 3 = 0x4F
Starting interrupt tests - this is going to take 5 seconds to test
In 5 seconds, saw 601 U10B interrupts and 1722 U11A interrupts
Zero-crossing approx. 120.20 times a second
Display interrupt approx. 344.40 times a second
Interrupt tests done - if frequencies aren't approx 120 & 320, there's a problem with the interrupt line.
END OF TESTS

I was getting nowhere for a while but turns out I was clipped to the top of R34 instead of R134 and only noticed when watching one of the videos and I was like "my alligator clip doesn't go down there".

My next steps are going to be to create the test suite for the Bally Playboy and then on to game design.

DickHamill As I do work I'll be using a lot of your code and probably making some modifications. Are you interested in making this more of a community project? If so I don't mind doing the legwork to create a GitHub organization and do some re-arranging of the code files into repositories by purpose. Obviously you've done the majority of the work here so it would only be worth it if you agree to use the new organization. If you're not familiar with GitHub organizations it's no different, just instead of everything being under your name it would be under something like BallySternOS.

Example: https://github.com/BallySternOS

Then you would have like:
https://github.com/BallySternOS/Diagnostics
https://github.com/BallySternOS/SternStars2020
https://github.com/BallySternOS/BallyBlackjack2020
https://github.com/BallySternOS/BallyPlayboy2020

If you don't want to go down that path, do you want me to submit my changes (or new Playboy files) to you as a GitHub pull request, or not and just continue working on my own code base?

Thanks for all your work, even just getting this far is awesome. More to come...

#118 4 years ago

I currently have my 1978 Bally Playboy working through Self Test Mode using this code base. Sound doesn't work, but I think that's just because no sound self test code is written.

For now I'm maintaining my forked copy of the BallySternOS code with some updates (code and docs): https://github.com/ckabalan/BallySternOS

I found a few items from the last post I forgot to include, mostly that there were a few normal port accesses that were fixed too. You can see all the things I did to fix the Machine Diagnostics to work with the Mega here: https://github.com/ckabalan/BallySternOS/commit/5f37973de3e88270c14aa712b68ac63cc25c101a

Basically, I refactored the code itself to be more port-name agnostic and then set up a define section at the top which does the mappings. I also needed to refactor the VMA and RW ports (I forgot to include it in my last post, but it was in the code).

Anyways for now I'm doing Bally Playboy 2020 here: https://github.com/ckabalan/BallyPlayboy2020

Small annoyance is that I can't drop "Bally" from the name since Stern and Bally both made Playboy machines...

It's basically the same refactoring as the diagnostic code, but performed on the full code base (BallySternOS, SelfTestAndAudit, BallyPlayboy2020). Here is what I had to change to get it working on the Arduino Mega: https://github.com/ckabalan/BallyPlayboy2020/commit/c6aff9fb133fdc175240d73eb97bcc97d9f377cc

I can't overstate how amazing this project is. When I pulled down the code, did the refactoring, tweaked the timings, and uploaded it and it mostly just worked I was amazed. Of course still a lot to do with mapping switches/solenoids, and figuring out sound should be fun.

Again would love to collaborate and maintain a central codebase if people are willing to.

What Arduino IDE is everyone using? I'm getting by with the default for now but I see a lot of people online are using PlatformIO with a text editor (VSCode/Atom).

20200714_153848.jpg20200714_153848.jpg

#119 4 years ago
Quoted from Dandelock:

Are you interested in making this more of a community project?

100%

Quoted from Dandelock:

Again would love to collaborate and maintain a central codebase if people are willing to.

Absolutely.

I'm currently just lurking here because of family commitments at the moment, but I really would like to move this to a community project, and I have zero GitHub expertise. I would like to maintain stewardship of the base files (BallySternOS & SelfTestAndAudit), but then I believe that each project (like Stars2020, etc.) should be stewarded by each designer/developer. I have been hoping to get more GitHub experience involved with the structure of this project.

PM me about specifics, if you want. I love the idea of moving the pin assignments to defines so it can work with multiple boards.

#120 4 years ago

Before I started development on re-creating the game rules I wanted to go back and make a perfboard with the switch in the front of the pinball so I didn't have to remove the backglass everytime I wanted to work on it or someone wanted to play using stock CPU/ROMs. The pins are the same as my post above, with the addition of the 74HC125 chip to HALT the stock CPU. Those pins don't affect the Arduino AT ALL, they only control J5 pins 10/13/24.

Here is my basic wiring (red = traces, blue = wires). This doesn't include most of the data pins, and it is mostly meant to be instructions on what to do first. That would be to get the 74HC125 hooked up right with the switch, power/ground to the Arduino, and the special MPU R134 IRQ hookup. After I did the tracework on the diagram below I worked through the pin table and did the rest of the point to point wiring.

Perfboard DiagramPerfboard Diagram

Here is the final wiring:

Perfboard WiringPerfboard Wiring

And "mounted":

Mounted Arduino MegaMounted Arduino Mega

This passes the machine diagnostics and test/audit mode.

A few things I'm curious about:
- The Stern Stars 2020 PDF connection diagram shows J5 pin 17 going to Arduino Nano Pin D13. Pin 17 isn't in the connection chart and I didn't notice until after I wired everything up. So far mine seems to be working fine. Is J5 Pin 17 used or not?
- The post on this thread references the 74126 chip, and the Stern Stars 2020 PDF shows 74125. The wiring is a bit different so the chips might have different purposes. I implemented it using the PDF version and chip 74HC125. I also noticed the diagram here (and some datasheets) use 1G/2G/3G/4G for the pins on the IC, but others use 1OE/2OE/3OE/4OE. I'm not sure the difference. The datasheet for the chip I used used the OE names but it works as intended.

Next on to adjusting the Self Test and Audit mode to cycle through the right solenoids and hopefully get sound working.

#121 4 years ago

Your implementation looks good. There are places in the documentation that need updating.

Quoted from Dandelock:

- The Stern Stars 2020 PDF connection diagram shows J5 pin 17 going to Arduino Nano Pin D13. Pin 17 isn't in the connection chart and I didn't notice until after I wired everything up. So far mine seems to be working fine. Is J5 Pin 17 used or not?
- The post on this thread references the 74126 chip, and the Stern Stars 2020 PDF shows 74125. The wiring is a bit different so the chips might have different purposes. I implemented it using the PDF version and chip 74HC125. I also noticed the diagram here (and some datasheets) use 1G/2G/3G/4G for the pins on the IC, but others use 1OE/2OE/3OE/4OE. I'm not sure the difference. The datasheet for the chip I used used the OE names but it works as intended.

J5:17 to D13 is optional for people passing through to control the SB-100. It's an optional address line.
I drew the circuit with the 126 but later found better sourcing for the 125. The only difference is whether it uses G or /G (inverted G). I currently use the 125 and pull /G2-4 up with a 10k resistor and then ground it to activate the Arduino (as in the diagram in the Stars doc). On your perfboard diagram it appears that's precisely what you've done. As you noted, some call it /G and some /OE (output enable, I suppose). Same thing.

On the GitHub side, I'm currently struggling to learn how to move files from one repo to another and preserve history. Lots of people describe it, but I must not be following the steps correctly.

#122 4 years ago

I blew the 1A playfield fuse accidentally because I flashed my Arduino Mega with the Arduino Nano MachineDiagnostics code. Because all the pins are different it incorrectly detected that the M6800 was missing (it was running) and started talking to everything during startup. I had about 10 2A, 2.5A, 3A fuses, but zero 1A fuses... Isn't that always the way? Anyway I got the right diagnostic code and all is good again (except the playfield solenoids).

Some pretty interesting things happen when both CPUs try to control the system. I'm sure you've seen it too. When I go into the stock test mode all the settings are screwed up. Weird stuff like the free credit settings when you pass certain points are set to random numbers like 18,100. I didn't get out the manual to check what data I was viewing but I'm pretty sure it screwed all the audit stuff up too, like six-figure play counts. I assume wires got crossed with both CPUs communicating on the bus and the NVRAM received all kinds of crazy values.

Quoted from DickHamill:

J5:17 to D13 is optional for people passing through to control the SB-100. It's an optional address line.

Does this apply to the Bally AS-2518-32 sound board? I current don't have D13 connected, will that inhibit me there? I've yet to hear sound from the Pinball Machine Base test mode, but I don't think that base does sound. I haven't looked into it though. The knocker does work though, and I think that's controlled somewhat by the sound board on this machine.

Quoted from DickHamill:

On the GitHub side, I'm currently struggling to learn how to move files from one repo to another and preserve history. Lots of people describe it, but I must not be following the steps correctly.

What exactly are you trying to do? I can help out. Typically people just leave behind the history if they move file between repos. The problem is usually_ all branches in a repository have a common ancestor commit. That's usually the first commit of the repository, or the commit where they branched off. What you're talking about is fairly advanced git work, and is merging with unrelated histories. I haven't done this before myself, but I'm pretty good with git, so if you let me know what you want done I can probably do it if the target repo you want everything to end up in is in the BallySternOS organization.

#123 4 years ago
Quoted from Dandelock:

I blew the 1A playfield fuse accidentally because I flashed my Arduino Mega with the Arduino Nano MachineDiagnostics code. Because all the pins are different it incorrectly detected that the M6800 was missing (it was running) and started talking to everything during startup. I had about 10 2A, 2.5A, 3A fuses, but zero 1A fuses... Isn't that always the way? Anyway I got the right diagnostic code and all is good again (except the playfield solenoids).
Some pretty interesting things happen when both CPUs try to control the system. I'm sure you've seen it too. When I go into the stock test mode all the settings are screwed up. Weird stuff like the free credit settings when you pass certain points are set to random numbers like 18,100. I didn't get out the manual to check what data I was viewing but I'm pretty sure it screwed all the audit stuff up too, like six-figure play counts. I assume wires got crossed with both CPUs communicating on the bus and the NVRAM received all kinds of crazy values.

Does this apply to the Bally AS-2518-32 sound board? I current don't have D13 connected, will that inhibit me there? I've yet to hear sound from the Pinball Machine Base test mode, but I don't think that base does sound. I haven't looked into it though. The knocker does work though, and I think that's controlled somewhat by the sound board on this machine.

What exactly are you trying to do? I can help out. Typically people just leave behind the history if they move file between repos. The problem is usually_ all branches in a repository have a common ancestor commit. That's usually the first commit of the repository, or the commit where they branched off. What you're talking about is fairly advanced git work, and is merging with unrelated histories. I haven't done this before myself, but I'm pretty good with git, so if you let me know what you want done I can probably do it if the target repo you want everything to end up in is in the BallySternOS organization.

#124 4 years ago
Quoted from DickHamill:

That's when I switched to the ESP32-S2-Saola board

The Teensy 3.6 has been my goto-board lately. Nice and fast (180Mhz), no funny Neo-Pixels, onboard SD card slot, lots of memory and I/O, programs easily from the Arduino IDE.

https://www.sparkfun.com/products/14057#features-tab

There is also a 4.0 board with processor running at 600Mhz but that's faster than I need....

#125 4 years ago
Quoted from Dandelock:

I flashed my Arduino Mega with the Arduino Nano MachineDiagnostics code

I wonder if there are processor definitions we could add to trigger compiler errors? Like, if the IDE was configured for MEGA, have it error out and stop compilation if the code is configured for NANO. Or, better yet, trigger the pin definitions based on what the IDE is configured for?

Quoted from Dandelock:

Isn't that always the way?

Yes!

Quoted from Dandelock:

Does this apply to the Bally AS-2518-32 sound board?

I haven't done much at all with Bally/Stern sound boards. It might be in this thread somewhere. I just remember that one of the boards needed one more address line and D13 was available.

Quoted from Dandelock:

What exactly are you trying to do?

I transferred my code (history and all) to https://github.com/BallySternOS/BallySternOS
I thought that would be the right place to put the "Library" packaged up for Arduino.
Then, I want to move the files from https://github.com/BallySternOS/BallySternOS/tree/master/Stars2020
to https://github.com/BallySternOS/Stars2020

I found instructions here: https://medium.com/@ayushya/move-directory-from-one-repository-to-another-preserving-git-history-d210fa049d4b
but I'm doing something wrong.

#126 4 years ago
Quoted from Snux:

The Teensy 3.6 has been my goto-board lately.

Great features on that board. Maybe I'll give it a shot. I know I'm cheap, but $29 is a little pricey for my goals. I would like to keep the hardware costs under $20 for everything (except add-on sound, of course).

#127 4 years ago
Quoted from DickHamill:

I wonder if there are processor definitions we could add to trigger compiler errors? Like, if the IDE was configured for MEGA, have it error out and stop compilation if the code is configured for NANO. Or, better yet, trigger the pin definitions based on what the IDE is configured for?

Not sure if we can do that in the Arduino code, but people do use other IDEs. I've been playing around with PlatformIO ( https://platformio.org/ ) with Visual Studio Code, which a lot of people seem to use. PlatformIO is pretty opinionated about project structure (defining the directory structure for you), but bringing in the Arduino code was easy. I just used the "Import Arduino Project" function and it gives you some hints. Basically rename the .ino file to .cpp and add the Arduino.h header. After I did that I was able to compile and push without issue. You can see an example in the Bally Playboy 2020 code here in the Arduino directory: https://github.com/BallySternOS/BallyPlayboy2020

A easier way might be to leave all definitions commented and require uncommenting of the relevant device? That way it wouldn't even compile unless someone read the documentation. Better would be to (as you've implied) make it a setting between "ArduinoNano", "ArduinoMega" and "None" (default).

Quoted from DickHamill:

I haven't done much at all with Bally/Stern sound boards. It might be in this thread somewhere. I just remember that one of the boards needed one more address line and D13 was available.

When I get there I'll post back here...

For your GitHub issue, honestly here is what I would do. I would take your BallySternOS code (which currently includes Stars2020) and push the entire repo to the Stars2020 repo. You would have BallySternOS and Stars2020 repos with effectively the same code and history. Then I would just delete all the unnecessary files out of the Stars2020 repo, refactor the structure as you like, and do your commit/push. Any files that were delete will still be in the history, but won't be obvious. No one will find the deleted BallySternOS code in the Stars2020 repo there unless they're specifically looking for it. If they want to see the history of a Stars2020 file the whole history will still be there. I'm usually pretty picky about keeping projects clean, and what I've described doesn't seem unreasonable or "dirty" to me.

If you want me to do it, let me know. Only takes a few minutes.

#128 4 years ago
Quoted from DickHamill:

Great features on that board. Maybe I'll give it a shot. I know I'm cheap, but $29 is a little pricey for my goals. I would like to keep the hardware costs under $20 for everything (except add-on sound, of course).

I'm just an impressed bystander on this thread which is such a cool idea and whilst beyond me to offer contribution is great to follow along and read about.

When I ran into performance limitations on a Nano for a WMS display replacement I started looking at ESP32-S2 boards. Cheaper than Teensy and much faster than Nano. It's being / has been implemented into the Arduino IDE so might be worth a look and suits your price point.

#129 4 years ago
Quoted from SYS6:I started looking at ESP32-S2 boards

Yes! I'm going down that path already. The board is a bit of a challenge to work with, but I've had some success.
I hope to do more with that board into the future and maybe work it in as an option for the OS.
One great thing about that board is the number of IO pins. I also like the WiFi, but the boards you get from DigiKey are jumpered to work with an external antenna instead of the built-in. It's a challenge to move that tiny jumper.

7 months later
#130 3 years ago

I hope it is okay to ask questions about the technical details at the beginning? Can someone help me understand the combined solenoid and sound data?

How is a solenoid held on for multiple zero crossings unless you have to hold up doing any sound requests while the solenoid is on? Solenoids have to stay on for a long time compared to normal data transitions. I saw a comment by DickHamill about interrupting the power briefly to service a sound request but I thought that would violate the need to only shut off a solenoid near a zero crossing?

#131 3 years ago
Quoted from BJM-Maxx:

How is a solenoid held on for multiple zero crossings unless you have to hold up doing any sound requests while the solenoid is on? Solenoids have to stay on for a long time compared to normal data transitions. I saw a comment by dickhamill about interrupting the power briefly to service a sound request but I thought that would violate the need to only shut off a solenoid near a zero crossing?

The sound code saves the PIA register for the momentary solenoids, the sound select pin is toggled, the sound data is put on the the PIA port, sound board grabs the 5 bits (4 from the PIA, and one from the address E). Then the sound code puts the original contents back.... it's so short that the solenoid driver board doesn't drop the solenoid being currently activated.

#132 3 years ago

bluebomber and I have been making updates to the BSOS library recently to make it more compatible with different architectures. Here's a list of improvements. Most of these can be enabled in the game's BSOS_Config.h file.

* The library now supports Aux lamps boards for games with more than 60 lamps (BALLY_STERN_OS_USE_AUX_LAMPS)
* The library supports 7-digit displays (BALLY_STERN_OS_USE_7_DIGIT_DISPLAYS)
* It also supports 6-digit displays for credits/BIP (BALLY_STERN_OS_USE_6_DIGIT_CREDIT_DISPLAY_WITH_7_DIGIT_DISPLAYS)
* The library has support for using an onboard Arduino timer for the displays instead of the 555 on the MPU (BALLY_STERN_OS_SOFTWARE_DISPLAY_INTERRUPT). Enabling this removes dependency on the hardware Display Interrupt Generator. The frequency of the display refresh can be controlled (BALLY_STERN_OS_SOFTWARE_DISPLAY_INTERRUPT_INTERVAL)
* The SB100 is now fully supported (BALLY_STERN_OS_USE_SB100)
* The SB300 is supported with Hardware Rev 2 - details coming soon (BALLY_STERN_OS_USE_SB300)
* The Bally Squawk and Talk is now supported (BALLY_STERN_OS_USE_SQUAWK_AND_TALK)

The library and game implementations can be found here:
https://github.com/BallySternOS

#133 3 years ago

If I add the WAV trigger do you have a library of the WAV files you used in your video, or do I need to supply my on files? If I need to supply them do I need to name them something specific to line up with the code?

#134 3 years ago
Quoted from yemons:

If I add the WAV trigger do you have a library of the WAV files you used in your video, or do I need to supply my on files? If I need to supply them do I need to name them something specific to line up with the code?

There's a zip file with all the sound effects for each of the projects where I've added digital sounds (so far: Stars, Trident, and Meteor).
Look at the end of the Readme in each of the projects on GitHub.
Stars - https://github.com/BallySternOS/Stars2020
Trident - https://github.com/BallySternOS/Trident2020
Meteor - https://github.com/BallySternOS/Meteor2021

If you want to create your own library of sound effects, it's very easy. You simply name each wav file beginning with a number that lines up with the sound effect ID. So, in the Stars ino file, near the top, you'll see
#define SOUND_EFFECT_STAR_REWARD 1

when triggered that calls
001_StarReward.wav

#135 3 years ago
Quoted from DickHamill:

There's a zip file with all the sound effects for each of the projects where I've added digital sounds (so far: Stars, Trident, and Meteor).
Look at the end of the Readme in each of the projects on GitHub.
Stars - https://github.com/BallySternOS/Stars2020
Trident - https://github.com/BallySternOS/Trident2020
Meteor - https://github.com/BallySternOS/Meteor2021
If you want to create your own library of sound effects, it's very easy. You simply name each wav file beginning with a number that lines up with the sound effect ID. So, in the Stars ino file, near the top, you'll see
#define SOUND_EFFECT_STAR_REWARD 1
when triggered that calls
001_StarReward.wav

Perfect, thanks for the info and for making this awesome project available!

1 week later
#136 3 years ago

Soldered up 2 of RoyGBev's boards today. I only had my Eight Ball to try them in. One board would not work but the other fired up with FG2021 and produced an interesting attract sequence. Never found anything wrong with the other one but after cleanging it with contact cleaner and a tooth brush it now worked.

I tried FG2021, Meteor, and Mata Hari code. Each one came into attract mode. What I found odd is that the diagnostic sequences don't seem to match the list in the BSOS code. I also noticed that in the Mata Hari solenoid test, the kick back on Eight Ball actuated when it should but also when at least 3 other solenoids fired.

2 weeks later
#137 3 years ago
Quoted from BJM-Maxx:

Soldered up 2 of RoyGBev's boards today. I only had my Eight Ball to try them in. One board would not work but the other fired up with FG2021 and produced an interesting attract sequence. Never found anything wrong with the other one but after cleanging it with contact cleaner and a tooth brush it now worked.
I tried FG2021, Meteor, and Mata Hari code. Each one came into attract mode. What I found odd is that the diagnostic sequences don't seem to match the list in the BSOS code. I also noticed that in the Mata Hari solenoid test, the kick back on Eight Ball actuated when it should but also when at least 3 other solenoids fired.

The Mata Hari diagnostic menu had a bug where it was skipping over option 12. I've fixed it, but I don't think I've checked it in yet. Meteor had a different bug where the option number was sometimes not displaying. That fix has been checked in. I believe that Meteor's diagnostic menus should match the PDF here:
https://github.com/BallySternOS/Meteor2021

As far as the solenoids go, that could be a number of things. Mata Hari code is not up to speed yet with latest timing improvements. If you see solenoid problems when running the Meteor (or Trident, Stars, etc.) code, please post them or send them to me. Thanks!

#138 3 years ago

Thanks to @RoyGBev, I've tested Rev2 of the hardware. It adds an extra IC, but allows the board to also talk to the Stern SB-300 Sound Card.

Video description is here:

Schematics are on GitHub:
https://ballysternos.github.io/hardware.html

Documentation is still evolving, but if you're comfortable with schematics, it's buildable. I think RoyGBev is going to release a Rev 2 kit.

#139 3 years ago

Really exciting update for me. As soon as the rev2 kit is available I'll be building one for my Meteor. Thanks for all your work.

#140 3 years ago

DickHamill, I posed a question in Solid State Tech, re: replacing MPU-200 with -17 Bally, received a NO answer, based upon processor speed and address mapping. That post didn't address my purpose, as I didn't state it, outright.

Since I received a "not so good" reply on using the weebly.nvram.com replacement board with the Arduino, and having a -17 board on hand, I wondered if I could place the Arduino onto a -17 and have the combo work in a Stern Meteor, considering that the Arduino has its own clock.

So.. will Arduino (on RoyGBe board, with wav trigger), on Bally -17 MPU board work for Stern Meteor, in place of MPU-200?

#141 3 years ago
Quoted from keith20mm:

DickHamill, I posed a question in Solid State Tech, re: replacing MPU-200 with -17 Bally, received a NO answer, based upon processor speed and address mapping. That post didn't address my purpose, as I didn't state it, outright.
Since I received a "not so good" reply on using the weebly.nvram.com replacement board with the Arduino, and having a -17 board on hand, I wondered if I could place the Arduino onto a -17 and have the combo work in a Stern Meteor, considering that the Arduino has its own clock.
So.. will Arduino (on RoyGBe board, with wav trigger), on Bally -17 MPU board work for Stern Meteor, in place of MPU-200?

As long as you connect that extra jumper that comes with the RoyGBev board I would expect that the -17 board will work well. Actually may work better than on an MPU-200 at the moment.

#142 3 years ago
Quoted from keith20mm:

DickHamill, I posed a question in Solid State Tech, re: replacing MPU-200 with -17 Bally, received a NO answer, based upon processor speed and address mapping. That post didn't address my purpose, as I didn't state it, outright.
Since I received a "not so good" reply on using the weebly.nvram.com replacement board with the Arduino, and having a -17 board on hand, I wondered if I could place the Arduino onto a -17 and have the combo work in a Stern Meteor, considering that the Arduino has its own clock.
So.. will Arduino (on RoyGBe board, with wav trigger), on Bally -17 MPU board work for Stern Meteor, in place of MPU-200?

I've run Meteor on a -35 with no problems. I can't imagine why it wouldn't work. You won't be able to talk to the SB-300, so a Wav Trigger will be necessary for sound (which is true for everyone at the moment, because I haven't published my SB-300 version).
The big differences between the -17 and 200 are clock speed (you'll want to adjust a couple of timing defines), CRAM width (Arduino doesn't care), pins on J5 (you'll need to run a wire over to the top leg of R134 for the IRQ), and support for the second coin-door switch. My software doesn't do anything with the second coor-door switch, so no big deal there.

On a -17, I recommend these values in BSOS_Config.h
#define BSOS_NUM_SWITCH_LOOPS 70
#define BSOS_NUM_LAMP_LOOPS 30

Please let me know if you see any issues and I'll try to help you solve them.

Edit: I just noticed that Robotworkshop said the same thing in a much more clear & concise way. Yes - should work... Use the jumper for IRQ.

#143 3 years ago

I'm having issues getting the WAV Trigger working on my Stars. I'm using the RoyGBev board with the included WAV Trigger connector as shown in the pic. I can hit the test button on the WAV Trigger and it plays the first sound file, but I'm not getting sounds during gameplay. Here are the steps I took. Could someone see if I did something wrong or missed something?

- Downloaded the WAV Trigger Arduino Serial Library
- In the Arduino IDE I included the .ZIP Library
- Went to the libraries folder and edited the wavTrigger.h file to comment out all of the serial #define lines
- In Arduino IDE I went to the library and added the #include <wavTrigger.h> line at the top of Stars2020
- Also commented out #define USE_CHIMES and then added the #define USE_WAV_TRIGGER
- Uploaded to the Nano

Appreciate the help in getting this working.

PXL_20210422_032049704 (resized).jpgPXL_20210422_032049704 (resized).jpg
#144 3 years ago
Quoted from yemons:

I'm having issues getting the WAV Trigger working on my Stars. I'm using the RoyGBev board with the included WAV Trigger connector as shown in the pic. I can hit the test button on the WAV Trigger and it plays the first sound file, but I'm not getting sounds during gameplay. Here are the steps I took. Could someone see if I did something wrong or missed something?
- Went to the libraries folder and edited the wavTrigger.h file to comment out all of the serial #define lines
- In Arduino IDE I went to the library and added the #include <wavTrigger.h> line at the top of Stars2020
- Also commented out #define USE_CHIMES and then added the #define USE_WAV_TRIGGER

[quoted image]

Are you supposed to comment out the serial define lines? I think you need those to serially talk to the WAV trigger.

#145 3 years ago
Quoted from Robotworkshop:

Are you supposed to comment out the serial define lines? I think you need those to serially talk to the WAV trigger.

I believe per the instructions pdf that you are supposed to comment them out to make sure it uses the hardware serial port of the Arduino.

#146 3 years ago
Quoted from yemons:

I believe per the instructions pdf that you are supposed to comment them out to make sure it uses the hardware serial port of the Arduino.

I'm used to the updated Meteor code and never had to touch those entries. Only had to tweak a field to specify what version of the Firmware is on the WAVtrigger. Maybe that is different for the other games it runs on.

#147 3 years ago
Quoted from Robotworkshop:

I'm used to the updated Meteor code and never had to touch those entries. Only had to tweak a field to specify what version of the Firmware is on the WAVtrigger. Maybe that is different for the other games it runs on.

I didn't do anything with the Firmware on the WAV Trigger. I wonder if I need to update that somehow. I also didn't have the WAV Trigger board connected to the Nano when I did the upload. Could that also cause issues?

#148 3 years ago
Quoted from yemons:

I didn't do anything with the Firmware on the WAV Trigger. I wonder if I need to update that somehow. I also didn't have the WAV Trigger board connected to the Nano when I did the upload. Could that also cause issues?

Not having it connected shouldn't make any difference uploading the code to the NANO board. On the WAV trigger the only thing that needs to be done on all is to solder bridge a couple pads so it can be powered through that 6pin cable.

You may not need to update the Firmware on the WAVtrigger. It was optional for Meteor and I did it. There are two lines to configure what version of WAVtrigger firmware is in use. By default it was the older versions that ships on the boards. If you update the firmware then you uncomment the line for the 1.3x firmware and comment out the other. This is on Meteor so it is possible requirements are slightly different for other games.

#149 3 years ago

The new model of RoyGBev adapter, supporting SB-300 and Squawk and Talk, will be released next week, thank you.

#150 3 years ago
Quoted from yemons:

I'm having issues getting the WAV Trigger working on my Stars. I'm using the RoyGBev board with the included WAV Trigger connector as shown in the pic. I can hit the test button on the WAV Trigger and it plays the first sound file, but I'm not getting sounds during gameplay. Here are the steps I took. Could someone see if I did something wrong or missed something?
- Downloaded the WAV Trigger Arduino Serial Library
- In the Arduino IDE I included the .ZIP Library
- Went to the libraries folder and edited the wavTrigger.h file to comment out all of the serial #define lines
- In Arduino IDE I went to the library and added the #include <wavTrigger.h> line at the top of Stars2020
- Also commented out #define USE_CHIMES and then added the #define USE_WAV_TRIGGER
- Uploaded to the Nano
Appreciate the help in getting this working.
[quoted image]

Hi Yemons - my apologies, I think there is documentation out there that I haven't updated! A little while ago, I moved away from the stock Wav Trigger software, because it included a lot of stuff unnecessary for this project and I was looking to trim things down. Now, everything you needed is bundled with the Stars project (in files called SendOnlyWavTrigger.*).
You're most of the way there.

Assuming you have latest from Stars2020 and BallySternOS (on GitHub), and you've unpacked everything to the same folder, you should only need to touch BSOS_Config.h
In that file, you'll find a commented define that looks like this:
//#define USE_WAV_TRIGGER
Uncomment that line and upload the software again to the Arduino and it should allow you to update the "Music Level" adjustment to 5 (previous max was 3). This is under the diagnostic menu from the coin door switch. Music Level is menu item 14, I believe. I think this document is up to date:
https://github.com/BallySternOS/Stars2020/blob/master/Stars2020%20One%20Sheet.pdf
It's hard to keep on top of all the documentation though.

Give that a try. The next game after you exit diagnostics should trigger the sounds.
If you have the means, update the firmware of your Wav Trigger and use the define:
//#define USE_WAV_TRIGGER_1p3
instead of the other one.
Robotworkshop wrote good instructions for this somewhere. I'll see if I can get them posted to the wiki.

Promoted items from Pinside Marketplace and Pinside Shops!
$ 29.00
Boards
RoyGBev Pinball
 
$ 12.00
Playfield - Toys/Add-ons
UpKick Pinball
 
From: $ 50.75
Playfield - Other
Rocket City Pinball
 
$ 149.95
Boards
Allteksystems
 
Wanted
Machine - Wanted
St. Louis, MO
$ 29.00
Boards
RoyGBev Pinball
 
$ 130.00
Playfield - Protection
Beehive Pinball Co.
 
$ 169.00
Wanted
Machine - Wanted
Maple Ridge, BC
From: $ 1.00
Playfield - Other
Rocket City Pinball
 
There are 282 posts in this topic. You are on page 3 of 6.

Reply

Wanna join the discussion? Please sign in to reply to this topic.

Hey there! Welcome to Pinside!

Donate to Pinside

Great to see you're enjoying Pinside! Did you know Pinside is able to run without any 3rd-party banners or ads, thanks to the support from our visitors? Please consider a donation to Pinside and get anext to your username to show for it! Or better yet, subscribe to Pinside+!


This page was printed from and we tried optimising it for printing. Some page elements may have been deliberately hidden.

Scan the QR code on the left to jump to the URL this document was printed from.