(Topic ID: 271008)

Stars 2020 Side Project - digital sound


By DickHamill

26 days ago



Topic Stats

  • 33 posts
  • 10 Pinsiders participating
  • Latest reply 12 days ago by dothedoo
  • Topic is favorited by 7 Pinsiders

You

Linked Games

  • Stars Stern Electronics, 1978

Topic Gallery

One image has been uploaded to this topic. (View topic image gallery).

20200616_211213 (resized).jpg

10
#1 26 days ago

Some folks were talking about adding digital sounds to an early SS machine, so I gave it a try with my newest revision of Stars2020. If you're not familiar, this project updated the rules of Stars (1978) by adding an Arduino Nano to J5 of the Stern MPU100. The goals of that project were:
1) Deeper game play (3-levels of stars, wizard mode).
2) Modern features (ball save, tilt warnings, free play, etc.).
3) Cheap (I worked to keep the hardware costs under $20).
4) Leave the original hardware intact (newest revision allows for dual boot - old & new).

With those accomplished (documented here: https://pinside.com/pinball/forum/topic/stars-2020-new-code-for-stern-stars-1978), I expanded the scope a little and spent $44 on a WAV Trigger board. The WAV trigger is plugged into a serial line on the Nano and it drives an old set of speakers I had lying around.
Here's a video I made of the result:

#2 25 days ago

Fantastic! I love it!

#3 25 days ago
Quoted from Xtraball:

Fantastic! I love it!

Shoot, I was supposed to drive a circuit board down to you. It must have slipped my mind.

#4 25 days ago

Yeah, but your bad memory works out great cuz now, you can bring that sound board thingy with you too!

#5 25 days ago

That's awesome!

#6 25 days ago

Great work!

#7 25 days ago
Quoted from DickHamill:

Some folks were talking about adding digital sounds to an early SS machine, so I gave it a try with my newest revision of Stars2020. If you're not familiar, this project updated the rules of Stars (1978) by adding an Arduino Nano to J5 of the Stern MPU100. The goals of that project were:
1) Deeper game play (3-levels of stars, wizard mode).
2) Modern features (ball save, tilt warnings, free play, etc.).
3) Cheap (I worked to keep the hardware costs under $20).
4) Leave the original hardware intact (newest revision allows for dual boot - old & new).
With those accomplished (documented here: https://pinside.com/pinball/forum/topic/stars-2020-new-code-for-stern-stars-1978), I expanded the scope a little and spent $44 on a WAV Trigger board. The WAV trigger is plugged into a serial line on the Nano and it drives an old set of speakers I had lying around.
Here's a video I made of the result:

Incredible!!

What wav trigger did you use and where can we download those audio files.. so perfect!!!!

#8 25 days ago

Wow! That totally transforms the game and the play experience. Fantastic job on the sounds.

#9 25 days ago
Quoted from vbittnv:

Incredible!!
What wav trigger did you use and where can we download those audio files.. so perfect!!!!

WAV Trigger is here:
https://www.sparkfun.com/products/13660

Code, build instructions, and manual here:
https://github.com/MrEkted/BallySternOS

Wav zip is here:
https://drive.google.com/file/d/1rbLA-aZqXULq8KrAlTwHowQ2WFO9VbFQ/view?usp=sharing

#10 25 days ago

Awesome stuff, can’t keep up, we are still having troubles getting the new code to work in machine and then this comes out wow, awesome stuff!!! We try again this week to get this installed. If we do we still plan to stream.

#11 25 days ago

Chimes or Skrillex; I'll keep the Chimes

#12 24 days ago

Oh yeah... Now to put it all back together.

20200616_211213 (resized).jpg
#13 24 days ago
Quoted from CousinPookie:

Oh yeah... Now to put it all back together.
[quoted image]

Wow - cool. I just checked in code that I've been tweaking today. If you have the capability, you might want to re-flash your WAV Trigger up to 1.30b if it's not already that or greater:
https://robertsonics.com/wav-trigger-downloads/

I don't have a way to flash mine right now, or I would. Version 1.3 adds the ability to "lock" a looping voice (like the background music). I noticed that if you rip the spinner, it plays enough sounds to stop the background music. So, in my latest check-in spinner sounds (and bumpers, 10-pts, rollovers), will stop previous instances of themselves before starting a new one. It works, but it sounds better stacked so I'll put in a compiler switch when I get the latest WAV Trigger firmware loaded here.

Let me know if you have 1.3 or greater, and I'll put up a version for you to test that takes advantage of that capability.

If you get a chance, post a video when you get the sounds up and running.

#14 24 days ago

dickhamill: I'll try to update the firmware now. I've added the Wavtrigger library in the IDE, but I don't see the Wavtrigger.h file in your .zip from Github.

Thanks

ETA: The sketch won't compile because it's trying to use AltSoftSerial. I'll be using the hardware port.

#15 24 days ago
Quoted from CousinPookie:

dickhamill: I'll try to update the firmware now. I've added the Wavtrigger library in the IDE, but I don't see the Wavtrigger.h file in your .zip from Github.
Thanks
ETA: The sketch won't compile because it's trying to use AltSoftSerial. I'll be using the hardware port.

Yeah - you have to track down the wavTrigger.h where it's installed. There are instructions somewhere on that site, but I'm not seeing them at the moment. I believe that by default, you should find the library installed in:
Documents > Arduino > Libraries > WAV-Trigger-Arduino-Serial-Library-master

Then if you update that wavTrigger.h, it shouldn't need the AltSoftSerial.

#16 24 days ago

Why do you have to re-compile to change between chimes and wave sound? Why don’t you just have a switch that turns the power off to the chimes and the power on to the wave board? Since you’re coming off the serial port on the nano that can stay connected all the time. That is if the wave board is powered off who cares if you’re sending stuff out the serial port?

#17 24 days ago
Quoted from cfh:

Why do you have to re-compile to change between chimes and wave sound? Why don’t you just have a switch that turns the power off to the chimes and the power on to the wave board? Since you’re coming off the serial port on the nano that can stay connected all the time. That is if the wave board is powered off who cares if you’re sending stuff out the serial port?

Two reasons:
1) I don't want a dependency on the WAV Trigger library for people who don't intend to use it. It can be a pain to install & configure that library and if you don't have the hardware, there's no reason to go through that dependency.

