Lunch Decider Wheel

by randofo in Circuits > Arduino

36466 Views, 209 Favorites, 0 Comments

Lunch Decider Wheel

main.jpg


The lunch decider wheel is basically a carnival-style wheel that spins every day at 11:45am and selects what is for lunch. It came about on account of my perpetual indecision on this very important culinary matter. In fact, this device does more than just decide what I should eat for lunch, but provides two very important public services. For starters, it selects what everyone will be having for lunch; eliminating the need for surplus cognitive work. Secondly, it prevents me from asking all of my fellow coworkers what I should be eating for lunch (much to their relief).

This project uses some serious hardware such as an industrial-scale magnetic clutch that I purchased directly from a Chinese factory and a 400w laser cutter that I used to cut up the plywood. Of course this project can still be built without these things. It would just require slight modifications to the design and construction process. I did not exactly reinvent the wheel; I just automated it and forced it to pick lunch for me.

Go Get Stuff

1A.jpg
You will need:

(x1) 12V DC car seat motor (or similar)
(x1) 24V magnetic clutch (aliexpress)
(x1) Arduino Uno (Radioshack #276-128)
(x1) PC Board (Radioshack #276-150)
(x2) 12V relay (Radioshack #275-001)
(x2) TIP31 transistor (Radioshack #276-2017)
(x1) SPST momentary pushbutton (Radioshack #55050585)
(x1) LM7805 5V regulator (Radioshack #276-1770)
(x1) 10uF capacitor (Radioshack #272-1025)
(x1) 0.1uF capacitor (Radioshack #272-135)
(x2) 1N4004 diodes (Radioshack #276-1103)
(x1) 10K resistor (Radioshack #271-1126)
(x2) 1K resistor (Radioshack #271-1118)
(x12) Quick connects (Radioshack #64-3131)
(x1) M-type power jack (Radioshack #274-1569)
(x1) 12V @ 2.5A power supply (Radioshack #273-318)
(x2) 12V rechargeable batteries (Radioshack #23-943)
(x1) DS1307 real-time clock module
(x1) Clacker
(x36) Pegs
(x1) 1/2" x 3" metal tube
(x1) 3" nylon pulley
(x1) 3D printed pulley (print file)*
(x1) 3' x 3/8" round belt
(x3) 6-32 x 1" spacers
(x4) 4-40 x 1" bolts and nuts
(x8) 6-32 x 1" bolts and nuts
(x12) 1/4" bolts
(x8) 1/4-20 x 1" bolts
(x2) 4 x 8 x 3/4 plywood sheets
(x1) 4 x 8 x 1/4 plywood sheet
(x1) Assorted shrink tube
(x1) Assorted zip ties

*If you do not have a 3D printer, you can get one from Radioshack or have the part printed using a service like Shapeways.

Cut Wood

3A.jpg
Having access to a 400W metabeam laser cutter, I was able to cut out the following files quickly and easily out of 3/4" plywood.

However, I understand that most of you don't have access to a 400w laser cutter able to blast through 3/4" plywood with a giant laser beam. Please keep in mind that you can cut these wood pieces the old fashioned way with power tools like saws and drills.

Even though the future is now upon us, you fortunately still don't need a laser to follow plans and cut plywood. Download the attached files for plans and dimensions of what needs to be cut, and then cut it out.

Motor Shaft Extension

4A.jpg
4B.jpg
Press fit a 1/2" x 3" tube onto the shaft of the geared DC car seat (or wiper) motor.

Mount the Clutch

5A.jpg
5D.jpg
5B.jpg
5C.jpg
5E.jpg
Place the back piece of the pedestal horizontal on two sawhorses (this is the side with the motor mounting holes).

Insert the clutch into the mounting hole and then place the other part of the pedestal horizontally on top.

Insert the corner brackets at each of the corners.

Bolt

6A.jpg
6B.jpg
6C.jpg
Loosely bolt the clutch to each side of the pedestal.

Fasten

7A.jpg
7B.jpg
7C.jpg
7D.jpg
7E.jpg
7F.jpg
7G.jpg
Drill two pilot holes in each of the corners to attach the corner brackets squarely to the pedestal front and back pieces.

Fasten them together with wood screws.

Measure and Mark

8A.jpg
8B.jpg
8C.jpg
8D.jpg
8E.jpg
8F.jpg
Measure 3" in from the edge parallel to the center slots and draw a line.

Repeat this on the opposite edge of the base.

Center 2 x 4's along the inner edge of these lines such that they are parallel to the center slots.

Spacers (optional)

9A.jpg
9B.jpg
9C.jpg
I only had 2" and 2-1/2" wood screws on hand, and needed to use 2-1/4" screws to mount the casters, 2x4, and base plate together. I ended up needing to use 1/4" plywood spacers for each of the casters so that I could use 2-1/2" screws without having them poke through the top of the base plate.

Basically, cut the spacers using the attached template, place the casters atop each one, and trace the mounting holes.

Drill and Fasten

10A.jpg
10B.jpg
10C.jpg
10D.jpg
10E.jpg
Place the spacer (or caster) on the corner of each 2 x 4 and use the caster's mounting holes as a guide for drilling pilot holes.

Once all of the holes are drilled, mount all of the caster in place using wood screws.

Attach the Bottom Plate

11E.jpg
11A.jpg
11B.jpg
11C.jpg
11D.jpg
Cut the bottom plate out of 3/4" plywood using the attached template if you have not done so already.

Center the pedestal support plate on the underside of base such that it covers the mounting slots.

Drill pilot holes in each of the corners of the pedestal support plate and fasten it down with 1-1/4" wood screws.

Attach

13A.jpg
13B.jpg
13C.jpg
13D.jpg
13E.jpg
13F.jpg
13G.jpg
13H.jpg
Attach the pedestal to the base by inserting the tabs at the bottom of the pedestal into the slots on the top side of the base.

Fasten them together by sinking wood screws through the pedestal support plate mounted on the underside of the base up into the bottom of the pedestal.

Drill

14A.jpg
14B.jpg
14C.jpg
14D.jpg
Use the spacer for the metal to mark and drill two mounting holes in the 1" aluminum bar.

Drill a 5/8" mounting hole 1" from the opposite end of the aluminum bar.

Fasten and Press Fit

15E.jpg
Now is time to insert and tighten all of the bolts holding the clutch in place.

Also, download and print out the attached plastic spacer. This is designed to fill in the gap between the inner diameter of the wheel's mounting flange and the diameter of the shaft. This should provide a nice snug press fit between the two parts and keep the wheel centered.

Note: If you don't have a 3D printer, you can use a service like Shapeways or iMaterialise

Mount the Bar

15A.jpg
15B.jpg
15C.jpg
15D.jpg
Bolt the bar to the top of the pedestal using two stacked 3/4" spacers.

Countersink

16A.jpg
16B.jpg
16C.jpg
Use a drill with a 3/4" spade bit to widen the wheel's center mounting holes to a depth of about a 1/4". It should be drilled deep enough to countersink the carriage bolts.

Insert Bolts

17A.jpg
17B.jpg
Insert the carriage bolts and make sure that the top of the bolts are lower than the wheel's surface.

If it is not deep enough, drill down farther.

Vacuum Bag

18A.jpg
18B.jpg
18C.jpg
18D.jpg
18E.jpg
18F.jpg
18G.jpg
18H.jpg
18I.jpg
18J.jpg
18K.jpg
18L.jpg
Having access to a very large vacuum bag system, I decided to use that to glue the top of the wheel to the bottom of the wheel. Barring that, You can glue and clamp or place another sheet of plywood on top and a lot of weight, like a bunch of cinder blocks (or a combination of the two).

Anyhow, first I applied glue. Next I inserted 1" bolts into a couple of the peg holes for registration, lined up all of the holes, and stuck the two surfaces together. Finally, I slid two 3/4" spacers onto the bolts on the back to increase surface area and keep the protrusions from puncturing the bag.

I slid the whole assembly face-down into the vacuum bag, sealed it up and fired up the system.

Undo

19A.jpg
19C.jpg
19B.jpg
19D.jpg
Take the spacers off the back of the wheel and remove all of the clamping hardware.

Mount the Flange

20A.jpg
20B.jpg
20C.jpg
20D.jpg
Mount the flange onto the back of the wheel.

Note: In the pictured version, I am using a 5" base Kee Klamp. I found the Kee Klamps are not designed for rotation and the whole assembly was built slightly off center. This kind of gave the wheel a wobble. I ultimately ended up milling a precision fitting out of aluminum. However, if you do not have access to that, the initial pictured flange should work for you.

Attach the Wheel

21A.jpg
21B.jpg
21C.jpg
Slide the wheel onto the shaft of the clutch and fasten it in place with the lock nut.

Clacker and Pegs

22A.jpg
22B.jpg
22C.jpg
Attach the clacker to the top of the 1" bar.

Insert the pegs into the mounting holes around the diameter of the wheel and fasten them in place using lock nuts.

Pulley

23A.jpg
23B.jpg
23C.jpg
Press the nylon pulley onto the end of the motor shaft.

Using a 1/8" drill bit, drill vertically down through the center of the pulley's channel and through both side of the metal tubing.

Mount the Motor

24A.jpg
24B.jpg
Pull the nylon gear off o the motor shaft if you have not done so already.

Insert the shaft of the motor from the inside of the pedestal outward through the motor shaft hole.

Mount the motor in place using bolts and 1" spacers.

Pulleys

25A.jpg
25B.jpg
25C.jpg
25D.jpg
25E.jpg
Press the nylon pulley back onto the motor shaft and insert a 4-40 x 2" bolt down into the 1/8" hole to hold everything in place.

3D print the larger pulley for the clutch and press fit it onto the shaft of the clutch.

Pull the round tube onto the pulleys.

Downloads

Mount the Wedges

42A.jpg
42B.jpg
42C.jpg
42D.jpg
Each of the wedges was designed by a coworker of mine using the attached template.

They were then printed on adhesive vinyl and applied to the wheel.

You could also print them on paper at your local copyshop and glue them down.

Glue Supports

31A.jpg
31B.jpg
31C.jpg
Apply glue to each of the electronics panel supports and clamp them in place about 1/4" below the upper edge of the lower corner brackets on the inside of the pedestal.

Start the Circuit

26A.jpg
26B.jpg
26C.jpg
26D.jpg
26E.jpg
schematic1.png
Start to assemble the circuit as specified in the schematic, focusing on the parts that can be soldered to the PCB.

Connector Cables

27A.jpg
27B.jpg
Attach quick connects to the end of three black wires and connect them together with a wire nut.

Attach a quick connect to the end of a 12" red wire.

Attach quick connects to the end of another red and another black wire. Using a wire nut, twist these two together with yet another red wire to make a 3-wire set.

Attach Cables

29A.jpg
schematic1.png
Attach the connector cables for the relays to the transistors on the circuit board as specified in the schematic.

Real Time Clock

30B.jpg
30A.jpg
schematic1.png
Assemble the real time clock circuit and and add it the circuit board as outlined in the schematic.

Power Jack

34B.jpg
34A.jpg
Wire a power jack such that a red wire is attached to the center terminal and a black wire is attached to the terminal electrically continuous with the inner barrel.

Solder the red wire to the Vin pin of the voltage regulator and the black wire to ground.

Snubber Diodes

28A.jpg
28B.jpg
28C.jpg
28D.jpg
Solder snubber diodes between each of the parallel sets of pins on the relays.

'Spin Again' Switch

32A.jpg
Solder a red solid core wire to one of the switch's terminal lugs.

Solder a green wire and 10K resistor to the other lug.

Solder a black wire to the opposite side of the 10K resistor.

Program

33A.jpg
First you will need to initialize the real time clock. You can do this by following the instructions on this page.

Next, upload the following code to the Arduino:

Assemble the Electronics Panel

35A.jpg
35B.jpg
35C.jpg
35D.jpg
35E.jpg
35F.jpg
35G.jpg
schematic1.png
Mount the Arduino, relays, PCB, switch and power socket to the electronics panel.

Plug the switch and the appropriate PCB wires into the Arduino.

Also connect, the relay coils to the appropriate connector wires from the PCB.


Wire the Clutch

36A.jpg
36B.jpg
36C.jpg
36D.jpg
Attach the two long red quick connect wires to the cables coming out of the magnetic clutch and insulate them with shrink tube or electrical tape.

Wire the Motor

37A.jpg
Solder the bare red wire from the grouping of wires with the red and black quick connect terminals to one of the motor cables.

Solder a 6" red wire with a quick connect attached on the end to the other motor cable.

Wire the Batteries

38A.jpg
38B.jpg
batteryConnects.png
Place the two 12V batteries side-by-side.

Take the red and black quick connect wires that are soldered to a single motor connections, and then connect the red quick connect to the positive terminal on one battery and the black wire to the negative terminal on the other battery.

Connect one of the quick connects from the clutch to the remaining positive terminal.

Connect one of the black quick connect wires from the group of three ground (black) wires.

Insert Batteries

39A.jpg
39B.jpg
Place the batteries inside the base of the pedestal.

Connect Together

40B.jpg
40A.jpg
Connect the motor, clutch and batteries to the relays as specified in the schematic.

Clean up all of the wires with zip ties after all of the connections are made.

Case Closed

41A.jpg
41B.jpg
Place the electronics panel face down on the inside of the pedestal to hide the electronics and finish things up.

Lunch

43A.jpg
Let the wheel decide your lunch and prosper!