loading

This is my take on the Useless Machine/Box (or Ultimate Machine - originally invented by Claude Shannon) that switches itself off if you turn it on. In this case you can play a game against the machine that will always result in a draw or win or lose - I'm not sure which one.

The components are a box, servo, Arduino Uno and a magnetic or reed switch that detects the presence of a magnet.

I know, the Arduino is such overkill but they are so cheap here ($2.00) - probably a good project for a Nano.

Ok, guess I have to explain the two dollar Uno. This particular board cost me $6 (35rmb) on taobao.com but I said $2 because I have five clone boards (dccduino) that I also got on taobao for 15rmb (actually $2.50) each but didn't even notice I used the $6 board. So the devil is in the details. Sorry I stretched the truth, told a fib, lied a bit. (http://item.taobao.com/item.htm?spm=a230r.1.14.42....

I will try to be more careful and detail oriented in the future and less prone to exaggeration.

On a different note: a real useless machine actually turns off it's power (as I understand it, I haven't built one) and this one does not do that.That would be cool because this one you have to unplug the power or battery or install an on/off switch. Would be cool if this one turned off the power too with some kind of magnetic switch or something but

then the Arduino would have to init each time - not sure how to approach that.

Step 1: Set Up Servo Arm With Magnet

I just hotglued a piece of chopstick to a servo arm with a zip tie. Then hotglued magnet to the other end.

Step 2: Mount Servo in Box

Here I glued servo to the inside of a plastic box container so the magnet is just below the "game board" drawn on the outside of the box.

Step 3: Mount Magnetic Switch and Connect Arduino and Servo

Then hotglue the magnetic switch (I used old bicycle speedometer reed switch) centering one end below one of the playing squares.

Plug one end of magnetic switch to digital port 2 and also to a 1 k resistor then to ground.

Plug other end of magnetic switch to 5 vcc.

Plug servo signal to digital port 9.

Plug servo positive to 5vcc.

Plug servo ground to gnd.

Step 4: Arduino Uno Program

#include

Servo servo1;

const int buttonPin = 2; // the number of the pushbutton pin

const int ledPin = 13; // the number of the LED pin

int buttonState = 0; // variable for reading the magneticswitch

void setup() {

Serial.begin(9600);

// initialize the LED pin as an output:

pinMode(ledPin, OUTPUT);

// initialize the pushbutton pin as an input:

pinMode(buttonPin, INPUT);

servo1.attach(9);

servo1.write(55); }

void loop(){

// read the state of the pushbutton value:

buttonState = digitalRead(buttonPin);

Serial.print(" button= ");

Serial.println(buttonState);

// check if the pushbutton is pressed.

// if it is, the buttonState is HIGH:

if (buttonState == HIGH) {

// turn LED on:

digitalWrite(ledPin, HIGH);

delay(3000);

servo1.write(85);

delay(100);

servo1.write(47);

delay(2000); }

else { // turn LED off:

digitalWrite(ledPin, LOW); }

}

<p>This is really nice twist on the useless machine!</p>
Thank you. Yeah, I tire of this game pretty quickly.<br>Claude Shannon who made a useless machine from Marvin Minsky's idea also built the first robotic juggling machine. I tried to build one but failed but did manage to build a bouncing juggling machine.<br>Kind of run out of ideas lately to work on.
<p>Cool!</p><p>I currently live in china and I also use taobao.</p><p>things are very cheap!</p>
<p>I love it! A great idea and simple too. Thanks for sharing.</p>
<p>An Arduino compatible (called an &quot;Eleven&quot;) in my country is $49.90<br><br>If you can get the genuine thing for $2.... just start exporting.<br>Stick a sticker or something on it and call it your own product.</p>
50 bucks,that's crazy. Yes, things here on taobao.com are really cheap. Electronic products in general are really cheap. I went into an electronics market in Harbin and saw people putting little circuit boards together by hand, including hand soldering those dinky little caps and resistors, and then sell the product for next to nothing. I think those days may be coming to an end though. Cracking down on knockoff products here.
<p>This is great, but I have a question: <em>where do you get Arduino for $2??</em></p>
<p>His bio says he is in Shaoxing... which would explain that!</p>
<p>Ah! (He could make a fortune selling them on by mail...)</p>
<p>Can someone explain the Shaoxing part? Is that where the Arduino boards are manufactured in Italy? (I have no idea)</p>
<p>Shaoxing is in China where they cheaply mass produce electronics, sometimes with permission. </p>
<p>I would be interested to know that too. I assume these are knockoff boards because when you import anything into china the import duty sometimes doubles the cost of the product. Now Arduino could be having the boards manufactured here and then they get slipped on the market here at a really low cost. I'm guessing.</p>
<p>Yes taobao.com is cheap - you have to be careful what you order - sometimes they do the bait and switch thing. I thought I ordered a Kala ukulele and got a no name uke that fortunately wasn't bad so i kept it.</p>
<p>dccduino for 14.40rmb <a href="http://item.taobao.com/item.htm?spm=a230r.1.14.42.qaTU3z&id=40626728799&ns=1&abbucket=18#detail" rel="nofollow">http://item.taobao.com/item.htm?spm=a230r.1.14.42whi....</a></p><p>but I used an uno here which actually cost me 35rmb. Sorry. </p>
<p>Nice and... um... useless.</p>
<p>heehee</p>
Arduino for $2 !!! Are you serious?
<p>I am prone to exaggeration - explained in introduction.</p>
<p>Yeah, what a fun interpretation! I have made lots of LMA boxes, now I will make one of these! Thanks for sharing!</p>
<p>Make a quality one, I would like to see what it looks like.</p>
What a fun twist on the UB. I love it.
<p>Thank you. </p>
<p>To all about the $2 uno - sorry. I explained this detail in the introduction. </p><p><a href="http://item.taobao.com/item.htm?spm=a230r.1.14.42.qaTU3z&id=40626728799&ns=1&abbucket=18#detail" rel="nofollow">http://item.taobao.com/item.htm?spm=a230r.1.14.42....</a></p><p>(dccduino clone board)</p>
<p>This is such a cool take on the useless box! I want one :P</p>
<p>Thank you! I want one too. Which is to say I wish someone would market a nice kit in a pretty box- I would buy one. The stuff I build is so crude. My world would end if I didn't have hotglue and my junk box.</p>
<p>$35.00 and it can be yours.</p><p>http://www.makershed.com/products/useless-box-kit?gclid=CMXGvKDkk8QCFQkIaQod6LYAOw</p>
<p>I meant based on the Useless game.</p>

About This Instructable

18,248views

85favorites

License:

Bio: I am an American teaching English at Shangluo University, Shaanxi. I like making machines that do interesting but fairly useless things - I call them Quixotic ... More »
More by JimRD:Arduino Controlled Morse Code Key and Transmitter Magnetic Levitating Globe Tear-apart and Fix Morse Code Key (and Sounder) Made From Steak-knife and Multi-tester 
Add instructable to: