« Protect Yourself From Remote RFID Theft on Paypass Credit Cards By Using Pliers or Vise Grips | Main | Binary Count Off »

Sudo Make Me A Sandwich Robot

We all know that life would be better if we could make a sandwich by typing "Sudo Make Me A Sandwich" on the command line of a computer. Adam Cecchetti and I made that dream come to life this last weekend.

This robot was inspired by XKCD, a wonderful webcomic that appears to have some sort of window into my head. I swear I think of things and the next day, there is an XKCD comic about it.

Make sure to check out Adam's photos and his excellent blog called Shadowflux where he's posted his pictures and the code for this robot. Adam took the robot home to Seattle with him and I am optimistic that more sandwiches will be born of this robot and set free into the world.

Sudo Make Me a Sandwich Robot

In order to make it all work, Adam set up an arduino to interface with 2 servos and 2 steppers using the RepRap stepper controllers.

I used QCAD to design some bread and cheese distributing mechanisms and the infrastructure is up on

Sudo Make Me a Sandwich Robot

The toaster oven needed a little modification and a servo controlled flap was put into place with some hinges to make it move slowly. Adam found some pretty special stepper motors with an amazing amount of torque fo.r the flap and the tray controls.

This is one of those robots that I swear is alive. The noises it made were like an animal and it seemed that everytime we looked the other way, it was coming to life and changing things with the setup.

We made the video at NYCResistor and the music for this video is courtesy of Eric Skiff and is licensed Creative Commons on his site, GlitchNYC. Astera provided the public service anouncement for this video. Dehydration and starvation can kill. This video is one of those videos that I think it's important that everyone see. Please submit it to your social networks and use email and digital sharing to let your friends and family know that robots can now make your food for you.

This video is sponsored by SquareSpace, a great place to set up a website or blog. Use the code "bre" to get 10% off for life when you sign up.

Here's the MP4 for you to download or you can get it automatically by subscribing to this podcast in iTunes! You can also find out about videos right away by following me on twitter.

References (6)

References allow you to track sources for this article, as well as articles that were written in response to this article.
  • Response
    Bre and Adam's Sudo Make Me A Sandwich�Robot....
  • Response
    Inspired by one of the funniest goddamned XKCD strips of all time, Bre Pettis and Adam Cecchetti have built a "Sudo make me a sandwich robot" that makes a sandwich when you tell it to. Sudo Make Me A Sandwich Robot (via Make) Previously:sudo make me a cheezburger (LOLified iphone snap) ...
  • Response
    Ok, alle erinnern sich noch an den brillianten Comic von XKCD? von XKCDBre Pettis und Adam Cecchetti haben sich des jahrtausende alten Problems angenommen und einen SUDO MAKE ME A SANDWICH Roboter kreiert. Schlichtweg brilliant. Als Video und doku
  • Response
    Response: Yemek Tarifleri
    yemek tarifleri
  • Response
    Response: Yemek Tarifleri
    yemek tarifleri
  • Response
    Response: Rüya Tabirleri
    I found your entry interesting do I've added a Trackback to it on my weblog :)

Reader Comments (54)


*nom nom nom nom* ^^
Nothing like starging the day with a great video/sandwich robot thingy. lol
Loved it!

Yep, that's what a sandwich made by a linux box will look like...

Feb 27 | Unregistered CommenterOsno

One Word.. awesome.. :-)

Feb 27 | Unregistered CommenterKai

ha ha ha! very clever!

hmmm, gives me an idea.. I'm off to create an alias command that replaces "sudo" with "biotch"

Feb 27 | Unregistered Commenterironfly

I wish I could use Bre everywhere to get 10% off.

Feb 27 | Unregistered CommenterJason Scott

Needs bacon, obviously.

Feb 27 | Unregistered CommenterMike B


Adam - can the robot come with you to CloudCamp Seattle tomorrow? :) Sandwiches in the cloud!

Feb 27 | Unregistered CommenterCrystal

I'm literally in tears at work from laughing so hard.

Feb 27 | Unregistered Commenterclamoring

LOVE the angles from inside the machine on this one guys. Cheese falling on top of the lens FTW! Unconvinced about the intro though - Had you been drinking?!

Feb 27 | Unregistered CommenterLee

"sudo make me a sandwich" -->

Easy, cheap.

Feb 27 | Unregistered CommenterMe

It is not pronounced "pseudo", but instead "Sue-Doo", as the command is short for "Super-User Do". Credibility is thereby enhanced. :) Jim

Feb 28 | Unregistered CommenterJim

Pretty cool. It clearly needs a straightener mechanism, think a very weak car crusher to square it all out.
The bread really doesn't need to fall that far.

Feb 28 | Unregistered CommenterSam

hmmm, gives me an idea.. I'm off to create an alias command that replaces "sudo" with "biotch"

But then the humour would be lost and you'd just have a normal automated cheese toastie making machine.

Feb 28 | Unregistered CommenterOptimaximal

With this invention, you are one step closer to being Pee-Wee Herman.

I think you might just be onto something here.


Feb 28 | Unregistered CommenterJOhn WOods

I think maybe he should lay off the sandwich robot and invent the treadmill robot.

Feb 28 | Unregistered Commenterkh

I want my 2 minutes back!

Feb 28 | Unregistered Commentergedster

I <3 Linux fanboys.

Now if someone could figure out 'sudo write my essay'...

Seconding Jim's comment on the pronunciation, by the way. It's the only thing that brings the video down.

Feb 28 | Unregistered CommenterRowan

Now try and build the same out of lego :)

Feb 28 | Unregistered Commenterseo

very cool!


this was the gayest thing ever

Feb 28 | Unregistered Commenteryour mother

just type ./sammich? Relegating XKCD to a shell script wrapper is blasphemy.

Feb 28 | Unregistered Commenterefk

Two Words. VERY awesome.

Comments for this entry have been disabled. Additional comments may not be added to this entry at this time.