@@player-8740 because there's literally no reason to do it. It would take more time to get rid of the pattern while shuffling the next time you want to play, and you need to shuffle them anyway.
Haha yes, probably. But that's ok with me, the "cheating" part was mostly just for fun to see if I could, I never plan on actually using it. In fact, I was going to add a red LED that illuminated whenever it was running a cheat routine to make sure it's very obvious, but that didn't make it in the final prototype.
What ya do is have 2 decks worth, a play deck, and a shuffling deck. While one is getting played, the other is being shuffled, and then at the end of a hand, they get swapped.
@@billmight5662 It doesn't have to be on the table to distract or maybe noise could be reduced. Also maybe with a smooth shell casing on the outside and noise reduction it would become viable? Definitely a cool product though :)
Back in 6th form when ever we played cards we had 2 decks and what would happen is while the game is going on the dealer would shuffle the cards for the next go. We also had it where the dealer must make everyone a stack of cards in front of them and people would grab a stack to prevent the dealer from dodgy deals and the dealer would have to wait until the other stacks where collected before collecting theirs.
Let me know if you need some eyedrops. And thanks, I have been keeping it up! My newer videos have way better production quality, though I will admit some of them were better ideas in my head than in practice XD
one of the most important things done with real gears is to use helical gears instead of spur gears. Spur gears are more efficient, but all auto transmissions and tons of machinery use helical gears, just to help reduce noise.
@@OooohReally Not for anything directly touching the cards (you wouldn't want to grease anything that touches the cards either). Just for the drive gears (not the toothed pulleys for the belts either)
“I’ll see yah in a few more years” 😂😂 gosh I hope not. Amazing video Andrew! This channel is one of my favorites and I can’t wait to see what you do next!
Nice that it can start from an unordered deck with card recognition; quite a project! In some competitions (bridge, for instance) all tables need to play the exact same hands. They use devices to create a series of identical decks. But building your own is of couse way more satisfying, and a nice project indeed!
This is a great project and video! Glad I found this channel. You could maybe add a physical button on the device itself to do the regular random shuffle so that mode can be used without having to open up a browser (if that's the most common use I mean haha)
Well shot, well edited, well narrated, straight to the point with enough information it's interesting but not too much that it gets boring or confusing. Oh, also a great idea that was executed well Amazing work, instantly subscribed at the end of the video!
Evil! Subbed. Two ideas. First for the feeder, have a look at how printers run their rollers. They almost invariably have three: pick, feed, and separation. On cheaper machines the sep roller is just a pad. Anyways ideally the pick roller (the one that sits on the stack of paper) rotates along with the feed roller, and the sep roller is either stationary or even turning slightly backwards. That's what prevents double feeds. The pick and feed rollers are usually on sprag clutches so they can freewheel. After those three, you'll have two driven pinch rollers that actually deliver the paper. Second...there should be an even more evil and harder to detect algo in the evil shuffler: make player x really lucky. Don't specify any one hand, just make sure that x always has a better hand than everyone else. Maybe they'd even occasionally lose a hand just so nobody gets suspicious.
True, but there actually are some deck configurations in which, even after a random cut, you will still always win. The stack depends on number of people playing and you can't decide exactly what you get, but still an interesting concept!
@@opfromthestart3645 go to jail for a few months... 3 max thats all it took me to learn every fun card "mechanic" "*MAGIC*" trick for only entertainment purposes
Love the video! But there is a cut by the dealer once it's done. There are even ways to set up the deck where cutting it anywhere will still result in a rigged result.
What fun you had creating this! Here's something you might like to add.... a "Pack Sorted by suit" with choices of how you want the pack sorted... Ace-King (or reverse?) but so you can pick Spades/Diamonds/Clubs/Hearts or any combination of the suits?
Yeah a few people on reddit suggested that. This is actually a feature that commercial casino shufflers have. They share a similar card recognition system, though it is locked to be exclusively used for the deck re-ordering feature to prevent sketchy casinos from abusing it like I can do with mine :)
This absolutely is what shufflemaster patent shows. Great video and great work showing us. This is definetly what the casinos do. I miss the good old hand shufflers now they say most states banned hand shufflers. No its banned bc they want more $$
Bro, did you consider tagging your video under the section of 'horror' ..This is the stuff that fuels nightmares. These casino machines will flat out put people in the streets.
Hi, great vid. Just had an idea for the dispenser to make it more reliable. Where you have the pair of rollers spitting the cards out, the top one could briefly rotate in the opposite direction, so if there is a second card on top it gets put back in the deck while the bottom one continues but if there is just one card it will get sucked slightly in then spat back out again. Alternate idea, put the roller on a moving arm that goes on top of the deck so it only pushes the topmost card out at a time, if you springload the arm so the downwards force (and move the tray up a bit for each card dispensed) is minimal the top card wont have enough friction with the one under it to drag it along. Have the arm mechanized to move out of the way (idk with a servo or something) so when the shuffled cards are being inserted it can get out of the way.
Great suggestions! I actually considered something similar to that first concept for V2, but got sidetracked by other projects. But I may end up doing just this once I get back to it!
it always perplexed me how when you get a great hand at casino the dealer somehow gets the better hand. Happens too often and I always suspected the auto shuffler set the cards, now im convinced they cheat us. Thank you your hard work on this project.
Lol they don't, probabilities are probabilities so the casino will always make it's money, and if they want to be semi scummy and bring in more money, they modify the rules (ex. 6:5 blackjack payout). There's no motivation for a legitimate casino to risk getting shut down for cheating. Underground ones well, play at your own risk
Nice recreation of what we did in the mid 70's (OCR and handler not cards but the concept is the same) Personally I believe the rotary storage is a better method, but that is my opinion When you see the shuffle master sort the cards the first time this should tell you they have full control
Great project. And the reason that most state gaming regulations required all cards to hand cut is to disable any chance that an ASM can be hacked and used to cheat.
that's a really cool shuffler. i have one of those cheap noisy ones. lol i barley used it. i was tying to make a card distributor or electric dealer 12 years ago and instead made a device that throws an entire deck around the room in a matter of a few seconds. it was too fun to fix.
I did actually come just to see how a shuffle machine works lol. I work in a casino and so while those machines are different, this gave me the general idea :D.
How about if the dealer is required to cut the deck? It makes it 1000x more complicated.. The only way to assure player x wins the pot out of a 9 player Texas Hold'em table, (without the dealer who cuts the cards knowing) is to fix the deck so that 52 combinations all having the same player winning. No matter what point in the deck u start from. Since there are a millions of possible combos, u can easily write a script of code that will make the player u wish to win, win every hand or every other hand to not make it obvious. You just need to tell the computer exactly how many players will be dealt in, and it could be done seamlessly.
This is a very impressive machine that goes well beyond the scope of anything I desire from a shuffler. However I hope you can push me in the right direction, I'm playing a board game called Talisman which has several decks containing hundreds of cards, with the main "Adventure Deck" being over 600 cards with all the expansions and is a tedious pain to set up. I'm looking for a shuffler that can shuffle US Mini sized cards and won't destroy them either. I've seen some of the demos of the cheap mass produced shufflers and they look like they'd wreck these cards. Manual hand cranked versions seem more viable but they would still take too long and don't seem to provide a good shuffle judging from some videos I've seen. Apologies if this was impertinent to ask but I'm at my wits end trying to find something good that won't break the bank and your video came up in the results.
Cheap shufflers will definitely destroy your cards, and I highly doubt any quality off the shelf solution exists for mini cards like that. You could definitely do something similar to my design, but keep in mind two things. 1. This design is pretty dependent on how much force is applied to the card being fed. So if you have too much force, you will feed 2 cards. And not enough you may not feed any. And somewhat related number 2. this feeding mechanism will only work with low friction cards, like bicycle playing cards. If you want to build your own solution to this, you would almost definitely want to flip the feed mechanism, so you can much more reliably control the force applied via a spring loaded mechanism, and this allows for some better feeding geometries which can be a little more resistant to minor damage at the edge of cards. Be warned, if you do want to build a project like this yourself, it is going to be a huge time sink, especially if you want to make it reliable. Good luck!
I want this. Actually what really got me looking was less poker, as its easy to shuffle for poker with some practice, but there are so many board and card games with even larger decks and cards that I want to sleeve, that decks become difficult to shuffle, and it would be great to have something with a bigger hopper that could shuffle up large decks while the rest of a game is being setup.
great job ! you are quite a inventor! I am thinking of making a simpler version - the one that will just shuffle cards randomly into 4 stacks; no need to recognize cards etc.
I'm late to this party, but I think the mechanics can be simplified quite a bit. The movement of the dispenser could replace the movement of the slots module - The slots module doesn't have to move at all and the ejection bar for the slots module can unload all of the slots at once if the dispenser is at the very bottom. This would make the sorting mechanism quicker and would allow you to fit more slots in. If the dispenser was double sided you could have slots on both sides as well, allowing even more slots within a compact space.
Nah the party never ends. I eventually want to build a V2 but I have a few other large projects to finish up first. I appreciate all the feedback though, definitely some things to consider!
Amazing invention ...First time to your channel...You mastered 3D printing, engineering, and coding to create this machine...Bravo.... Imagine what the big casinos are investing in, to gain advantage over players... Do the Shufflemaster one or two models have software/cameras to detect suits in pokers games??? I've been playing for years and been witnessing some extremely suspect hands by dealers..
Make an algorithm that makes the interface more simple. Like: which player will win and then it just makes a random situation in which that player will win. Also, you could add a little slide thingy to the end which can rotate. This then automatically distributes the cards to the different players / to the middle. You could add so many cool features in the code.
Really neat ideas, I may try those in V2! I've also been interested in calculating certain ways of stacking the deck such that no matter where it is cut, you can still always (or with high probability) select who should win the hand. I know some combos exist but I would love to write my own algorithm to identify all the options for different numbers of players and who's dealing, etc!
5:40 Making a "code explanation video for NERDS" video or something similar for projects may allow for moar youtube treadmill/algorhythm feeding, as well as helping others learn how to do the "behind the scenes" (granted may be other sources to learn obviously, but moar videos/content = moar win?) (also would require NLVE-ing time which is ...eh (at least for me) so may not be worth it in your opinion, just throwing this idea out there)
@@3DprintedLife Biggest difference between what a printer does and yours is the orientation. Printers don't try to take the bottom sheet of paper, they take the top one. The paper sits on top of a spring-loaded tensioner that holds the stack of paper at a constant pressure against the rollers. Also, their rollers are always a flat profile, not the round one you get from the o-rings. I suspect it gives move grip for less tension, so there's a lot more friction between roller and paper than the paper and the next sheet downwards.
Given the ability to set the deck order, and read the deck order, you could actually shuffle in software, and then just build the deck to that shuffle. No need to run through excess shuffles. I'm guessing only 2 would be necessary.
You are right, this should be able to sort into any generic order of 52 cards in two cycles with the following algorithm: 1) Give every card in the arbitrary order an index of 1 to 52 2) Look at the first card to sort. Assuming 8 bins in the sorter, if the card index is 1,9,18, 25, 33 40, 49, 57 (ie start at 1 and count up in 8s) then put the card in bin 1. If the card index is in the set 2,10,19… it goes in bin 2, If the card index is in the set 3,11,20… it goes into bin 3. 3) Reassemble the deck, ensuring bin 1 is at the bottom, bin 2 is next etc 4) Check if the card is in index range 1-8, if so place in the first bin. If in range 9-18 place in second bin and so on up to 52. Do this with all 52 cards. 5) Reassemble starting with bin 1. This should give you a perfect arbitrary sort - because in the first phase you will have done a pre-sort which puts the cards in an order where the second sort will put it into a perfect order. Because bin 1 in the pre sort contains cards 1,9,10 etc, these will be the first cards sorted in the second sorter pass. In the second sorter pass you effectively have pre-sorted chunks of 8 cards, and the first 8 cards must contain index 1 for bin 1, and index 1 will go to the bottom of bin 1 pile etc. Hope I’ve explained that enough!
@@AshHartwell I watched this at like, 2AM and didn't want to actually figure out the algo. Thanks for pointing out that Its literally just Radix Sort, base {number of buckets}, in this case 8. And radix sort takes Log (n) sorts, so for 52 cards, you only need 2.
It looks like the image processing is taking way longer than your mechanics can handle. (@11:34 you can see the shuffler just waiting.) It's worth looking into some form of faster computing.
Super Cool! Most of the issues you were having with the cards, the biggest one being able to get a single card, I would have to say were the cards. Bicycle cards are great cards, but if you were to use them at a NLTH tournament, they would last about 10 hands max. If you had some plastic poker cards, the Copag Poker Jumbo are great around $10/pack, the cards would become a constant, not a variable. They would always be, and only be, as slick as when you begin, unlike the Bicycle which would start one way and continuously change with use. I really want one, but dont think Im at this level yet.
Hey I am a senior in highschool and I’m making my own version of this for my engineering project and was wondering if you have a wiring diagram for it and what voltage you used as your power source for the micro motor on the card shooter. Great project and I’m having a lot of fun building it!
In some sketchier places this may be true, but most of the time they wouldn't bother. It isn't worth the risk for them to get caught doing this when all the games are already designed to favor the house. The shufflers do have this feature but it is strictly used for verifying the deck and re-stacking in the unshuffled order.
@@3DprintedLife I’ve gambled over 500k. I can assure you that all the casinos are cheating with these machines. The games don’t play anything like they used to. Ask any old timers how much easy it used to be 10 years ago when most tables were hand shuffle and you’ll see that the games are not what they used to be. The games are much harder to win with machine shufflers. Go watch a casino shuffler at a poker table and then go watch a hand shuffle game and you’ll see they are very different. This is why high roller tables are mostly hand shuffle because most people with a lot of money aren’t stupid. 10 years ago if you were playing baccarat on a hand shuffle you would find a 10-25 run bank or player. Now it’s so rare to find a run with the shufflers it goes more back and forth. The casino loses big money on long runs and the machine took those runs away. I can go to any casino with a shuffler and prove to anyone how they are cheating in real time. Especially Indian Casinos like Foxwoods and Mohegan Sun.
Is the camera used for identifying the cards out of focus on purpose so that the blobs are thicker or does it just not matter as much because it get sharpened through the flattening process anyway?
I didn't have enough room to mount it far enough away, so it is too close to focus. But you're right, it doesn't matter too much since the image is run through some filters.
would be cool to cut these components from acrylic using a laser since most parts are very boxy and at right angles. awesome projects and r&d! integrating the different components (mechanics, steppers, opencv, codebase) is very challening starting from nothing. how does it handle different sized cards? If I wanted to build this id want to shuffle any deck of cards (not necessarily poker cards).
Yeah the rear plate is laser cut and definitely could convert more components to use this, but I wanted to keep the design as open-sourced as possible so people without access to a laser cutter could still build it. I haven't tried any size other than standard poker cards but it probably wouldn't work great with others. And honestly, this was a fun project but not nearly quick or reliable enough to justify using over traditional hand-shuffling. I do hope to get a V2 made sometime soon, but I keep coming up with other more interesting projects which will get worked on first!
Hopefully you still get notifications on this; have you made any improvements on your card shuffler, I think a simplified version maybe even a bit more compact it could be really useful for home card games. We still play a lot of uno and I always thought that the cheep alternating shufflers are just not good enough where real randomized shuffling would be so much better but anything that currently accomplishes that are way too expensive for “home” play.
Great design and explanation. I'm wondering if you could estimate build cost (assuming access to a 3d printer, say), and say anything about "maintenance" of the machine given regular use (eg do you need to recalibrate the camera, launcher etc regularly)? Sorry if these questions were answered in the video and I missed them.
Total cost is somewhere around $200-300 and there's no regular maintenance, but the card dispensing mechanism is unfortunately pretty unreliable so most of the work to keep this running involved adjusting the gaps on that part. It also would require more uniform lighting and opaque side panels to get the most reliable card detection due to the way the computer vision code was written, though I now know of some ways to improve this significantly if I ever complete V2 (which I started but is a big project!)
Due to strong interest in this project (and wanting to recreate it) I did some research calculations. I found that with 8 bins the chance of the bottom card ending on top is about 790x larger than the top card ending on top. This quickly decreases to 2.3 times after 2 shuffles and to 1.1 (neglectable) after 3 shuffles. I thought these results might be interesting ; ) I hope it's OK to use this concept for inspiration for a future design project of mine.
Yeah it does have trouble sometimes, especially when lighting conditions change. Not having a clear side panel would have allowed me to tune it way better but then it's not as nice to film! But in general it does need a better detection algorithm, which I hope to improve if/when I work on a V2!
The main body was 3D printed (mine are clear SLA from a Formlabs machine but any old FDM printer can make them too) and the black rings are rubber o-rings for gripping the cards
A tiny "n20" geared DC motor for the counter rotating rollers and a mg90 servo for the roller that actuates a single card. If/when I make a V2 I will definitely be changing this up. The n20 motor is super loud and the servo is too slow (and actually one of the biggest limitations of dispense speed in this version)
Not sure I haven't gotten that far yet! But to speed up dispensing, it would be important to have a dispense motor that can spin continuously. I have current sensing on the counter rotating roller motor so it's possible to detect when a card is dispensed, so position control on both motors isn't required.
@@3DprintedLife Gotcha. Also, have you tried full plastic cards instead of paper cards? I think it would make it much easier and consistent to dispense a single card at a time, as the plastic reduces the friction between the cards. Paper cards like bicycle can get really sticky, especially if theyre old. Copag and Faded Spade are good brands, I recommend trying that as well!
i had a friend who had a cheapo shuffler. you split the deck in 2 parts and it would shove the cards randomly from each pile in the center, do it a few times and it would be shuffled
When regular shuffling it mixes it twice, the cheat ine only does it once, but what if it shuffles it in a specific order the first time so it knows where each card is and it will be faster separating all of it
Can you give me a hint on the research you did to figure out a roller strategy? I am building a MTG card sorter that will also generate me a CSV output to track my collection. Im worried about handling cards safely but also to process and scan quickly. Have you noticed any damage to your playing cards during usage of this type of roller?
I know you said you had no interest in making these, but let me try and convince you otherwise. Machines like this, with the same capabilities run between $12-15k new, $4-8k refurbished. Let’s say at scale you could keep your cost to $200-300 . I would be willing to pay $2.5-3k for a shuffler like this. All you need is a little refinement, a case and a UX .... could be just buttons or a whole separate small LCD like the Shufflemaster Deckmate II. I’m telling you there is a huge market for something like this for weekly poker nights.
How does it do with a new deck of cards? I see your deck is well used... I challenge you to make a V2 of this, More compact, and quieter, and make it so it slides into the top of a poker table. 😉
Just FYI....most companies that create shufflers don't sell their products not because of hacking but rather their model of business is based on leasing their products to casinos. They would much rather keep getting a monthly paycheck from the casino in using their machines than a one-off payment (not enough casinos open up each week for them to profit off of). The lease has stipulations that the casino has to adhere to or lose possible millions in lawsuits, this allows the shuffle companies to control all aspects of their units. You don't get access because you are not a casino....and contracts are usually set in years and numbers (such as 5 machines at $25,000 per month for 1 year, as an example). There is no "hacking" because unloading data requires a password authentication and a hardware key, otherwise you are physically hacking which can easily be caught by casino managers and surveillance. The software has several modes based on the number of games the casino provides, allowing a machine to be swapped from table to table as needed.....and it also has a sorting and recall function. Despite what conspiracies are out there, no, the machines do not have a "set hand" function as not only would that violate commission rules, but also leaves a vulnerability for casino losses by the shuffle company (which leaves them liable on those losses because the code is theirs by lease). Yes, the machine can sort and recall, but that's just reading, not setting. Just a little FYI
Do you plan on selling the shuffler? Not interested in cheating part. I plan on having poker games come fall. I am getting ready to purchase a shuffler you showed in your video, but like what you mentioned, a little spendy. Thoughts?
At 9:49, the suits don't seem to be well-shuffled(?) By watching the demo, it seems that the shuffler shuffles within groups, but one group doesn't seem to mix with another(?)
Why do you have two motors moving cards up and down. You have one motor that descends the entire deck and then a separate motor that moves the eight boxes up and down. Why not just move the deck and leave the eight boxes still?
@@paulfontaine7819 The arm would need to be mounted on The moving platform. Moving platform would move to its lowest setting, the arm would retract and pull the lowest of the eight boxes into the deck, and then it would do it again seven more times moving up each time. The biggest problem I see here is speed. The eight boxes are fairly light and can move very quickly. The heavier a module is the slower it can move, and making one module that does all the things will inherently make it slower.
OCD can be emulated by comparing all master images with the scanned one and take the one with the highest % score. It's not how OCD works, but it's a lot faster.
Lesson Learnt...Never ever play to the casino in which machine shuffle has been done.....always play on the table on which Manual shuffling has been done by Hand.....Am I right Sir ???...
Haha I wouldn't worry that much, at least not in legal casinos in developed countries. First off, most decks are split by hand after being machine shuffled. But there's also plenty of laws to prevent unfair rigging of games. Besides, why would a legit casino risk getting caught and shut down when they already have the house advantage in all games? Casinos make tons of money for a reason! But no need to worry about being cheated, all of your losses are just statistics :D
This can also be used to put the cards back into the box in the correct order when you are done playing!
Why would you want to do that though?
@@Fadexpl why would you not?
@@player-8740 because there's literally no reason to do it. It would take more time to get rid of the pattern while shuffling the next time you want to play, and you need to shuffle them anyway.
@@Fadexpl I like my cards at least suited at the beginning for a quick check if all are there.
@@therealpanse you can just count them
Your UA-cam channel is very underrated. Glad I stumbled upon it today!
Thank you!
Agreed!
i was gonna write the same lol
Same
Same feeling
Great video. Now really convinced me that casinos is stealing my money right my very eyes with the "shuffles".
Not sure if all but indeed there are models that have an optic sensor.
Exactly! Rigged games...
@@mattiasw.5846 When do you cut the deck? ua-cam.com/video/oZn7ZML4nmY/v-deo.html
I don't think they even call them shuffling machines, they call them sorting machines
The amount of system integration work that you're able to make work reliably is amazing. Amazing work.
Thanks! I'm actually a system integration engineer professionally, so I really would have no excuse if I failed haha!
It might raise some suspicions when it takes 5 minutes to "shuffle" the deck. Really cool project though.
Haha yes, probably. But that's ok with me, the "cheating" part was mostly just for fun to see if I could, I never plan on actually using it. In fact, I was going to add a red LED that illuminated whenever it was running a cheat routine to make sure it's very obvious, but that didn't make it in the final prototype.
What ya do is have 2 decks worth, a play deck, and a shuffling deck. While one is getting played, the other is being shuffled, and then at the end of a hand, they get swapped.
@@MinorLG I would get too distracted during the game though.
@@billmight5662 It doesn't have to be on the table to distract or maybe noise could be reduced. Also maybe with a smooth shell casing on the outside and noise reduction it would become viable? Definitely a cool product though :)
Back in 6th form when ever we played cards we had 2 decks and what would happen is while the game is going on the dealer would shuffle the cards for the next go. We also had it where the dealer must make everyone a stack of cards in front of them and people would grab a stack to prevent the dealer from dodgy deals and the dealer would have to wait until the other stacks where collected before collecting theirs.
Dude you need to keep it up. This was amazing. I just watched the whole thing without blinking.
Let me know if you need some eyedrops. And thanks, I have been keeping it up! My newer videos have way better production quality, though I will admit some of them were better ideas in my head than in practice XD
Silicone lubricant man, should help a fair bit with the noise in the gears.
I would say white lithium grease. They aren’t sealed so oil would quickly run off.
I recommend vaseline,
I use it on my wife too, stops her from screechin
one of the most important things done with real gears is to use helical gears instead of spur gears. Spur gears are more efficient, but all auto transmissions and tons of machinery use helical gears, just to help reduce noise.
@@Timestamp_Guy those aren't smooth it might cause internal damage
@@OooohReally Not for anything directly touching the cards (you wouldn't want to grease anything that touches the cards either). Just for the drive gears (not the toothed pulleys for the belts either)
it's so nice when the youtube algorithm coughs up something I'm interested in watching. Apparently herring bone gears can be quieter.
Add a "sort" mode as well, for people that wanna get an organized deck on demand. :)
Welcome back! You should update the software to inform you if any cards are missing.
Yeah great idea! I really need to speed up the card recognition first though, it's too slow to run during a regular shuffle as is
Or duplicates
“I’ll see yah in a few more years” 😂😂 gosh I hope not. Amazing video Andrew! This channel is one of my favorites and I can’t wait to see what you do next!
Maybe only 6-12 months...we'll see! But first I need to come up with my next project idea...
Nice that it can start from an unordered deck with card recognition; quite a project!
In some competitions (bridge, for instance) all tables need to play the exact same hands. They use devices to create a series of identical decks.
But building your own is of couse way more satisfying, and a nice project indeed!
Just discovered this channel now through the video. Impressive. Liked and subscribed.
Thanks!
This is a great project and video! Glad I found this channel. You could maybe add a physical button on the device itself to do the regular random shuffle so that mode can be used without having to open up a browser (if that's the most common use I mean haha)
Plan for V2 is to add a touchscreen UI!
Well shot, well edited, well narrated, straight to the point with enough information it's interesting but not too much that it gets boring or confusing. Oh, also a great idea that was executed well
Amazing work, instantly subscribed at the end of the video!
Thank you!
Evil! Subbed.
Two ideas. First for the feeder, have a look at how printers run their rollers. They almost invariably have three: pick, feed, and separation. On cheaper machines the sep roller is just a pad. Anyways ideally the pick roller (the one that sits on the stack of paper) rotates along with the feed roller, and the sep roller is either stationary or even turning slightly backwards. That's what prevents double feeds. The pick and feed rollers are usually on sprag clutches so they can freewheel. After those three, you'll have two driven pinch rollers that actually deliver the paper.
Second...there should be an even more evil and harder to detect algo in the evil shuffler: make player x really lucky. Don't specify any one hand, just make sure that x always has a better hand than everyone else. Maybe they'd even occasionally lose a hand just so nobody gets suspicious.
Nice to see you back. Hope you are doing well.
Good to see you back. This is honestly a pretty cool and involved project.
Thanks!
And of course, there is in fact a method to prevent just this kind of deck ordering shenanigans:
The Cut.
True, but there actually are some deck configurations in which, even after a random cut, you will still always win. The stack depends on number of people playing and you can't decide exactly what you get, but still an interesting concept!
@@3DprintedLife Is there a specific example of this?
@@opfromthestart3645 go to jail for a few months... 3 max
thats all it took me to learn every fun card "mechanic" "*MAGIC*" trick for only entertainment purposes
Love the video! But there is a cut by the dealer once it's done. There are even ways to set up the deck where cutting it anywhere will still result in a rigged result.
Brilliant work! Congrats on nailing it!
What fun you had creating this!
Here's something you might like to add....
a "Pack Sorted by suit" with choices of how you want the pack sorted... Ace-King (or reverse?) but so you can pick Spades/Diamonds/Clubs/Hearts or any combination of the suits?
Yeah a few people on reddit suggested that. This is actually a feature that commercial casino shufflers have. They share a similar card recognition system, though it is locked to be exclusively used for the deck re-ordering feature to prevent sketchy casinos from abusing it like I can do with mine :)
This could be modified for "tele-IRL card playing" i bet (pun?).
Kind of like what @Stuff Made Here did for the automatic pool stick?
Haha yeah that's a neat idea!
This absolutely is what shufflemaster patent shows. Great video and great work showing us. This is definetly what the casinos do. I miss the good old hand shufflers now they say most states banned hand shufflers. No its banned bc they want more $$
Bro, did you consider tagging your video under the section of 'horror' ..This is the stuff that fuels nightmares. These casino machines will flat out put people in the streets.
underrated channel !
Appreciate that! :D
Hi, great vid. Just had an idea for the dispenser to make it more reliable. Where you have the pair of rollers spitting the cards out, the top one could briefly rotate in the opposite direction, so if there is a second card on top it gets put back in the deck while the bottom one continues but if there is just one card it will get sucked slightly in then spat back out again. Alternate idea, put the roller on a moving arm that goes on top of the deck so it only pushes the topmost card out at a time, if you springload the arm so the downwards force (and move the tray up a bit for each card dispensed) is minimal the top card wont have enough friction with the one under it to drag it along. Have the arm mechanized to move out of the way (idk with a servo or something) so when the shuffled cards are being inserted it can get out of the way.
Great suggestions! I actually considered something similar to that first concept for V2, but got sidetracked by other projects. But I may end up doing just this once I get back to it!
it always perplexed me how when you get a great hand at casino the dealer somehow gets the better hand. Happens too often and I always suspected the auto shuffler set the cards, now im convinced they cheat us. Thank you your hard work on this project.
Lol they don't, probabilities are probabilities so the casino will always make it's money, and if they want to be semi scummy and bring in more money, they modify the rules (ex. 6:5 blackjack payout). There's no motivation for a legitimate casino to risk getting shut down for cheating. Underground ones well, play at your own risk
Nice recreation of what we did in the mid 70's (OCR and handler not cards but the concept is the same)
Personally I believe the rotary storage is a better method, but that is my opinion
When you see the shuffle master sort the cards the first time this should tell you they have full control
This is super cool project! Nicely done
Thank you! Cheers!
Me: I wonder if I could make a card shuffler that stacks the deck...
UA-cam: Here you go
This is pretty fantastic. It would be fun for, say, having two identically shuffled decks and see who does better at Klondike.
Great project. And the reason that most state gaming regulations required all cards to hand cut is to disable any chance that an ASM can be hacked and used to cheat.
Sidenote, that paper feeder will be of use with some OS Plotter/inkjet printer development !
Hello stranger! Glad to see you’re still with us!
Haha yes I am! Will likely stick to fewer but higher quality videos from here out, so it really may be 6 months until my next one :D
that's a really cool shuffler.
i have one of those cheap noisy ones. lol i barley used it.
i was tying to make a card distributor or electric dealer 12 years ago and instead made a device that throws an entire deck around the room in a matter of a few seconds.
it was too fun to fix.
Thanks!
Thank you! :)
OK now I can get into agriculture! :D Amazing work, bud!
I did actually come just to see how a shuffle machine works lol. I work in a casino and so while those machines are different, this gave me the general idea :D.
Damn, I didn't even realize I was subbed to you, bought a 3up kit wayyyy back when. Cool project!
Awesome, man it's been a long time since the 3uP days. Well thanks for the continued support!
You spend two years working on this to finally beat your friends at poker. Then the dealer takes the cards from the machine and cuts them.
_sulks away slowly_ guess I need to make some improvements for V2...
How about if the dealer is required to cut the deck? It makes it 1000x more complicated..
The only way to assure player x wins the pot out of a 9 player Texas Hold'em table, (without the dealer who cuts the cards knowing) is to fix the deck so that 52 combinations all having the same player winning. No matter what point in the deck u start from.
Since there are a millions of possible combos, u can easily write a script of code that will make the player u wish to win, win every hand or every other hand to not make it obvious.
You just need to tell the computer exactly how many players will be dealt in, and it could be done seamlessly.
This is a very impressive machine that goes well beyond the scope of anything I desire from a shuffler.
However I hope you can push me in the right direction, I'm playing a board game called Talisman which has several decks containing hundreds of cards, with the main "Adventure Deck" being over 600 cards with all the expansions and is a tedious pain to set up.
I'm looking for a shuffler that can shuffle US Mini sized cards and won't destroy them either. I've seen some of the demos of the cheap mass produced shufflers and they look like they'd wreck these cards. Manual hand cranked versions seem more viable but they would still take too long and don't seem to provide a good shuffle judging from some videos I've seen.
Apologies if this was impertinent to ask but I'm at my wits end trying to find something good that won't break the bank and your video came up in the results.
Cheap shufflers will definitely destroy your cards, and I highly doubt any quality off the shelf solution exists for mini cards like that. You could definitely do something similar to my design, but keep in mind two things. 1. This design is pretty dependent on how much force is applied to the card being fed. So if you have too much force, you will feed 2 cards. And not enough you may not feed any. And somewhat related number 2. this feeding mechanism will only work with low friction cards, like bicycle playing cards.
If you want to build your own solution to this, you would almost definitely want to flip the feed mechanism, so you can much more reliably control the force applied via a spring loaded mechanism, and this allows for some better feeding geometries which can be a little more resistant to minor damage at the edge of cards.
Be warned, if you do want to build a project like this yourself, it is going to be a huge time sink, especially if you want to make it reliable. Good luck!
Love the content Andrew! I vote you make a video showing off your process for building super simple 1-pager GUIs for python with HTML and PMP.
Why thank you David!
I love these kinds of projects and videos. Keep it up, subbed!
Thanks for the sub! I've gotten such good feedback on this video that I've already began 3 new projects, so more content will be coming soon!
I want this. Actually what really got me looking was less poker, as its easy to shuffle for poker with some practice, but there are so many board and card games with even larger decks and cards that I want to sleeve, that decks become difficult to shuffle, and it would be great to have something with a bigger hopper that could shuffle up large decks while the rest of a game is being setup.
great job ! you are quite a inventor! I am thinking of making a simpler version - the one that will just shuffle cards randomly into 4 stacks; no need to recognize cards etc.
I'm late to this party, but I think the mechanics can be simplified quite a bit. The movement of the dispenser could replace the movement of the slots module - The slots module doesn't have to move at all and the ejection bar for the slots module can unload all of the slots at once if the dispenser is at the very bottom. This would make the sorting mechanism quicker and would allow you to fit more slots in.
If the dispenser was double sided you could have slots on both sides as well, allowing even more slots within a compact space.
Nah the party never ends. I eventually want to build a V2 but I have a few other large projects to finish up first. I appreciate all the feedback though, definitely some things to consider!
Amazing invention ...First time to your channel...You mastered 3D printing, engineering, and coding to create this machine...Bravo.... Imagine what the big casinos are investing in, to gain advantage over players... Do the Shufflemaster one or two models have software/cameras to detect suits in pokers games??? I've been playing for years and been witnessing some extremely suspect hands by dealers..
This: is in my recommended
Me: is not disappointed in the algorithm
How about the shuffle machine Texas Holdem when playing against other players?
I appreciate your oxford comma.
Thank you, a lot, for showing and explaining this. Very useful. And amazing great work you did, well done!
Make an algorithm that makes the interface more simple. Like: which player will win and then it just makes a random situation in which that player will win. Also, you could add a little slide thingy to the end which can rotate. This then automatically distributes the cards to the different players / to the middle.
You could add so many cool features in the code.
Really neat ideas, I may try those in V2! I've also been interested in calculating certain ways of stacking the deck such that no matter where it is cut, you can still always (or with high probability) select who should win the hand. I know some combos exist but I would love to write my own algorithm to identify all the options for different numbers of players and who's dealing, etc!
5:40 Making a "code explanation video for NERDS" video or something similar for projects may allow for moar youtube treadmill/algorhythm feeding, as well as helping others learn how to do the "behind the scenes"
(granted may be other sources to learn obviously, but moar videos/content = moar win?)
(also would require NLVE-ing time which is ...eh (at least for me) so may not be worth it in your opinion, just throwing this idea out there)
Amazing! take a look at the paper pickup mechanism on consumer printers, it might give you some inspiration on how to improve the card dispenser
Great tip, thanks!
@@3DprintedLife Biggest difference between what a printer does and yours is the orientation. Printers don't try to take the bottom sheet of paper, they take the top one. The paper sits on top of a spring-loaded tensioner that holds the stack of paper at a constant pressure against the rollers.
Also, their rollers are always a flat profile, not the round one you get from the o-rings. I suspect it gives move grip for less tension, so there's a lot more friction between roller and paper than the paper and the next sheet downwards.
You know, when I was a kid, I made a card shuffler (which worked quite well) out of legos. the wheels are perfect for dispensing cards
How does this channel only have 24k subscribers???
I can’t imagine the time and effort. Wow!
Hoping to see v2 of this soon!
Given the ability to set the deck order, and read the deck order, you could actually shuffle in software, and then just build the deck to that shuffle. No need to run through excess shuffles. I'm guessing only 2 would be necessary.
You are right, this should be able to sort into any generic order of 52 cards in two cycles with the following algorithm:
1) Give every card in the arbitrary order an index of 1 to 52
2) Look at the first card to sort. Assuming 8 bins in the sorter, if the card index is 1,9,18, 25, 33 40, 49, 57 (ie start at 1 and count up in 8s) then put the card in bin 1. If the card index is in the set 2,10,19… it goes in bin 2, If the card index is in the set 3,11,20… it goes into bin 3.
3) Reassemble the deck, ensuring bin 1 is at the bottom, bin 2 is next etc
4) Check if the card is in index range 1-8, if so place in the first bin. If in range 9-18 place in second bin and so on up to 52. Do this with all 52 cards.
5) Reassemble starting with bin 1.
This should give you a perfect arbitrary sort - because in the first phase you will have done a pre-sort which puts the cards in an order where the second sort will put it into a perfect order. Because bin 1 in the pre sort contains cards 1,9,10 etc, these will be the first cards sorted in the second sorter pass. In the second sorter pass you effectively have pre-sorted chunks of 8 cards, and the first 8 cards must contain index 1 for bin 1, and index 1 will go to the bottom of bin 1 pile etc.
Hope I’ve explained that enough!
@@AshHartwell I watched this at like, 2AM and didn't want to actually figure out the algo. Thanks for pointing out that Its literally just Radix Sort, base {number of buckets}, in this case 8. And radix sort takes Log (n) sorts, so for 52 cards, you only need 2.
you could greatly decrease deck restoration time by pushing the bottom 4 then the top 4
feels good to be a new memver
You should try using dielectric grease for the noise. It should help out a bit
Can’t wait to see the Uno version
Must cover up wires and
How
Its
Built
(Nvm UNO!)
It looks like the image processing is taking way longer than your mechanics can handle. (@11:34 you can see the shuffler just waiting.) It's worth looking into some form of faster computing.
Nice project!
I feel like the image recognition part can be done a lot faster with a tiny AI model that can run on raspberrypis.
Super Cool! Most of the issues you were having with the cards, the biggest one being able to get a single card, I would have to say were the cards. Bicycle cards are great cards, but if you were to use them at a NLTH tournament, they would last about 10 hands max. If you had some plastic poker cards, the Copag Poker Jumbo are great around $10/pack, the cards would become a constant, not a variable. They would always be, and only be, as slick as when you begin, unlike the Bicycle which would start one way and continuously change with use. I really want one, but dont think Im at this level yet.
Man, the casino stuff I learned!
Hey I am a senior in highschool and I’m making my own version of this for my engineering project and was wondering if you have a wiring diagram for it and what voltage you used as your power source for the micro motor on the card shooter. Great project and I’m having a lot of fun building it!
This is seriously so awesome
Looks like you read the patent on Shuffle Master. The casinos cheat the players using this same style machine.
In some sketchier places this may be true, but most of the time they wouldn't bother. It isn't worth the risk for them to get caught doing this when all the games are already designed to favor the house. The shufflers do have this feature but it is strictly used for verifying the deck and re-stacking in the unshuffled order.
@@3DprintedLife I’ve gambled over 500k. I can assure you that all the casinos are cheating with these machines. The games don’t play anything like they used to. Ask any old timers how much easy it used to be 10 years ago when most tables were hand shuffle and you’ll see that the games are not what they used to be. The games are much harder to win with machine shufflers. Go watch a casino shuffler at a poker table and then go watch a hand shuffle game and you’ll see they are very different. This is why high roller tables are mostly hand shuffle because most people with a lot of money aren’t stupid. 10 years ago if you were playing baccarat on a hand shuffle you would find a 10-25 run bank or player. Now it’s so rare to find a run with the shufflers it goes more back and forth. The casino loses big money on long runs and the machine took those runs away. I can go to any casino with a shuffler and prove to anyone how they are cheating in real time. Especially Indian Casinos like Foxwoods and Mohegan Sun.
Is the camera used for identifying the cards out of focus on purpose so that the blobs are thicker or does it just not matter as much because it get sharpened through the flattening process anyway?
I didn't have enough room to mount it far enough away, so it is too close to focus. But you're right, it doesn't matter too much since the image is run through some filters.
would be cool to cut these components from acrylic using a laser since most parts are very boxy and at right angles. awesome projects and r&d! integrating the different components (mechanics, steppers, opencv, codebase) is very challening starting from nothing. how does it handle different sized cards? If I wanted to build this id want to shuffle any deck of cards (not necessarily poker cards).
Yeah the rear plate is laser cut and definitely could convert more components to use this, but I wanted to keep the design as open-sourced as possible so people without access to a laser cutter could still build it. I haven't tried any size other than standard poker cards but it probably wouldn't work great with others. And honestly, this was a fun project but not nearly quick or reliable enough to justify using over traditional hand-shuffling. I do hope to get a V2 made sometime soon, but I keep coming up with other more interesting projects which will get worked on first!
@@3DprintedLife I would like to help with V2. See github for some questions and a pull request.
Hopefully you still get notifications on this; have you made any improvements on your card shuffler, I think a simplified version maybe even a bit more compact it could be really useful for home card games. We still play a lot of uno and I always thought that the cheep alternating shufflers are just not good enough where real randomized shuffling would be so much better but anything that currently accomplishes that are way too expensive for “home” play.
You should add a unshuffle option to put it back into the order of a new deck!
Great design and explanation. I'm wondering if you could estimate build cost (assuming access to a 3d printer, say), and say anything about "maintenance" of the machine given regular use (eg do you need to recalibrate the camera, launcher etc regularly)? Sorry if these questions were answered in the video and I missed them.
Total cost is somewhere around $200-300 and there's no regular maintenance, but the card dispensing mechanism is unfortunately pretty unreliable so most of the work to keep this running involved adjusting the gaps on that part. It also would require more uniform lighting and opaque side panels to get the most reliable card detection due to the way the computer vision code was written, though I now know of some ways to improve this significantly if I ever complete V2 (which I started but is a big project!)
Due to strong interest in this project (and wanting to recreate it) I did some research calculations. I found that with 8 bins the chance of the bottom card ending on top is about 790x larger than the top card ending on top. This quickly decreases to 2.3 times after 2 shuffles and to 1.1 (neglectable) after 3 shuffles. I thought these results might be interesting ; )
I hope it's OK to use this concept for inspiration for a future design project of mine.
Really interesting, thanks for sharing. And definitely it's ok to base a future design off of this. That's what open source is all about!
THIS WOULD BE A FUN PRANK WITH YOUR FRIENDS!!!
guaranteed Vegas has been done had this technology
Nice build... though it does seem your opencv training can't distinguish between spades and clubs, in the places where you showed the script output.
Yeah it does have trouble sometimes, especially when lighting conditions change. Not having a clear side panel would have allowed me to tune it way better but then it's not as nice to film! But in general it does need a better detection algorithm, which I hope to improve if/when I work on a V2!
What material did you use to print the rollers? Did you 3D print them?
The main body was 3D printed (mine are clear SLA from a Formlabs machine but any old FDM printer can make them too) and the black rings are rubber o-rings for gripping the cards
What motors did you use for the dispensers? Great project!
A tiny "n20" geared DC motor for the counter rotating rollers and a mg90 servo for the roller that actuates a single card. If/when I make a V2 I will definitely be changing this up. The n20 motor is super loud and the servo is too slow (and actually one of the biggest limitations of dispense speed in this version)
@@3DprintedLife Interesting! I was thinking of making something very similar. Any recommendations for updated motors?
Not sure I haven't gotten that far yet! But to speed up dispensing, it would be important to have a dispense motor that can spin continuously. I have current sensing on the counter rotating roller motor so it's possible to detect when a card is dispensed, so position control on both motors isn't required.
@@3DprintedLife Gotcha. Also, have you tried full plastic cards instead of paper cards? I think it would make it much easier and consistent to dispense a single card at a time, as the plastic reduces the friction between the cards. Paper cards like bicycle can get really sticky, especially if theyre old. Copag and Faded Spade are good brands, I recommend trying that as well!
i had a friend who had a cheapo shuffler. you split the deck in 2 parts and it would shove the cards randomly from each pile in the center, do it a few times and it would be shuffled
When regular shuffling it mixes it twice, the cheat ine only does it once, but what if it shuffles it in a specific order the first time so it knows where each card is and it will be faster separating all of it
Can you give me a hint on the research you did to figure out a roller strategy? I am building a MTG card sorter that will also generate me a CSV output to track my collection. Im worried about handling cards safely but also to process and scan quickly. Have you noticed any damage to your playing cards during usage of this type of roller?
I know you said you had no interest in making these, but let me try and convince you otherwise. Machines like this, with the same capabilities run between $12-15k new, $4-8k refurbished. Let’s say at scale you could keep your cost to $200-300 . I would be willing to pay $2.5-3k for a shuffler like this. All you need is a little refinement, a case and a UX .... could be just buttons or a whole separate small LCD like the Shufflemaster Deckmate II. I’m telling you there is a huge market for something like this for weekly poker nights.
SO IF HE BUILT THIS SHUFFLER WIT 100 DOLLARS IMAGINE THE TECHNOLOGY THE CASINOS CAN PAY FOR?? THIS REALLY EXPLAINED IT ALL
The PARTS cost him 100$. pROBABLY 100,000$ worth of engineering time.
How does it do with a new deck of cards? I see your deck is well used... I challenge you to make a V2 of this, More compact, and quieter, and make it so it slides into the top of a poker table. 😉
Wow! Genius! Subbed.
Just FYI....most companies that create shufflers don't sell their products not because of hacking but rather their model of business is based on leasing their products to casinos. They would much rather keep getting a monthly paycheck from the casino in using their machines than a one-off payment (not enough casinos open up each week for them to profit off of). The lease has stipulations that the casino has to adhere to or lose possible millions in lawsuits, this allows the shuffle companies to control all aspects of their units.
You don't get access because you are not a casino....and contracts are usually set in years and numbers (such as 5 machines at $25,000 per month for 1 year, as an example). There is no "hacking" because unloading data requires a password authentication and a hardware key, otherwise you are physically hacking which can easily be caught by casino managers and surveillance. The software has several modes based on the number of games the casino provides, allowing a machine to be swapped from table to table as needed.....and it also has a sorting and recall function. Despite what conspiracies are out there, no, the machines do not have a "set hand" function as not only would that violate commission rules, but also leaves a vulnerability for casino losses by the shuffle company (which leaves them liable on those losses because the code is theirs by lease). Yes, the machine can sort and recall, but that's just reading, not setting.
Just a little FYI
Do you plan on selling the shuffler? Not interested in cheating part. I plan on having poker games come fall. I am getting ready to purchase a shuffler you showed in your video, but like what you mentioned, a little spendy. Thoughts?
Sorry not selling it, and it isn't reliable enough anyway. Needs a lot more work
At 9:49, the suits don't seem to be well-shuffled(?) By watching the demo, it seems that the shuffler shuffles within groups, but one group doesn't seem to mix with another(?)
Isn't randomization amazing? Sometimes it is so random it becomes ordered again.
Why do you have two motors moving cards up and down. You have one motor that descends the entire deck and then a separate motor that moves the eight boxes up and down. Why not just move the deck and leave the eight boxes still?
Good idea. It could make deck restauration at the end more complex though
@@paulfontaine7819 The arm would need to be mounted on The moving platform. Moving platform would move to its lowest setting, the arm would retract and pull the lowest of the eight boxes into the deck, and then it would do it again seven more times moving up each time.
The biggest problem I see here is speed. The eight boxes are fairly light and can move very quickly. The heavier a module is the slower it can move, and making one module that does all the things will inherently make it slower.
OCD can be emulated by comparing all master images with the scanned one and take the one with the highest % score. It's not how OCD works, but it's a lot faster.
Lesson Learnt...Never ever play to the casino in which machine shuffle has been done.....always play on the table on which Manual shuffling has been done by Hand.....Am I right Sir ???...
Haha I wouldn't worry that much, at least not in legal casinos in developed countries. First off, most decks are split by hand after being machine shuffled. But there's also plenty of laws to prevent unfair rigging of games. Besides, why would a legit casino risk getting caught and shut down when they already have the house advantage in all games? Casinos make tons of money for a reason! But no need to worry about being cheated, all of your losses are just statistics :D
6:20 you might want to use sockets there.
You're a genius...
maybe add a button so you can just press it to start the machine with previous config