Shop OBEX P1 Docs P2 Docs Learn Events
Automated Poker Table — Parallax Forums

Automated Poker Table

mtjohnstonmtjohnston Posts: 4
edited 2009-06-09 15:14 in Robotics
I Will post a more advanced post later but first let me know what you think.·· A lot went into the Automated Poker Table. That is why I am not posting it·right now.· Anyway the idea is to have a completely automated poker table able to deal a full round of Texas-hold'em.· The table can be used with a maximum of 4 players.· Each player logs on by pressing the button at the beginning of the game.· Once everyone is logged in a choice of Voice Instructions (those who have not played before may find this useful), or Music.· Hope you Enjoy. This Project "Gambit" is part of a group Mechanical Engineering class.· Brought to you by:
Chris Lieder
Brandon Chisum
Mark Johnston

http://www.youtube.com/watch?v=3BGe4OZIAKQ&feature=response_watch

Post Edited (mtjohnston) : 6/9/2009 6:05:10 AM GMT

Comments

  • SRLMSRLM Posts: 5,045
    edited 2009-06-04 08:13
    Interesting. I think you should "dress up" the dealer with a translucent green visor and a black suit. It seems that mech e's do more programming than EEs's... I wonder why that is?
  • BeanBean Posts: 8,129
    edited 2009-06-04 11:44
    Very cool.

    Great job.

    It would be neat if you could make the robot flip that cards up automatically.

    Bean.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
    There is a fine line between arrogance and confidence. Make sure you don't cross it...

    ·
  • Beau SchwabeBeau Schwabe Posts: 6,566
    edited 2009-06-04 15:00
    Neat! ... the biggest problem we have, is by the end of the night, we need someone to count the chips! smilewinkgrin.gif ... that or some of us forget what the chip denominations are... tongue.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Beau Schwabe

    IC Layout Engineer
    Parallax, Inc.
  • Phil Pilgrim (PhiPi)Phil Pilgrim (PhiPi) Posts: 23,514
    edited 2009-06-04 16:34
    Brandon, Chris, Mark,

    Cool bot, guys! Very nicely done!

    Beau,

    The poker group I'm in plays dealer's choice. Our biggest problem is everyone knowing or remembering what game is being played. (It seems to get worse as the years go by for some reason.) "What? I thought this was high/low split. I was betting on a low hand!" "Deuces are wild? You never said that! I just threw away two of 'em!" I've suggested several times that we hire a bikini babe to carry a sign around the table with the current game written on it, like they do at boxing matches with the round number placards. But then, I suppose, no one would pay attention to the sign! smile.gif

    -Phil
  • mtjohnstonmtjohnston Posts: 4
    edited 2009-06-04 17:57
    Ya we only had a month and a half to design, code, and build.· We started with the option of increasing the motor to max RPM to flip the card over but was really inaccurate so we stripped that idea.· We thought about using the RFID tags as chips and everytime one passes over the RFID sensor it would count the monetary value of the chip.· Only constraint was time.· The whole project took over 2000 lines of code.· I just want to thank you for your input its incredibly helpful. One option if we could was to clean up the wiring and make the table top out of plexy glass so everyone could see the wiring.·
  • VGVG Posts: 32
    edited 2009-06-04 18:35
    Awesome.

    Good luck guys. This opens up lots of new avenues for Parallax products in the enetertainment industry.

    Sincerely,
    Venkata.
  • BJC_BulldogBJC_Bulldog Posts: 4
    edited 2009-06-04 19:05
    OK guys and gals, the rest of the information is here (code and schematics). Thanks for all of the compliments!

    Like Mark mentioned, time eventually became the most important constraint. You will probably see that in the code if you study it, as we started to ditch compact, concise code for some "brute force" methods. Regardless, the programs seem to work very well.

    We were trying to get the dealer to flip the house cards, but were unable to do it consistently. We had some success with an arm attached to the front of the dealer assembly, but even this proved to be quite difficult to get to work. I think there may even be some commented lines and constants that were used in testing this method. I would like to see if we could add even greater resolution to the CR servo that takes the cards out of the shoe; as you can see in the video (link: www.youtube.com/watch?v=MfnyzRb2p80&feature=channel_page), there is occasionally an extra card spit out.

    Note that there is a bit of logic built in to the table that is not showcased in the video. The dealer knows not to deal to an empty spot, and also moves the dealer button and LED light appropriately. This required a bit of thinking, but seems to be working very well.

    The RFID tags for chip counting could also prove to be very useful. I like the idea of programming a lot of game choices, or depending on the complexity of the games, just display the game being played on the LCD screen. This could easily be chosen by a user at the beginning of each hand using the same buttons already there. That would be very cool!

    Lastly, I wanted to mention how important the Parallax products and online sample codes were in the development of the project. We used 2 stamps (BS2 and 2e), communicating via Parallax RF, an HB-25 Motor Controller, a Parallax CR servo and Parallax LCD screen, among other items. Customer support was contacted a couple times, and when I burned up the motor controller (turns out polarity is very important to consider, just as the manual says), the technical support team was willing to stay late as we made the trip from Fresno to Rocklin on the Friday before the project was due. As the Bud Light commercial says about staying late on Friday, Josh can rightfully say "put THAT on my review!" (www.youtube.com/watch?v=RqBWjVIeEEk). yeah.gif

    Any more suggestions for improvement would be great to hear; even if we can't utilize it, there may be folks out there who want to take this a few steps further. I will warn you though -- the cost adds up quickly! Good luck!

    Happy Hacking,
    Brandon
    scool.gif

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brandon

    Post Edited (BJC_Bulldog) : 6/4/2009 7:11:02 PM GMT
    996 x 745 - 36K
    1000 x 748 - 47K
  • dandreaedandreae Posts: 1,375
    edited 2009-06-04 19:22
    That is really awesome!· That's my kind of project.

    Dave

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Dave Andreae

    Parallax Tech Support·
  • John R.John R. Posts: 1,376
    edited 2009-06-04 23:41
    Great job! I love it! Here's an add on for you:

    Ash trays with temp sensors, if they sense heat, turn on a muffin fan underneath for a downdraft, or to blast off a fire extinguisher. The fire extinguisher could also be useful in combination with chip counting. If one player wins X + 1 hands in a row (where X = one two many), then blast the player with the fire extinguisher.

    Add barcodes to the face side of the cards, and know who has what and pay the winner.

    Keep in mind all these suggestions are coming from folks who have the luxury of not having to do the project!

    (and my favorite add on was still the bikini girl with the game placards, as long as the placard isn't too big, or is held in an appropriate position i.e. out of the way)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    John R.
    Click here to see my Nomad Build Log
  • BJC_BulldogBJC_Bulldog Posts: 4
    edited 2009-06-06 03:47
    Oops, we missed a couple things on the presentation portion, so we re-posted a new video and deleted the old.

    www.youtube.com/watch?v=3BGe4OZIAKQ&feature=response_watch

    I think it would be tough to ship that bikini-clad girl in the package nono.gif , but I like the idea.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brandon
  • sam_sam_samsam_sam_sam Posts: 2,286
    edited 2009-06-06 22:00
    VERY COOL PROJECT...........smile.gif

    One thing·I want to ask is how dose the dealer know·who want a another card
    Because I only saw some one pushing only the·buttons in center of the table

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    ··Thanks for any·idea.gif·that you may have and all of your time finding them smile.gif

    ·
    ·
    ·
    ·
    Sam
  • BJC_BulldogBJC_Bulldog Posts: 4
    edited 2009-06-06 22:05
    Well, part of the easy thing about programming the rules for Texas Hold 'em is that the two cards that are dealt to the players do not change throughout the hand. The 5 cards that are spit into the center of the table are everyone's cards to use, and the hand that the players create is a 5 card hand using any of the seven cards ultimately available. Future development would include this input for, say, 5 or 7 card draw by either displaying the options on the LCD screen for each player, or by pressing the button to get one card and hitting enter when finished. Hopefully that clears up any confusion.

    Thanks for the compliments!

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Brandon
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-06-08 21:56
    Mark, your YouTube links do not seem to work. I get a message that the video was removed.

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
  • GWJaxGWJax Posts: 267
    edited 2009-06-08 23:25
    Chris Savage (Parallax) said...
    Mark, your YouTube links do not seem to work. I get a message that the video was removed.

    @Chris I have no problem with seeing the last YouTube video posted, in fact I just clicked one the link and it's still running..

    @Mark, Great job with the poker table but one thing I would change is the 52 card pickup should spin in a circle and throw out the cards faster to really scatter them all over the place. haha

    Now if you can make a robotic hand to lay down the cards at each position that would be really cool but then again it's always the "More Money" problem that most of us have. Great job on your project and I'm looking forward to more video's or updates on the new games if you make them.

    Jax

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    If a robot has a screw then it must be romoved and hacked into..
  • mtjohnstonmtjohnston Posts: 4
    edited 2009-06-09 05:58
    A new link is posted below:

    http://www.youtube.com/watch?v=3BGe4OZIAKQ&feature=response_watch

    The new link is used to include all members involved in the complete construction of the Automated Poker Table.


    Post Edited (mtjohnston) : 6/9/2009 6:05:28 AM GMT
  • mtjohnstonmtjohnston Posts: 4
    edited 2009-06-09 06:06
    GWJax,

    We would of loved to have the servo do complete revolutions (it wasnt a CR though) and The response fromt eh basic stamp to the motor control and servo is delayed.· That is why the random card spitting is delayed.· Like always more money creates better projects.· Ultimately it would be nice to have this project funded some way inorder to improve the table.· When building the table we would joke that we would see the Table on a Target shelf for sell probably made in China for a tenth of what we paid for it.· Thanks for the input and hope to hear from you soon.
  • Chris SavageChris Savage Parallax Engineering Posts: 14,406
    edited 2009-06-09 15:14
    Very nice! The video makes it in this case as seeing it in action is much better (more satisfying) than all the other data in terms of knowing what this can do. Contact our marketing dept. about listing the project on our website and you could get some credit toward Parallax merchandise. =)

    ▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔▔
    Chris Savage
    Parallax Engineering
Sign In or Register to comment.