Useless Machine Instructions

by randofo in Circuits > Robots

25096 Views, 192 Favorites, 0 Comments

Useless Machine Instructions

GIF.gif

The Useless Machine is a variation on Marvin Minsky's "Ultimate Machine," which is basically a machine whose ultimate goal is to turn itself off. After building it, you will be amazed how a machine consisting of two switches and a motor and does nothing but disable itself seems to have so much personality. While it does not have much purpose, it always seems to bring smiles to people's faces.

To learn more about switches, check out my Electronics Class. You could also learn more about motors in my Robotics Class.

Lesson Materials

1A.jpg

For the Useless Machine you will need:

(x1) Continuous rotation servo motor
(x1) DPDT toggle switch
(x1) SPDT lever switch
(x1) 3 x AA battery holder
(x1) Small hinged wooden box
(x1) Wooden letter ('C' or 'J' tends to work well)
(x1) 1" wood cube
(x1) Wood glue

How It Works

At the heart of the machine there is a DPDT toggle switch wired to reverse polarity to a motor. This means that the direction electricity is flowing through the motor changes when the switch is toggled. This is important because the direction a motor rotates is dependent on which direction electricity flows through it. So, to put it simply, when power and ground get reversed, the direction of the motor changes.

There is also a lever switch inside the case which disconnects power to the motor, but only when it is pressed and the power is reversed.

Thus, when the toggle switch is pressed, the power is no longer reversed and the machine is once again turned on. The arm is then free to rotate up out of the box and hit the switch. This in turn reverses the arm, which rotates back into the box, where it hits the lever switch, and turns itself off once more.

This project demonstrates how a lot can be achieved by cleverly routing electricity through a few simple switches.

Modify the Servo

resized_FSKZ0VDIPY0RB63.jpg

First things first, we need to convert a servo motor, which is a circuit board controlled motor into a basic gear motor. The reason for this is because servos are reliable, easy to work with, and have gearboxes with a lot of torque, which is necessary for pressing the switch.

All this entails is removing the circuit board attached to the motor and attaching two wires instead. It's not as scary as it sounds, and gives us a chance to practice desoldering.

Remove the four screws to find the servo's circuit board and locate the two large solder terminals connected to the motor.

Carefully use desoldering braid to remove the solder from the two terminals connecting the circuit board to the motor.

Remove the circuit board from the case.

Solder a red wire to the positive terminal of the motor. This is typically marked with a red dot. Then, solder a black wire to the other terminal. If you mess this up or they are not marked, don't sweat it. It will just mean your motor might spin backwards when power is connected. If this is the case, just rewire it with the wires reversed.

Trim away any excess wire leads from the terminal. This will make it easier to get the lid back on.

Tie the red and black wire together in a knot such that the knot itself extends past the outside of the motor enclosure. Then, place the knot on the inside of the motor enclosure. This will prevent anything from placing strain on the wire and it getting pulled free.

Close the case back up and you are done.

Drill and Trim the Servo Horn

resized_FOXVFVDIPY0RCKI.jpg
2B.jpg
2C.jpg
2D.jpg
2E.jpg

The gear-looking thing attached to the servo is called its horn.

On one of its arms, widen the innermost and outermost holes using a 1/8" drill bit. This is so they are large enough that we can pass a zip tie through them later.

Then, use diagonal cutters to cut away all of the remaining arms so that they will not later get in the way of the box lid opening and closing.

Shape Your Letter

resized_F5E43DUIPFPAPDU.jpg
3B.jpg

Place the servo on top of the box and get your wooden letter. I found that the "C" worked exceptionally well.

The goal is to mark it so that it forms a hook which will be small enough to rotate fully into the box, but be large enough that it will rotate far enough out of the box to press the switch.

This might take some trial and error. Fortunately, wooden letters are cheap and easy to work with.

Cut to Size

resized_FGEANELIPFPAVPY.jpg
4B.jpg
4C.jpg
4D.jpg
4E.jpg

Cut the wooden letter into a hook shape using the markings you made in the last step.

Smooth out any rough edges with sandpaper.

Trim the Lid

resized_FLOKC4PIPFPB634.jpg
5B.jpg
5C.jpg
5D.jpg

Place the motor atop the lid on the far edge from the hinges. Position the motor to figure out just how much of the lid is necessary to keep in order to mount the motor such that the servo horn is just clear of the lid.

Once you have figured this out, draw a cut line across the box.

Also make a cut line on the side of the lid angled slightly towards the edge with the hinges.

