Fruit Machine (arduino controlled)

  1. Paul Kemp

    Paul Kemp

    Joined:
    Apr 21, 2018
    Messages:
    7
    Likes Received:
    4
    Paul Kemp submitted a new Showcase Item:

    Fruit Machine (arduino controlled)

    Read more about this showcase item here...
     
    Paul Kemp, Apr 21, 2018
    #1
    1. Advertisements

  2. Paul Kemp

    kellys_eye

    Joined:
    Jun 25, 2010
    Messages:
    3,407
    Likes Received:
    905
    Location:
    West Coast, Scotland
    Few pointers:

    could you not use interrupts to detect alternative key/button presses rather than resorting to multi-processor solution? The process of wheel spinning etc isn't processor-intensive so there shouldn't be any noticeable delays when looping off to detect keys.

    what are you doing about 'winning averages'? Is your machine to be totally random or is there a routine to bias the result one direction or another?

    will there be a coin mechanism or other 'fund gathering' method - RFID might be useful to transfer payments and winnings!

    have you considered introducing a reel 'bounce' effect to give the display a more realistic movement appearance?

    will you be constructing an illuminated display to work in conjunction with the reels? This is what most machines have to make them 'attractive' to punters.

    lastly, can I have my 10% cut for the above information :D
     
    kellys_eye, Apr 21, 2018
    #2
    1. Advertisements

  3. Paul Kemp

    Paul Kemp

    Joined:
    Apr 21, 2018
    Messages:
    7
    Likes Received:
    4
    That's a lot of questions; here goes in respective order:-

    1) I am already using several interrupts; I have found combinations of timer and trigger interrupts to be unstable when running on the same board.

    2) It's as random as random can be. The averages of winning are down to the quantities of a given icon on each reel. There are also numbers printed on some stop positions to increment the feature count and, hold chance is currently coded to be 1 in 6.

    3) I have my eye on a few coin mechanisms online and do intend implement something yes.

    4) I was going to code a bounce effect, but the reels are mounted on vertical steel plates and when the motor comes to a sudden stop, you get a natural bounce effect anyway.

    5) I am working on the illuminated display. You need tons of LEDs and be able to control each individually. I have built another board with stacked shift registers and presented the outputs to board mounted pins ready to connect up. One challenge with the LED display is to avoid light bleeding over from one LED illuminated window to the next. I am experimenting with multi compartment plastic storage boxes and packing the inner part with foil using contact adhesive.This creates a reflective compartment for a single LED. The front (which is the lid) will have printed vinyl affixed and maybe a thin spray on the inside with white enamel paint. I also intend on having a Hi/Lo feature with a random digital dice or another reel.

    6) No!
     
    Last edited: Apr 22, 2018
    Paul Kemp, Apr 22, 2018
    #3
  4. Paul Kemp

    kellys_eye

    Joined:
    Jun 25, 2010
    Messages:
    3,407
    Likes Received:
    905
    Location:
    West Coast, Scotland
    (6) awwwwwwww....:p

    sounds like you've really got your s**t together on this project - nice one! I look forward to following your progress. Keep us informed.
     
    kellys_eye, Apr 22, 2018
    #4
    Paul Kemp likes this.
  5. Paul Kemp

    hevans1944 Hop - AC8NS

    Joined:
    Jun 21, 2012
    Messages:
    3,754
    Likes Received:
    1,804
    Location:
    Venice, Florida, USA
    It appears from the three photos you have posted so far, that (1) you are really well-organized, (2) clever in the re-purposing of "stuff" and (3) quite capable of finishing this project without much external help or advice. What a refreshing difference from some of the posters we get here.

    Is your "Fruit Machine" for your own use, or are you building for a friend or for installation in some rich dude's man-cave? I am retired; custom-building one of these (or a similar one) looks like it could be a pleasant source of additional income... and I am not talking about collecting coins from the players. Some people here pay thousands of dollars for vintage machines, such as Wurlizter Juke Boxes, have them restored to original "like new" condition, and then display them in their home or (less often) in their office. I can envision a cottage industry catering to furnishing a private Casino Yacht.

    Have you considered the little "pill boxes" with hinged lids (one for each day of the week) as an LED light isolation device? You can cut the lids off with a razor knife, use the back side for the LED light output and line the cavities with reflective foil. Having the lids removed could make it easier to mount a PCB form the rear, with one or more LEDs attached. Maybe you could also cut the partitions out for an extended length display with multiple LED illumination.

    I am looking forward to more images as your project progresses. Excellent work, Paul
     
    hevans1944, Apr 23, 2018
    #5
    Paul Kemp likes this.
  6. Paul Kemp

    @xi@g@me

    Joined:
    Dec 15, 2016
    Messages:
    32
    Likes Received:
    3
    Haha, I like the beer brands logos on your reels :)
    I join what the other said, excellent work! I'm looking forward to see the finished cabinet! I gotta check the drivers you are using, their size make them seem being overkill :p
     
    @xi@g@me, Apr 23, 2018
    #6
    Paul Kemp likes this.
  7. Paul Kemp

    Paul Kemp

    Joined:
    Apr 21, 2018
    Messages:
    7
    Likes Received:
    4
    Thanks for the comments. Its for personal use only. I doubt I will use it much, its all about the challenge of inventing, designing and building. I get much enjoyment of hitting a stumbling block and finding a way around it. Nothing more rewarding than when you finally sort what seemed to be an impossible technical challenge.

    The plastic storage boxes that I have are very similar to pil boxes, so we are on the same track there. I will upload some video when I can. I presume you have to do that as a Zip file on here?
     
    Paul Kemp, Apr 23, 2018
    #7
  8. Paul Kemp

    Paul Kemp

    Joined:
    Apr 21, 2018
    Messages:
    7
    Likes Received:
    4
    Cheers! There's also a Lemonade logo. Two Heinekens and a Lemonade = a Heineken Top, or two Lemonades and a Fosters = a Fosters Shandy. Three Peronis in a row is jackpot!
     
    Paul Kemp, Apr 23, 2018
    #8
    @xi@g@me and Ian like this.
  9. Paul Kemp

    hevans1944 Hop - AC8NS

    Joined:
    Jun 21, 2012
    Messages:
    3,754
    Likes Received:
    1,804
    Location:
    Venice, Florida, USA
    Not sure how that works. You do need to compress largeish files using zip or some other popular file compression software, but I don't know how effective that is, nor what the upload size limit is. I would think that videos are a whole 'nother ball game because they can get quite large, even with jpeg compression. Perhaps you can PM a moderator for more information.

    I have seen a few instances of click-able videos posted here, but don't recall what the link was. Perhaps the easiest approach is to make a YouTube video and post a link to it. Highlight the link text in your post and use the Media menu token to specify the YouTube link address. That way saves bandwidth for everyone.
     
    hevans1944, Apr 23, 2018
    #9
  10. Paul Kemp

    @xi@g@me

    Joined:
    Dec 15, 2016
    Messages:
    32
    Likes Received:
    3
    Yup, that would be a better idea to post the video to YT and paste a link here. You can upload non-referenced videos on youtube so they are not findable via the YT search engine (only accessible via their link)
     
    @xi@g@me, Apr 25, 2018
    #10
  11. Paul Kemp

    Paul Kemp

    Joined:
    Apr 21, 2018
    Messages:
    7
    Likes Received:
    4
    Let me know if this Video link works please:-



    This was a testing disc I created to check I was able to halt the motor at a precise known stop point.
     
    Paul Kemp, Apr 28, 2018
    #11
  12. Paul Kemp

    hevans1944 Hop - AC8NS

    Joined:
    Jun 21, 2012
    Messages:
    3,754
    Likes Received:
    1,804
    Location:
    Venice, Florida, USA
    Yep. Video and your control works just fine! Please let us know (eventually) how you did that... made the pointer "stop on a dime" so-to-speak. Clearly you have mastered the art of making YouTube videos. Thanks for the update!
     
    hevans1944, Apr 28, 2018
    #12
    Paul Kemp likes this.
    1. Advertisements

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments (here). After that, you can post your question and our members will help you out.