Connect with us

Fruit Machine (arduino controlled)

  1. Paul Kemp

    Paul Kemp

    11
    8
    Apr 21, 2018
    Paul Kemp submitted a new Showcase Item:

    Fruit Machine (arduino controlled)

    Read more about this showcase item here...
     
  2. kellys_eye

    kellys_eye

    4,286
    1,145
    Jun 25, 2010
    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
     
  3. Paul Kemp

    Paul Kemp

    11
    8
    Apr 21, 2018
    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
  4. kellys_eye

    kellys_eye

    4,286
    1,145
    Jun 25, 2010
    (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.
     
    Paul Kemp likes this.
  5. hevans1944

    hevans1944 Hop - AC8NS

    4,084
    1,940
    Jun 21, 2012
    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
     
    Paul Kemp likes this.
  6. @xi@g@me

    @[email protected]@me

    36
    3
    Dec 15, 2016
    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
     
    Paul Kemp likes this.
  7. Paul Kemp

    Paul Kemp

    11
    8
    Apr 21, 2018
    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?
     
  8. Paul Kemp

    Paul Kemp

    11
    8
    Apr 21, 2018
    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!
     
    @[email protected]@me and Ian like this.
  9. hevans1944

    hevans1944 Hop - AC8NS

    4,084
    1,940
    Jun 21, 2012
    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.
     
  10. @xi@g@me

    @[email protected]@me

    36
    3
    Dec 15, 2016
    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)
     
  11. Paul Kemp

    Paul Kemp

    11
    8
    Apr 21, 2018
    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.
     
  12. hevans1944

    hevans1944 Hop - AC8NS

    4,084
    1,940
    Jun 21, 2012
    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!
     
    Paul Kemp likes this.
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.
Electronics Point Logo
Continue to site
Quote of the day

-