2) Size is an issue. Compiled for both Chimes & WAV Trigger, the code is now 97% capacity. That really limits future changes to the underlying OS & bug-fixes, etc. I've recently pushed an update where WAV Trigger and Chimes can be compiled as either or both, so if someone wants the option it's there. On a machine with both enabled, the Music Level setting goes from 0-5.

#18 24 days ago

Personally i'm sticking with the chimes. but the music idea is pretty cool. to me a real improvement would be VOICE. making the game talk would be pretty awesome...

#19 24 days ago
Quoted from cfh:

Personally i'm sticking with the chimes. but the music idea is pretty cool. to me a real improvement would be VOICE. making the game talk would be pretty awesome...

I'm down with that idea (voice) -- a friend said the same thing the second he heard it.
I just need to find someone who sounds good & has a decent microphone and everything.
I know a couple of v/o people. I'll ask around.

#20 23 days ago

what i've done is to record the phrases wanted, using my voice, as place holders. then get it all working. after that i have a friend with a better voice do the voice overs. it's really much better to do it like this. because you'll find things like timing and exact wording to change as you program it. then you can ask your friend to do the voices *once* instead of pestering him to death! trust me on this... been there done that...

also if you have Audacity i've found you can take a crappy voice and tweak it quite a bit to make it *almost* acceptable. there's a lot of effects in that program. it really helps a lot.

#21 23 days ago

You can always use a free text to voice on the internet.

#22 22 days ago

Eureka! I got it working. The problem was that I was adding the wavTrigger.h file directly to the sketch and commenting it out there. After getting it to compile and installing everything in the machine, I still got no sound. The WavTrigger only likes two format types: FAT16 and FAT32. I only had a 64GB SD card on hand which is too big for windows 10 to format in either one of those systems. Luckily I had a copy of a partition assistant that I had bought a long time ago. Now everything works great.

So for Arduino noobs like me:
1) Don't add the wavTrigger.h file to the sketch. Just go to the directory where it lives and edit it there.
2) Do yourself a favor and use a 4GB SD card. Windows can natively format it to FAT32.

dickhamill: I really like your choices for the music and sound effects! I did have to modify the StarLevelUp file by dropping the gain by 11 db to normalize it a bit. Every time the red special light started roaming I dreaded hitting it due to the ear piercing volume. Great work all around though!

#23 22 days ago
Quoted from CousinPookie:

I did have to modify the StarLevelUp file by dropping the gain by 11 db to normalize it a bit.

I've been thinking the same thing.

Glad you got it working. If you end up tweaking any of the other sounds, let me know.

#24 21 days ago

dickhamill: I've got the Wav Trigger flashed to the 1.30b firmware. I'm excited to see what you've got! I also knocked the bonus2k down about 10 db for normalization.

#25 21 days ago
Quoted from CousinPookie:

dickhamill: I've got the Wav Trigger flashed to the 1.30b firmware. I'm excited to see what you've got! I also knocked the bonus2k down about 10 db for normalization.

Excellent, I managed to get mine flashed also. I put it up on GitHub. Grab the latest and uncomment this line in Stars2020.ino:
#define USE_WAV_TRIGGER_1p3

It's a subtle change. With the new firmware, I can tell the WAV Trigger to keep the background music playing while using the other channels for the sound effects. That way I don't have to worry about a bunch of spinner sounds clobbering the background music. You'll hear the sound effects mix together more clearly with this update.

1 week later
#26 14 days ago

YouTube doesn't want to let me upload this video, but Vimeo seems to work for now.

https://vimeo.com/433216470

I took the liberty of changing the music and a few sounds. I think I like your spinner sound better, I'm still working on this one. I made it in Ableton Live, but I haven't gotten it quite right yet. I took the pop bumper and rollover sounds from Johnny Mnemonic.

Enjoy!

#27 13 days ago
Quoted from CousinPookie:

YouTube doesn't want to let me upload this video, but Vimeo seems to work for now.
https://vimeo.com/433216470
I took the liberty of changing the music and a few sounds. I think I like your spinner sound better, I'm still working on this one. I made it in Ableton Live, but I haven't gotten it quite right yet. I took the pop bumper and rollover sounds from Johnny Mnemonic.
Enjoy!

What's going on with your backbox? Is that a video overlay or did you modify your backglass and light board?

#28 13 days ago
Quoted from CousinPookie:

YouTube doesn't want to let me upload this video, but Vimeo seems to work for now.
https://vimeo.com/433216470
I took the liberty of changing the music and a few sounds. I think I like your spinner sound better, I'm still working on this one. I made it in Ableton Live, but I haven't gotten it quite right yet. I took the pop bumper and rollover sounds from Johnny Mnemonic.
Enjoy!

That's awesome. As dothedoo asked, what's behind the glass? Looks like a spiraling RGB LED light show?

#29 13 days ago

They're addressable WS2811 LEDs running a barely modified example sketch on a separate Arduino nano. They're just taped to the back box door until I figure out a more permanent solution. These are the ones: amazon.com link » they're available all over the place if you don't like Amazon.

#30 13 days ago
Quoted from CousinPookie:

They're addressable WS2811 LEDs running a barely modified example sketch on a separate Arduino nano. They're just taped to the back box door until I figure out a more permanent solution. These are the ones: amazon.com link » they're available all over the place if you don't like Amazon.

What about the scrolling 2020 on the glass?

#31 13 days ago

Hopefully there are some updates for tomorrow night

#32 13 days ago

dothedoo it's a MAX7219 matrix display running a slightly modified MD Parola example sketch on yet another Arduino nano (they're cheap). It's here: amazon.com link » again they're available all over the place.

#33 12 days ago
Quoted from CousinPookie:

dothedoo it's a MAX7219 matrix display running a slightly modified MD Parola example sketch on yet another Arduino nano (they're cheap). It's here: amazon.com link » again they're available all over the place.

It’s a nice effect. I really like what you did with the backglass.

Promoted items from the Pinside Marketplace
From: $ 18.00
Apparel - Men
Pinside Shop
From: $ 45.00
Displays
PinballSolutions.eu
$ 25.00
From: $ 140.00
$ 5.00
Playfield - Decals
Doc's Pinball Shop
$ 6.00
Cabinet - Other
Siegecraft Electronics
From: $ 15.00
Wanted
Machine - Wanted
Warren, MI
$ 9.00
Cabinet Parts
Third Coast Pinball
From: $ 4.00
Playfield - Toys/Add-ons
UpKick Pinball
$ 119.95
Boards
Allteksystems

Hey there! Got a moment?

Great to see you're enjoying Pinside! Did you know Pinside is able to run thanks to donations from our visitors? Please donate to Pinside, support the site and get anext to your username to show for it! Donate to Pinside