Cut the lid into two sections at an angle by following the cut line.

When you are done, the part of the lid connected to the hinges should have a slight overhang.

Glue

resized_FABXQ2HIPFPBCG1.jpg
6B.jpg
6C.jpg
6D.jpg
6E.jpg

Using wood glue, permanently attach the part of the lid without the hinges to the box.

Wire the Circuit

resized_FZSR0MRIS0EZCXB.png

Let's wire together the circuit as outlined in the wiring diagram above.

To begin, attach the motor to the center terminals on the switch.

Then, attach the battery back to the outer terminals on the switch, keeping an eye to line up power and ground connections. If the switch were to be thrown now, power will either be connected or disconnected, and the motor should spin clockwise.

Since we want the motor to get disconnected when it spins counter clockwise and presses the lever switch, we then connect wires to its common and normally closed pins. In this way, the switch is normally closed to allow electricity to flow, but the connection is opened (or 'broken') when it is pressed.

Finally, the outer terminals of the switch are crisscrossed to allow the motor to be powered backwards when the switch is toggled. For ground we simply use a short wire. However, for power we use the wires from the lever switch such that it can be toggled on and off.

Drill Mounting Holes

resized_FCHIXGDIPTJKCZU.jpg
8B.jpg
8C.jpg

Align the servo's lever with the base of the wooden arm, and use the servo's mounting holes to make two drill guides on the arm.

Drill these marks with a 1/8" drill bit.

Fasten the Arm

resized_FYUSV3RIPTJKDDE.jpg
9B.jpg
9C.jpg

Fasten the arm to the servo's lever using a small zip tie.

Trim the excess zip tie tail when done to prevent it from catching and getting in the way.

Epoxy the Servo

resized_FFBMHJAIPY0NNAX.jpg
10B.jpg
10C.jpg
10D.jpg
10E.jpg

Mix together 2-part 5-minute epoxy and glue the servo to the inside of the lid such that lever arm will sit roughly centered in the box. Also, make sure that it will be able to rotate upwards over the box lip without immediately catching.

Once you are certain on the positioning, turn the box over, and wait 30 minutes for the epoxy to fully set.

Drill a Hole

resized_FSLQ8KAIPY0NRXZ.jpg
11B.jpg
11C.jpg
11D.jpg

Drill a 1/4" hole centered along the edge of the box. This is for the switch. Thus, the hole should be positioned in a spot where the lever arm can rotate up and past the hole. This will ensure that the arm will always be able to hit the toggle switch and push it far enough to activate it.

Install the Switch

resized_FQELOVWIPY0OBEI.jpg
12B.jpg
12C.jpg

Using the switch's mounting nut, install it in place.

Drill

resized_F0QOMH4IPY0OSXH.jpg
13B.jpg
13C.jpg
13D.jpg

Position the lever switch centered along one edge of the cube such that the body of the switch is level with the top of the cube and the lever extends up above it.

Mark the switch's mounting holes with a pencil, and then drill these markings with a 1/8" drill bit.

Zip Tie the Switch

resized_FXYYYWNIPY0P1NK.jpg
14B.jpg
14C.jpg
14D.jpg

Zip tie the switch to the 1" wooden cube in such a manner that the lever is extending up past the top of the cube.

Glue the Battery Holder

resized_FW9CT36IPY0PCB5.jpg
15B.jpg
15C.jpg
15D.jpg

Use 5-minute epoxy and attach the battery holder into the bottom corner of the case below the servo. This will ensure it is out of the way.

Glue the Block

resized_FDTUGX5IPY0Q3BF.jpg
16B.jpg
16C.jpg

Glue the wooden block into the box such that when the arm rotates inward, it ultimately presses down firmly upon the lever switch.

Insert Batteries

resized_FCEFI49IPY0R5LY.jpg

Insert batteries into the battery holder.

The arm should ultimately rotate into the box, and turn itself off.

If it does not do this, quickly remove the batteries, and then check to see if your DPDT switch was installed backwards into the box. This is a common mistake and should typically fix things when the battery is re-inserted.

If it is still not working after you try this, again remove the batteries quickly and double check all of your wiring. Something is not right.

Likely, you might have messed up the polarity on the motor wiring. However, you should check everything carefully before switching any wiring.

Close the Lid

resized_F2PEOUWIPY0R5YU.jpg

Once the arm has rotated into the box, and turned itself off, close the lid to the box.

Congratulations!

resized_FWXBSTAIP8M8GQH.jpg

You now have a machine which does nothing. Share it with your friends and family.