Last chance to enter The Hackaday Prize.

Skip Vegas with this BS slot machine

bs2_slot_machine_DisplayInterface

We caught a glimpse of this Basic Stamp 2 controlled electronic slot machine on YouTube. We’re very grateful that [Mike Donahue] was willing to share more about his project with us.

He uses tactile switches instead of dropping coins in a slot, and a lever-style switch sets the one-armed bandit in motion. The action is displayed on a 1.5″ µOLED-128-G1 screen that has its own controller (which explains how this operates so well with the relatively slow BS2). For realism there’s some pretty good sound effects provided by a piezo speaker. We’ll look at the code, graphics, and some video after the break.

Slot Game_scaled

The connections are quite simple and [Mike] has built the project on the Basic Stamp 2 Homework Board. The display is addressed through two serial lines and a reset pin.

He generated the graphics using MSpaint, creating three full screen images that rarely change. The icons for the spinning dials are much smaller and overlayed on top of the larger images. Three of these icons are stored next to each other in memory. That way, a pointer can be advanced and the next image will start to scroll in, resembling a spinning cylinder. Here’s a bit larger version of the schematic and images if you need it.

This makes for a fun toy and it’s quite well executed. If you’re interested in taking a look under the hood, here’s a copy of the source code.

Comments

  1. strider_mt2k says:

    Careful dude.

    You’re going to have some Senior Citizen or another parking themselves in front of that thing and then good luck getting rid of ‘em.

    I just hope for your sake the buffet is half decent because that show in the Copa Room stank to high heaven.

  2. strider_mt2k says:

    Oh the project: Well done!

    Pretty slick looking, but those things should make a complete rotation before coming to a halt.

  3. mojo says:

    To be honest that display controller doesn’t seem particularly impressive. An AVR connected to a Nokia 6610 colour LCD gets much better performance, enough for smooth animation.

    For that reason I have always found these screens overpriced. Sure, they have an easy to use interface, but there is so much example code and it’s so easy to work with more basic screens that you might as well just develop your own code optimised for the types of things you want to do.

  4. toodlestech says:

    This is pretty cool, to bad OLED displays are so expensive. $75 for that little screen.

  5. Fallen says:

    That’s a whole lot of blue…
    The manufacture is adamant about minimizing blue usage, since it’s prone to sticking and has the shortest life.
    But other than that, Nifty project!

  6. pRtkL xLr8r says:

    Hafta figure out how to hook this up to a pay machine and sell them to bars around here!

    And BTW, thanks Hack A Day for giving the capital letters to us…much easier to read!

  7. Steve Z says:

    very well executed. Good project!

  8. Vegas Vic says:

    I live in Vegas and work in the casino industry.

    Machines are for fools. The machines that look like live games do not have the same physics, the animations are just to trick people. For example, the video BJ games are allowed to shuffle after every hand.

    Stick to live table games without continuous shufflers and learn to count cards on BJ, clock the wheel on European Roulette and play poker on live games.

  9. Mike D. says:

    In defense of the uOLED-128: it scrolls much smoother if the sound commands are removed (due to the single-thread limitation of the BS2),there is microSD support on the display, it can be had for $65 from Parallax, and the color intensity is impressive. Thanks for the caution about blue useage, Fallen. Thanks for the comments, all.

  10. Stu says:

    Ummm
    Good project, was thinking about doing something like this myself. Ended up on the ‘back burners’.
    Just one thing Hackaday – Basic Stamp isn’t the first thing I think of when I read BS in the title!
    Made me think this was a bit bogus!

  11. collinhal says:

    Wow that`s sound great. Nice one. I will try to implement it. Thank You for sharing about this slot machine. Slot machines are the best.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

Follow

Get every new post delivered to your Inbox.

Join 91,190 other followers