I Made the World's Best Foosball Robot!
HTML-код
- Опубликовано: 9 фев 2025
- My process making Foosbar: the (unverifiably but plausibly) world's best foosball robot! This has probably taken on the order of 500 hours over the last 8 months to make, and you get to see it all in the span of a mere 15 minutes!
Code: github.com/mis...
Twitter/X: / from_scratch_yt
Instagram: / from_scratch_yt
TikTok: / fromscratch_yt
Github: github.com/mis...
Thank you to Teknic, Qualisys and Tornado/Home Billiards for making this possible!
Teknic: teknic.com
Parts: SC4-HUB, IPC-5, PWR-IO-24VDC, CPM-SCSK-2331S-ELNA, CPM-SCSK-2331P-ELNA, CPM-SCSK-2331S-RLNA, CPM-SCSK-2331P-RLNB, CPM-SCSK-2310S-RLNA
Qualisys: qualisys.com
Tornado: tornadofoosbal...
Home Billiards: homebilliards.ca
Music credits:
Rachmaninoff Piano Concerto No. 1, University of Washington Symphony: imslp.org/wiki...
"Hey you wanna see my foosball playing robot" - fastest way anyone's gotten me into their bedroom
What if it was made of LEGO because I can’t afford full size parts and don’t even have an actual foosball table
@@ezrakornfeld8436 that would be amazing lol
@@ezrakornfeld8436 The robot would be extremely flawed because lego motors are underpowered and coding lego is quite difficult. It would be almost impossible to make out of lego and unironically it would cost more if you got it to work. Actually now that I think about it it would be impossible to make out of lego.
seconded
@@wooow8543"Coding lego is quite difficult"
In what way? Booting Linux on an EV3 brick is officially supported.
It wouldn't be nearly as good as this, but I don't doubt that a scaled-down Lego version is possible.
I am a software developer. At my former employer we played foosball as much as we coded. We were always joking about this very idea. To see this video makes me unreasonably happy.
lol, same here!
Same, haha
I feel we all worked together 😅
Just imagine, this could end up like the Battlebots or something. A team make their robot compete against other team while they develop as engineers at the same time. Some day we will have the Mecha Olympics or something LOOOL
*Uploads a video that goes viral
*Disappears for 10 months
*Comes back with another banger
I love this.
The Michael Reeves Stratagem
and hes a little kid, 10 months to him is like 5 years. he'd even put Howard Wolowitz to shame
he probably worked 10 months on this
@@Turalcar That's who I immediately thought of.
Quality not quantity.
A new "Stuff Made Here" is born !
Amazing project.
If only he could stop using the exact same punch lines as SMH.
Really!
@@impact_42 Hey, at least he only did it once.
I came looking for this comment.
I was about to say this too!
A god-level foosball robot and it’s remotely controllable? Insane! Quite possibly the coolest toy anyone’s ever had in their bedroom
It is until you realize I have 5 cameras menacingly staring at my bed... (albeit not plugged in all the time)
@@built-from-scratchI’m curious if you thought about using some sort of gyroscopic/accelerometer equipped ball instead of the cameras?
I'd like to see another set of motors added to the other side and he can invite other programmers to challenge his programming. Add in more camera angles and hi-speed replays and you've got something.
@@rider573 same thing I thought about - instead of robots killing robots in arena - this gem!
@@BuLLGotcha So we need a ball that's the same size and with a similar surface that's hollow enough to contain an accelerometer and all it's gubbins. It must not be bouncy and must be shock resistant.
sounds kinda hard
I saw the chess video and I was like "okay with enough studying I could maybe do that". But this, the whole software to make a robot able to play this sport, I have zero absolutly zero idea how to approach it. This part is bonkers for me.
Bro is gonna blow up on yt I'm calling it
why are you here
@@limeedhothis last video was about making a terraria computer
fr
Not the only one doing it
but craftyMasterman, your a redstoner! why are you here?
You not only built an amazing machine, but your production values and narration were also top notch. This praise comes from a 77 year old man who never had the hand eye coordination to play an even acceptable game of foosball.
holly shit that no eyes smack was crazy
Definitely by far my favorite shot from the video haha! I practiced a few times beforehand but it somehow only took 2 attempts to get it on camera.
niice
@Themoonisachees this is such a violation of Occam's razor, especially since there's literally glare on my glasses when I do it! I'll take it as a compliment though if you think it's so hard I had to fake it
@@built-from-scratch At a high level of Foosball it's more about muscle memory. Your eyes are for setting up the shot because once you go you already know if you are going long mid or short.
Anyone wondering it's at 4:22
I was here before 100k subscribers. These projects make me question whether my brain is like some outdated caveman model. Strong Stuff Made Here vibes, and I'm here for it!
You know you've accomplished something special in the engineering and maker community when Jeff Geerling replies to your video!
@@thrawnis Heh, I draw inspiration from projects like this; I'm pretty sure it's about 14x more complicated than any of the physical-world things I've worked on. There are different types of complexity... but the motor control and mechanics of this project are amazing.
Are you taking friendship applications? This is extremely impressive.
So ... friendship being ... you want free computer vision lessons from him?
@@ferocious_r There's also an assumption that we have a lot of shared interests since he's basically me but cooler
@@johiahdoesstuff1614 Sure was an assumption, to test you.
❤
@johiahdoesstuff1614 You're cringe
This is the greatest RUclips channel I have ever seen. It perfectly hits all my interests with great idea and great quality videos. Absolute cinema.
Video turned out amazing. Btw That's my hand in the stream at 13:48.
Can confirm if anyone had doubts about this prestigious honor, that was indeed him.
@@built-from-scratch Did the foosbar ever smack your fingers? XD
nice
Your hand is awesome, thank you so much for gracing us with such beautiful sight.
The hand made the video fr, I'd be otherwise very bored! Gracious sight!
I’m blown away by your commitment to and execution of this project at such a young age. I hope you keep making things you find interesting and that it brings you tons of future success in whatever way you define success. Others may be able to do the technical stuff you can but your personality and sense of humor will always separate you.
This dude has 2 videos and he's already making higher quality content than 90% of creators
And many thousands of dollars in sponsors already!
You are like Michael Reeves if he went to rehab
Yes
Kinda looks like him as well
Bro if this shit doesn't blow up like your last. . . Man, that first seven seconds had me already hooked. It's not enough that you're building a robot, but you gotta pull off feats of skill like *that?* Man, my jaw dropped. Glad I subbed back then.
Alsp holy crap the flexing with that blind shot. You're nuts.
Nice job on this! I designed built one of these as well for Oklahoma State University, on ours I trained a neural network to control the rod actuators. Additionally a core objective of ours was to make it the same footprint as an actual foosball table because the previous version had the side mounted actuators like yours and was extremely large!
reassembly gag was pretty good
Thankfully he only had to do it once
Just like Stuff Made Here lol
I think it's an engineering thing.
the "racist" joke wasn't.
@jamescollier3 how?
Used to play a lot many moons ago. I always had the rear defender rod with two men and the front defender with 3.
I have also been a software engineer for 35 years and am very impressed with your skills, rarely do you see a hardware engineer also doing the software engineering. Nice job
Great, I watched all Stuff Made Here videos, and now I found another suspiciously similar channel to binge!
"works by design" is another good choice.
Sadly, it’s not gonna take you too long to “binge” 2 videos
@@simpli_A watch both videos twice and with 0.25x speed. thats a lot of content :)
yeeeeeeeaaaaaaas
Oh this is WAY better than Stuff Made Here. More interesting, more fun, and much better jokes!
With such projects across the internet the "getting there" part is usually pretty boring, so I often just skip to the good part of the presentation of the finished thing. But you've made the problem solving part as interesting as the final demo which made this video overall interesting to watch. Well done!
this guy is the next big thing and he's only uploaded two videos, can't wait to see what he'll have in store for us later
As a Gen-X'er who would spend every penny of my lunch money on foosball during my entire 4 years of Jr. High, your robot is simply amazing. I was pretty good back in the day, but I'm thinking in a straight up game your robot might have skunked me. You are right in that apart from having the skills of mastering setting up the ball and executing shots, foosball is all about reaction time on defense and surprise shot timing on offense with accurate ball placement. Certainly, no human can match the reaction of an amply powered computer and the small space your system needs to fit a ball is unreal. Awesome job!
Bro your channel is incredible, im a college student I think a few years older than you. Idk why but your channel is the epitome of ”I thought it so I did it.” A motivation I wish I had more off.
Wow... I can't believe what I'm seeing in your video! Beyond impressed with the skill, knowledge and tenacity it took to create FoosBar!
Step 1: $2,500 for motors and motor drivers
Step 2: $10,000 for motion capture system
Step 3: $3,000 for foosball table
Step 4: Proft?
Motors and driver were given to him, he said, and he got the table for free from tournado. I'm not sure about the cameras. I really do hope he can get some money out of this while also furthering foosball and helping bring it to a larger audience.
For his last vid he probably got around 4k or even more, where the hell did he get the rest of the money and this is just one of his projects, he got a ton more - how?
Still mad respect for the hard work.
@@mxblock Rich family lol
If your only goal is profit you will be poor for the rest of your life.
@@mxblock Why everything should make money ?
It's not allowed to make something for fun ?
It's not allowed to make open-source project ? How do you know open-source devs get payed for their work ?
I make open source plugins, and I find it so so sad that everytime I tamk about it the first reaction is : it's coo' but why don't you sell it ? How will you make money ? You lose your time.
The companies that were smart enough to give you the materials for this project easily made their money back with the advertising, great video!
You're one of my favorite youtubers and you only have two videos! I think it's partially because you have a very similar style to another of my favorites, Stuff Made Here. You made a few (maybe unintentional, but probably not?) references to some of his jokes (only have to do it once, magic wand, etc.) which just makes it better! I can't wait to follow your path to (hopefully) success as an engineering youtuber!
I had a foosball table growing up where the players' heads could also occasionally hit the ball. It was really cool.
I love that your brother has the confidence of a LLM!
Was this an LLM? It sounded like he wrote the instructions. Was actually gonna ask about using a model lol
Has anyone got some burn cream? Because holy fuck xD
The amount of passion into this is unleveled, UNBELIEVABLE JOB :O
you could train neural networks by continually pitting them against each other on your real foosball table. you could then eventually (after a long time) and up with a neural network that is very good at irl foosball
Ideally you'd be able to model the game in software so it didn't need to physically play each game for training.
It would be interesting to see how well training on a simplistic model translated to playing in the real world. Hopefully well enough to work as pre training, which could be fine tuned with real games. It would speed up the overall training time significantly.
@@JscWilson Human players can currently beat the robot cause they have a better intuition of the real physics. So a NN would definitively need to learn this. A physics simulation would need to be very accurate to do the training in order to be better than the hand written software.
@@salia2897 "Intuition of the real physics" isn’t the only factor. Foosball is dynamic-another critical factor is how quickly a player or robot can receive input, make decisions, and act upon them.
As an extreme example, imagine a robot capable of perfect predictions but taking an hour to process them. Another robot with faster reaction times, but less accurate predictions, could score a goal before the slower robot could respond.
More accurate predictions are obviously better (all else being equal), but the robot doesn't need to have a better "Intuition of the real physics" to beat a human.
That is why I said it would be interesting to see how realistic the model would need to be to be useful.
One approach could involve initial training on a simpler and faster model, followed by fine-tuning on a more realistic yet slower model. Such a strategy might outperform dedicating the entire training time solely to the realistic model - but again, the question is how accurate do the models need to be?
@@jessewilson3571 It does not need a better one. But it does need one that is good enough to do the required maneuvers that humans can do. And doing that can only be learned from a physics model that is good enough and that will already be quite complicated.
@@salia2897 With a quick Google search, you can find a number of examples of foosball-playing neural networks that have been trained using simulations. This includes a few public GitHub repositories with Unity models that aren't very complex.
So, training on simulations can definitely be done with models that aren't extremely complex.
I love that you come up with an idea and then follow it through to completion, no matter what it is. This was a treat to watch!
Wow, dude where did you come from! Only 3 videos, but damn good ones! Can't wait to see the rest of your career!
you're obscenely talented
When I was in college I played more foosball than I did studying. This is the coolest thing I've ever seen. You're brilliant my man!
First off, I am in complete awe of what you did, from start to finish the meticulous detail is amazing.
Second, this has been shared by many online foos groups so expect some praise and compliments from the foos community from all over.
Third, how did you account for the recoil needed to straighten out those rollovers? Seeing those snake shots at that speed gave me nightmares of the one time I played Brandon Munoz and his insane speed.
Also, and not to take one iota from this massive achievement, but have you seen the Foos Gadget one? It allows you to record a defense for a certain amount of time and then jump across the table to shoot against the defense you just recorded. It also has presets in a phone app that you can load up and send to the defensive rods with increasing difficulty, it's pretty cool.
However, those stick lane passes that your machine does are insane, reminds me of Tony Spredeman lane passes.
Lastly, there are some foosers already saying, "He should bring this to Worlds!" (Tornado World Finals, Lexington Kentucky, Labor Day weekend)
For the third, I didn't need to do much other than manually tune the timings on the snakes. The rotational motors are insanely fast, so even though the sideways motion to start the snake is faster than the average human's, when the ball is hit it has enough forward velocity that it's reasonably straight (hopefully I'm interpreting what you mean by recoil correctly here). This was actually a bit surprising to me; I originally started with the robot doing a push shot which I thought would be a lot more consistent, but it turns out snakes are much easier to get working.
For the first lastly, not 100% which device you mean, from what I can tell Foos Gadgets just sells goal spedometers/automatic scoring. Regardless the goal of this project wasn't to be solely a training aid, I really wanted a fully autonomous table so I didn't spend much time on stuff like a practice app.
For the last lastly, unfortunately it's probably not possible. I've already disassembled it (I want my room back!) and I'd like to move on to other projects for now. It's not out of the question though, it would be neat!
@@built-from-scratch Wow, I was only HOPING for a response and yet here you are! Yes, you interpreted the recoil I was speaking of correctly - when humans shoot a snake they need to strike the ball while moving in the opposite direction to offset the first rule of motion. From what you are saying, it sounds like your machine does it so fast that it doesn't allow spray, which is insane. It would have been cool to see what it did with a push, I have to recoil my push back to the wall so hard that it practically jars the table. Yeah, I added two "Lastly" paragraphs, sorry. I understand that us foosers probably won't see this at the next World or National Championships but it is impressive and the foos community would love to see it live and get a chance to meet someone who loved the game enough to attempt what you have done. Once again, bravo and keep creating!
This is.. AMAZING! Maybe for another video, you could build 2 of these robots on one table and make them play each other with different strategies and continue improving themselves. Anyways, this was a great watch! :)
Nice video man. Glad you got a Tornado. That other table would have failed your test 100% of the time.
Absolutely amazing seeing these young creaters spring up all over youtube
So glad I subscribed, this is fire. Excited to see what other projects you will work on!
This is probably the craziest thing in my life. As a passionate foosball player and engineer, I couldn’t be more happy to see this.
I am a primarily drunken foosball enjoyer, so I don’t encounter it often, but I am an engineer at heart; and holy hell this project is mad impressive.
I just can’t imagine the level of patience and hardwork this would have required, just too good!!!!
Dude. I would give my left arm, three toes from my right foot, and an entire case of Klondike bars for half of your executive function.
I do think the dual motors per rod with linear belt drives was "easy mode", and the space that takes up is somewhat prohibitive. For version 2, I want to see single motor omni-wheel drive systems mounted directly on the side of the foosball table cabinet.
Oh and while you're at it, you should take a look at a machine learning approach to play. You could train a simple neural network on a digital foosball table then test it on the real thing. The machine learning part seems *RIGHT* up your alley!
Amazing. It's amazing what people can do when they think of something and want to bring it to fruition. I mean really want to. The thing that gets me is he looks like he hasn't even LIVED long enough to even learn all the stuff that we just witnessed. It's people like this bloke that drive innovation and invention. He's a superstar and i am subscribing. This is REAL reality TV.
those motors and cameras are so overkill, i love it 🥰
Seeing that is it basically your second video, I am honestly impressed by everything, from the content to the execution. Keep up the great job !
4:29 Dude perfect better watch out!
Next up: Add motors to the other side, so the table can play against itself, as well as automatic ball drop-in. Then use a neural network to control both sides, and let it train by playing against itself. I bet it'd come up with some insane inhuman strategies. Just have to be careful with local minima, but if you first train it to react like your current manual implementation would (which can fully be done in software at well over 100x real time) it will start out being about as good as your implementation. Then just occasionally switch one side back to your implementation to make sure it doesn't train itself into a weird special case. Leave that running for a few months and see if you can still beat it!
This is such a Stuff Made Here idea and I love it.
Right? It's like a Young Stuff Made Here show
wow, pure respect to you for putting everything together in 8 months, you have done way more useful learning than most engineering student who have done 4 years of study. I am sure you already have many job offers, choose wisely in order to put your skills and creativity in good use.
the next logical step is to put a robot on each side.
Very, very sharp mind, young man. Notice that ‘persistence’ was an essential component of your success. Well done.
Now make robots for both sides of the table, build a machine learning program and set it loose. Then come back and play it.
Hard work and perseverance pays off.
You have a great future ahead of you young man. Let's use our talent, skill and knowledge to benefit ourselves and mankind at large.
Congratulations once again and all the best for your future.
Can't wait to see what else you make
Dude, first of all this is amazing, you are obviously a true fooser and finally built a foosball simulation worth playing... This is big. I'm so excited. I sent this to all my foos friends... Just the idea that I could zone out and practice solo is a game changer in itself.
Tagging on to the end of your video here... I think with tweaks you've already realized that you have the ability to really fine-tune this thing to be unbeatable, But what's the fun in that? Chess against the computer is fun I'm sure, but as with the game of chess, the joy of foosball is really defined by the interactions between two players.
I feel like you've might not be seeing the obvious next step: making a whole second control setup on the other side and allowing two people to play online against each other on a physical table.
I have an idea here, and I'm going to send you a DM.
No way, he's back!
Awesome video, amazing project and dedication, and I also loved the "at least I only had to do it once" foreshadowing joke. LOL. Excited to see what you do next!
Would be interesting to see a what a ML approach could do.
Freak'n amazing project, well executed, and a great video. Thanks for sharing!
this is why nerds are important
This is amazing!!! Crazy it doesn't even have a million views!!! Keep making awesome stuff!
2:50 That cheap servo uses a potentiometer not a hall sensor
Okay fine you got me, I added this scene last minute and that was all I happened to have on hand. It's not like the power electronics (an H bridge) or the MCU (teensy) were accurate either though
@@built-from-scratch Lol
I love how all of his projects are open source, and he is sharing his hard work that he took months making with all of his viewers, unlike other people who would put it behind a premium paywall or something
ok where in the world did you get all this money?
check his resume sometime
Kind of a useless comment. Where can I find it?@@danielgysi5729
Check the description, most of it is sponsored by the manufacturers
@@hrmny_ he doesnt even need to check the description, the dude literally stated in the video he was sponsored the stuff
Supportive parents? Sponsors? And if youre this smart getting money is no problem
Very impressive on all fronts, including the script and production. You’ve got serious talent and I (selfishly) can’t wait to see what’s next.
Hopefully it’s college and you take full advantage of that experience, even if it means taking a break from videos.
well at least you only had to do it once
You have created an absolutely amazing thing here. You had a dream and saw it through with amazing percipience. I have spent 3 years building a project that was my dream. So you I know all too well the journey and trials and tribulations that occur. Congratulations from Canada!
This is hands down the most impressive technical project I've ever seen. I've seen the UBC IGEN table, would be hilarious to see this bot destroy another bot in a match
super interesting project, great job and well done on the thoroughness! 1) good call on the Tornado...there's no other way 2) i appreciate your love & skill of foosball 3) your creativity and coding prowess will *hopefully* help you become a multi-millionaire as it's well deserved with your skillset (AI dependent). looking forward to more fun projects in the future! :)
This guy is giving off stuff made here vibes. But but but. He is sooo young. How is the world producing such smart humans who can casually build / code and design incredible things. Love it.
This is just awesome work. Some insane curiosity and dedication being displayed here
Great project! I loved to see this video. Now I'm waiting for the AI trained robot version.
Super good and interesting video! The longer I watched it the more I was hoping you would try to code it with machine learning in the end, but I guess that’s too complicated right? Just imagining in my head two robots practicing foosball all day and night in my room and eventually become unbeatable. That would be next level.
Exceptionally great experimental physics and software here, Cheers !!
Unbelievable what You have done. It’s insane. Good job.
What an incredible project and video, so glad I found your channel!
Would absolutely LOVE to see a collab between you and Stuff Made Here; maybe you guys could pick something else similar to foosball and have your robots compete..
This is amazing! I feel like witnessing the early stages of chess computers, those sweet couple of years where humans still had a chance. Many of the top ''kicker'' players have a table at home to practice their shots and this is an absolute game changer.
The new stuff made here has just arrived to RUclips folks! Love it ❤
Just want you to know that this is great! Don't let anything or anyone (yourself) get in your way. And if you need support, reach out. There is may people that want to help and encourage young geniuses on their path to the stars.
Subscribed! Thank you for sharing your talent, ingenuity and passion with us ☺
I’m so glad I found this channel. Can’t wait for what you do next. Keep up the great work!
"I only need to do it once" must be reference to Stuff Made here video :D I love the idea behind this. Personaly I think not only work, but also fun should be passed to robots, so we have more time for just thinking.
Awesome work! I'd be really interested to see end to end deep reinforcement learning on this :)
Certainly enjoying your channel. I'll continue watching for new vids, just hope it's not another 10 month wait! Great job!
Only 2 videos on your channel and already 80k subs??? You’re killing it, man!
Amazing work, well done! Being an automation engineer and a foosball semi-pro player, I have been dreaming of doing the same thing for years. There is only one issue with your code, from where I come from it's illegal to spin around to score a goal. Your robot would need to learn proper move behind the ball before shooting (instead of the big spin shot). Either way, kudos!!!
Nope, in pro terms you are allowed to spin.
This channel will grow faster than this robot can shoot the ball. Nice to have i third channel to choose next to Stuff Made Here and Mark Rober
Dude you are a psychopath, it's awesome. You're now one of like 3 youtubers I have notifications on for. Good luck!!
This project was so interesting, great job! Thanks for sharing!
OUTSTANDING, young man! Keep up the good work.
That is absolutely amazing - well done. I can see big things in your future.
What a cool video and project. And love the music choices too, I don’t normally notice that. Great job, dude!!
It would be pretty cool for the robot to decide if possible to shoot with the two back players whenever there is a clear line of sight to the goal, this will work especially well if the opponent doesn't hold the middle point with the middle line
That's an awesome project. I myself thought about building something like this 😍 can you try training a Neural network for playing table soccer. I would love to see different tactics that the machine would come up with
You've got some fricking skills man. Awesome video.