I made an AI LEGO® PixelArt Robot
ฝัง
- เผยแพร่เมื่อ 8 ก.พ. 2025
- This Lego machine can easily create a beautiful pixelart of anything you want!
It is programmed in Python, and, with help of OpenAI's DALL-E 3, it can make anything!
Simply type in a subject, and hit start!
Oh, and Dave wants to make something too :) .
--------------------------------------------------------------------------------------------------------
The code is available for Download on GitHub:
github.com/Cre...
--------------------------------------------------------------------------------------------------------
This triggers so many memories, lol.
Yes
It is YOU!
It indeed does
HI JK!
Kiivbhu
Good choice of making it a fox. Very good. Yes.
Consider this a tribute. Whether that is true we're not going to discuss 😄
Wow!
Is that the popular minecraft youtuber and modder Fundy minecraft?
@@CreativeMindstormswow so thats cool
Fundy!
I'm literally thunderstruck by the multiple layers, scales and magnitudes of awesome creative work of Lego engineering, coding, video production and editing, writing and presentation. This video should have many many more views. Brilliant work, sir!
Thank you so much sir! I appreciate everyone watching and I thank you for taking your time to write a nice and thoughtful comment!
Well, if you play in a mindstorm, there is a good chance you might get thunderstruck
Not only does your LEGO skill keep improving, your video making has also become really good! This video will do well 😉
I hope so lol. I'll try to keep improving 😊
PuzzLego is here?!?!
@@CreativeMindstorms i called it😆😆😆😆
@puzzLEGO yup, lol!
Puzzlego why have u been absent for 1 month
Love the machine! Excellent work, yet again! 💯
8 likes and no comments?????? :(
Thank you man! I appreciate it!
Hello!!!
This video is so incredibly high quality, both in terms of content and design. Well done!
Thank you so much! That means a lot! I tried experimenting a bit with the style and hope it turned out good.
@@CreativeMindstorms it turned out more than good, you're pretty underrated i think you deserve absolutely more subs😅
As soon as I saw this in my notifications, I also thought of the Bricasso. Glad you took it to the next level!
Yes, me too! Bricasso is still the pixelart-robot-king in my opinion though 😅
Will you ever come back to youtube
Having to refill the colors seems like the main downside of this. With how long it seems to take it would be nice if you could just set and forget and not keep checking on it.
You could extend the color ‘hopper’, and modify it so you can see the height of each color stack with tick marks for every 10 plates.
Then the program could print out the number of each color that is needed in the current design and you’d know up to what tick mark you need to fill each color at minimum to complete the ‘print’ without needing a refill.
The program could also prompt the user for how many of each color they have and do two passes on the image: first for each pixel compute a ‘difference’ value for each available color, then in the second pass always first greedily assign colors to those remaining unplaced pixels with the lowest ‘difference’ to the colors, tracking the remaining colors you’d have and always assigning the next lowest ‘difference’ color that also is still available.
This should result in the final design never using more of a color than what you have, while still looking as ‘close’ as possible to the desired image. A neat side effect of this is that you could effectively choose palettes - eg. If you only specifying counts for various black/grey/white plates then the final design it outputs would be completely greyscale. Same if you only input counts for blue tones.
You could also include dithering as a means to better approximate colors and better handle not having enough of a color.
That's really well thought out! If I am going to upgrade this machine, I will definitely try this!
E
@@jesmay.09Can you make your reply russian?
That or hear me out, have enough of each single color in stock to print a 32x32 flat color image of only that color, so 1024 of each color
Yeah, I was thinking that too!
Well, the first part, I didn't think of it in that much detail ._.
The fact you can remove the boards and keep the print just makes it better
9:45 That's just awesome detail, I really love that :)
I can't wait for your next video, Dave will definitely like it! Really nice project as always!!
Yes, this might be the first time I cared about the aesthetics of my code and I am liking it lol 😄. Looking forward to the next video too! Finally getting some upgrades in with Dave.
Through the whole era of 32-bit Windows, the icons came in 32x32 pixel flavor. It would be fun to see some classic icons getting revived in LEGO. Winamp anyone?
Oh that would actually be cool!
If you wanted to speed it up, you could have the pick and place be able to grab more tiles at a time and have each stack be able to dispense tiles onto a belt. Then the dispensers could queue up the next strip of tiles while the gantry is placing it, and you reduce the number of gantry trips
This is utterly amazing! As others pointed out, the synergy of all your skills makes this video one of the best lego videos I've seen in a while. Keep it up!
Oh wow thank you for that! I'll try my best!
Wonderful and inspiring. Will show this to my 10 year old. With young guns like you, there is still hope in this world. Godspeed to you.
Thank you for that! Glad you liked it!
Wow! congratulations mate!! you did a truly amazing job designing and building this machine from scratch! your skills at robotics and coding were wonderful to watch! well done! :)
Thank you so much mate! I appreciate it!
love the 'no waste' art that you can take appart and start over.
This might just be the most impressive thing I've ever seen done with Lego, great job!
Thank you so much! I appreciate you watching and commenting!
Very impressing! Your dedication and humourous joy are really a pleasure to watch. Kepp doing what you like!
Thank you! That made my day 😊
That's very impressive!
Keep up the good work!
Thank you, I'll try!
Amazing video!! I'd love to see more pixelart creations with this robot!!
this is an incredible TH-cam video and incredible lego creation. awesome work!
Thank you for that! I appreciate it!
Thats awesome. Also you should use a raspberry pi running an ai locally for dave, so you can bring him anywhere.
The video is nicely edited, it flows really well.
Thank you! It took some time 😄.
If you attached this machine to Dave and then Dave would be a Lego pixel art machine and make hands for Dave to place the pixels
For me, this is state of the art. Great job, Sir!
Thank you for that! 😄
Love how you can still hear the dutch accent, Maar goed bedacht en gemaakt!
so i guess the next logical step is too add a z-axis to the bed and make it a 3d printer, you could use a voxelizer algorhithm and combine it with meshy ai
Yeah that would be cool!
RESPECT! You're a damn GOOD maker! Keep it up brother, you'll be excelling! Love from Germany!
Danke schön!
@CreativeMindstorms Ja bitte gern! Habe ja auch nur Tatsachen geschrieben!
The reason making the image smaller makes it all blurry is because it (probably) uses bilinear interpolation when resizing the image. With whatever software you are resizing, you can probably change this method to use nearest neighbor in stead, nearest neighbor will simply use a single color from the original and use that, there's no average. This achieves basically the same as what you did, but you don't have to reinvent the wheel.
I actually thought the scaled image at 8:25 looked better than the eventual result. Anti-aliasing by grey pixels helps to smooth the lines while keeping the correct shapes, and the machine has grey 1x1s to use. Look at it from further away and the “ugly, washed-out image” looks better than the wrong-shaped sharper-coloured version.
Darn, now I have to build the whole machine myself to get that result I prefer :)
Cool project! To capture how a human would draw things like a sunflower at this scale vs. the garbled mess you get from downscaling, you need an ai trained on pixel art. There are stable diffusion models that do this. You could even train your own on lego-colored 32x32 images specifically.
Another idea: You could use the full range of lego colors if you simply do multiple passes. You could even go so far and make the software plan ahead and ask for stacks of specific colors in whatever slot it wants, so you don't have to interrupt so often to refill a single color.
Those are some good suggestions! If I ever make a version 2, I will definitely take a closer look at them!
With the realization of ones own potential and self-confidence in ones ability, one can build a better world.
Deffo Dutch, hoi! Toffe shiz. Ideas filling my head haha. Kga m'n plotter weer uit de kast halen. Subbed.
i have a suggestion to make a pixel art with good quality u can divide the picture into 4 part each 32 * 32 and then create those 4 parts and join them together . if you repeat this process again and again you can have a 1024 * 1024 pixel art
EDIT- Subscribed after watching this video
I would need a million lego pieces, but sure that would be cool! Oh and also: it would take over 3000 hours for this machine to complete it!
@@CreativeMindstorms you can make a smaller version 256 *256 that will also be good and more amazing
you can achieve this by upgrading the size of the portrait like form 32 to 64 and then to 128 and then to 256 this would also be good and you can also create a video on it
I really like the build, considering that it may be pretty hard to make pixel art out of lego. I also like how you tease dave getting new features.
Thank you!
It's been a few months since I last checked my subscriptions. Dang your channel has grown! Keep it up!!
Yep! It's been a wild year!
you should hook up dave to the pixel art maker, and randomly, dave just makes whatever he wants.
As a Mindstorms collector I'm a little biased when it comes to the awesomeness of Mindstorms creations, but I'll say it anyway: "You, and your creations, are awesome!".
Thanks a lot Paul! I appreciate your bias 😄
*the WONDERFUL world of NOT PLANNING AHEAD and just IMPROVISING” so relatable 😭
So true
Haha yess! It is honestly the best too!
Very cool build. All it needs are some bigger magazines for storing the 1x1 pixels so you can let it run unsupervised for longer.
that can probably just be changed afterwards
My 4 year old son LOVES this video, we are looking forward to more videos!
Thank you for that! I appreciate it. I'm also looking forward to making more videos! Have a nice day!
This guy is basically the redstone engineer of legos.
I love your videos! They're always so helpful and informative.
Thank you for saying this!
This was soooooooooooo worth it. I wish I had one. but, I didn't even know that dave was gone!
Awesome! Yeah Dave was gone in shorts, but he's back!
Its impresive what you do and the low suscriptors you have, you should have millions ,grate creativity and talent, thanks for this kind of content.
Thank you for that! Welcome to the channel!
How does this video not have a million views already? Your ingenuity, simply amazing!
Thank you for that! I'm still very grateful for even 10%!
Those images couldn't be cuter. Incredible.
Regarding the issue of colors running out, you could make it so it doesn't stop until all required colors are empty. If the hopper is capable of storing 20 of each color, make the robot place 20 of each required color before asking you to refill. Then you refill all those colors, and it does another 20 of each required color. This would make it so you don't need to refill each time any one color runs out.
That could indeed help! The problem is that you will probably sometimes end up having to place pixels in between other pixels, which is very prone to errors, as the new pixels will get stuck on the already placed pixels.
Hello. I am an old fan and you probably dont remember me but I suggested a few ideas for you and you actually built them.(for example chess playing robot, arcade). I just wanted to say congratulations on already hitting almost 250k subscribers and still uploading videos. You blew up. Hope to see more. Big fan.
Hey! Thank you for watching my videos! I appreciate it! I do remember going back into the comments to your comment about the chess machine after making it. Your early support meant a lot, and it’s awesome to see you still here. Can’t wait to share more projects with you!
When downscaling to 32x32 you can choose the most frequent value instead of the center value to avoid the smudged colors. This happens when accidentally choosing colors in beteween two colors since they've most likely had some kind of blending in between in the original image.
Hmmm yeah that might have been a good way to go about it.
You need more recognition from your work, your friend.
Thank you! I'm happy with how well this has been received!
@@CreativeMindstorms Your channel never fails to make me smile. Great job!
Thank you! That made my day!
Nice Vid I like making stuff out of Lego like small Lego printers but your stuff is on a whole other level.
Thank you. It is great to hear that you're making your own machines out of Lego! I don't hear it that often anymore unfortunately 😊
This is impressive! I love it
Thank you!
This is awesome. You are so talented!
Thank you!
this is.
AWESOME! keep up the great work! new sub
I would like to say.
THANK YOU! Welcome to the channel!
Really nice. You might as well have it make even larger artwork in pieces.
Incredible build and video dude, love it!
Thank you so much!
Now this is some phenomenal content. I'm totally in! Easiest sub ever
Thank you! Welcome to the channel!
@@CreativeMindstormsYo Can you make a 3D one? That’d be amazing! 🤩 also I love your channel!! 😊
Cool idea! ❤
So glad you made the fox.
Really cool! I would suggest replacing DALL-E with a local install of either SD1.5 or SDXL, though. The benefits are that it's free, and you can use a fine-tuned pixel art model to get results that start out more compatible with the LEGO output even before conversion, so you should get even better final results.
Oh I hadn't heard of these models. That sounds perfect for this application! Thanks!
@@CreativeMindstorms Oh, for sure! I'd recommend the Automatic1111 WebUI interface for Stable Diffusion, as it comes with built-in support for a REST-style API that you can connect any of your code to.
Thanks for letting me know!
dat heb je BRILJANT gedaan!
Dankjewel!
This is very cool, I have a slight love-hate thing going on with how you get pink tiles in the finished 'print' that look like jpeg artifacts (or I suppose more like a gif with a very limited colour palette) but I've made favicons for websites in the past and I know how hard it is to work with so few pixels. I actually think the 'printed' physical Lego versions look even better than the on-screen previews. The whole thing looks very professional, like Lego could sell it as a Lego 3D Printer kit or something.
Thank you for that! Working with few colors and pixels is indeed hard to do. I also tried making the saturation of the colors a higher priority when deciding the closest color, but it unfortunately didn't help with getting rid of the pink and green pixels. Thank you for commenting and leaving your thoughts!
From error to error one discovers the entire truth.
Next up, Dave: the Sentience Update
really cool build keep it going!
Thanks, I'll try!
Love this video, subscribed to your channel because of it. Next step - 3D building robot, that builds in the Y-axis/Z-axis (up?), you can do it I know you've got the talent! I know many have suggested it already, but felt I should chime in as well.
Thank you! Yes indeed, others have suggested it. Maybe I should try it!
I know it makes sense to check the image first but it’d be fun to not see a preview at all…
Type something in, go out for a couple of hours and come back and see what produced.
Maybe add some code that crops the image to fill the space but still without seeing it ☺️
Luckily, it is possible to close your eyes and leave the room! 😊
Completely impressed here...congrats dude!
Thank you so much! I appreciate it!
What if the program could tell you the number of peices of each color it needs before starting? Like a heads up. "You will need to refill black 2 times and gray once"
Make so Dave controls all of your Lego builds and you add him to every one and you can tell main Dave to print something on this and he does it.
Shoutout to all quirky robots holding sunflowers.
Very Cool Work keep up the cool ideas!
Thank you! I'll try!
Awesome stuff, love the video and the printer is so cool.
Thank you! I appreciate it!
Great work! Thank you for sharing this creation!
Thank you for watching and commenting!
@@CreativeMindstorms Six seconds of my effort to comment, compared to six months of your life to create the thing worth commenting on. :)
Guess that makes us even now! 😉
@@CreativeMindstorms If TH-cam could convert goodwill into revenue, you'd be a multi-millionaire by now, based on what I've seen of your video vibes. :)
Yeah I'm still waiting for that day! Otherwise it has all been for nothing! Jokes aside, I'm just truly thankful for all the positive reactions and I hope to make someone's day too after they made my day 😄
Incredible work sir, you deserve all the views and the subs. And you inspire me for my future Lego Mindstorms builds too ❤
Thank you for that! I wish you good luck with all your future Lego Mindstorms builds!
Fantastic! It's be even cooler if it could stage all the tiles for a given row somehow, to avoid the back-and-forth travel. And pop off the 16x16 tiles and replace them. And a pony!
This is absolutely brilliant
Thank you!
definitely worth it. amazing work man
Thank you!
Omg the beat part at 3:15 was amazing!
this is absolutely incredible!!!
Thank you!
Super awesome project! :-D
Thanks!
Excellent build idea! Forehead was thoroughly ignored.
Phew, thank you so much for that! 😄
NOW MAKE A 3D PRINTER OUT OF LEGO THAT PRINTS LEGO
Yeesss!!!
Quite funny that for the final demo the idea was generated by a machine, turned into an image by a machine, and printed into LEGO by a machine!
All the human has to do is approve an image and do the labour to refill the colours 😢
But sadness aside this is an awesome project and bit of engineering!
I never knew Peter Parker was a Lego engineer in his spare time 🕷
This is wildly impressive
Thank you!
You should contact lego house, im sure they will like it, and maybe buy the design from you
Like, fr
Time to make a 3d lego printing machine!
This is so cool, thank you for the good video!
Thank you for watching!
it's more pieces you may have to buy... but if you can make it so each color holds enough blocks to fill the whole print area by itself, then you'd never need to refill it. You would likely have to come up with some kind of design to make it not make it like a meter into the air but ya know. Would be cool if you can figure out a nice compact way to hold that many bricks for each color.
I would love to do that, but honestly, I don't think it would matter that much, since I still need to load all the pixels. Just all at once.
@@CreativeMindstorms thats fair but you wouldn't have to babysit it as much. You could just walk away and come back to a finished product
Now make it so you can ask Dave and he will send a print to the machine:)
Kan je maken dat Dave ook jouw andere dingen kan bedienen, bijvoorbeeld je zegt tegen Dave: “Maak een kat voor me” dat Dave dan een kat uitprint.
For the English people:
Can you make it so that Dave can also control your other things, for example you say to Dave: “Make a cat for me” and Dave then prints out a cat.
Dat zou wel leuk zijn!
Just brilliant in every respect! 🎉
Thank you!
insane project. unbelievable
Thank you!
Wow You Are A Lego Legend!
Thank you!
You should make a video selling those little cool unique art work ?
Man that is beautiful!!!
Thank you!
Super cool I love this machine. :D
Thank you :D
Good job, mate. RED SPY IS IN THE BASE
There is a red Spy in the Base!
holy f tf2 fans are everywhere
@@cheezenn heck yes
@@cheezennis that good or Bad fit you
@@Amdplt81 good
I think the next step is “full color”Lego 3D printing!
That would be cool, but I think I would have to make a call to beg Lego to produce every color lol