Desktop Fist Bumper
This simple device sits on your desk at work, ready to give you fist bumps throughout the day as you need them. A 3D printed "fist" is moved by a servo attached to a rack and pinion mechanism. An ultrasonic range finder detects when you place your hand near it, and an Arduino Uno controls it all.
Materials:
- Arduino Uno - RadioShack 276 128
- Standard servo - RadioShack 273 766
- Ultrasonic range sensor - RadioShack 276 342
- Misc wires and connectors
- 9V battery connector -RadioShack 270 324
- 9V battery - RadioShack 230 2209
- Slide switch - RadioShack 275 401
- Afinia 3D printer - RadioShack 277 224
- 3D print filament (ABS or PLA) - RadioShack 277 182 or RadioShack 277 163
- Nuts and bolts - RadioShack 640 3018 and RadioShack 640 3011
- ¼” plywood (14" x 25")
- Wood glue (optional)
- Rough sandpaper (I used 275 grit)
- Weights (I used misc washers)
- String/wire cable
Make Cables
To connect the electronics, a few cables are needed. First, make a pair of "splitters" for providing power (5V) and GND to the sensor and servo from the Arduino using female connectors. Since both devices need the same Vcc, the splitters make the wiring easier to put together and more compact when it is assembled.
Next, solder a cable to connect to the ultrasonic range sensor. Use a female connector for the end that the sensor will plug into, and solder the other ends of the wires to individual male headers.
Finally, cut off the female connector at the end of the servo and solder the wires to individual male headers as well.
Cut the Base and Slide
Using a laser cutter, cut out the parts for the base and slide out of 1/4" plywood. I used fairly low settings for my cuts to keep the tolerances correct - speed 20%, power 35%, and frequency 500Hz.
Downloads
Attach Servo
The servo needs to be secured to its mount before assembling the box around it. Simply use four bolts to attach it, making sure that it is facing in the correct direction.
At this point the pinion gear needs to be attached to the servo horn. The part is a fairly close press fit, but the addition of some hot glue ensures that it won't slip off during assembly. Once glued, the horn/gear attaches to the servo using the screw included in the package.
Assemble the Base
Follow the photos above to assemble the base around the servo mount. The parts are all press-fit, and should not require glue (although feel free to add some if it is necessary). First, attach the mount to the front panel and slide on the inner walls. Next, carefully push this assembly onto the inner base part. Add the small guards for the bottom of the slide. Then add the back panel and the upper guard for the slide. Lastly, add the side panels.
Add Weights
To keep the fist bumper balanced, weights are added to both the base and the slide. For the base, push the stop into the top of the upper guard for the slide. Find some weights (I used a variety of washers) to fill the pocket you just made on top of the slide guard.
Glue on the Top
Using wood glue, secure the top of the base. You don't need to glue it on, but I found that if I wasn't careful the weights would push off the top when I carried the machine around.
Attach the Range Sensor
I ended up simply hot-gluing the ultrasonic range sensor to the base. It is likely that you will have to adjust its positioning as you test the code (if it tilts up, it will see the edge of the fingers) and it is easy to pull the sensor off and re-glue it.
Print the Hand
The hand was printed on the Afinia H479 printer from PLA (although it should be fine with ABS plastic). All parts were printed at 0.25mm accuracy with hollow fill. In all, it took just over 7 hours of print time and about 160g of plastic filament. The index and ring fingers are identical, so print two copies of the parts labeled "F1" and see step 10 for the arrangement of the fingers on the hand.
As with all printing, rotate the parts to lay mostly flat. In this case, this meant that the sides of the fingers were touching the print surface (see screenshot). Be very thorough removing the support material, as the parts need to be able to fit together and excess material will get in the way of that.
(Note: If you don't have access to a 3D printer, you can make a fist out of cardboard, paper mache, or some other material. I originally intended the hand to be able to move, which is why it is printed in so many parts.)
Downloads
Assemble the Fingers
Although they are printed separately, the fingers are designed to snap together. Line up the finger segments and thread them (in order) with the wire or string. I used a bent paperclip to help me with the string, but when I switched to wire I didn't need it. Double-check that the segments are in the proper order, then snap them together. The middle segment goes on the outside of the lower and tip segments and should fit somewhat snugly. Repeat this process for all five fingers.
Assemble the Hand
Once all five fingers are assembled, they can be connected to the palm. Thread the wire/string through the holes in the front of the palm, and snap the lower segment into place. Make sure the finger is oriented properly and is in the correct spot!! The fingers are only designed to bend in one direction and are difficult to remove from the palm if you need to correct them. After the fingers are all attached, flip the hand over and thread the strings through the next set of holes before pulling them tight and tying them together. This will keep them curled into a fist. (if the fingers won't stay, add a dab of hot glue at the joints)
Bolt on the Hand
The hand bolts onto the top of the slide, before the slide is assembled. I'd recommend using lock nuts if you have them.
Assemble the Slide
Like the base, the slide shouldn't require glue to stay together. Start by adding the sides to the bottom panel, checking that they are in the proper orientation. Then add the stops and insert weights. Push on the top (with the hand attached). You may need to glue the top down to keep it secure. Finally, push the rack into place.
Upload the Code
The Arduino code reads in a signal from the ultrasonic range sensor and if there is an object in range (ideally your hand) it turns the servo.
The basic code for reading in data from RadioShack's range sensor can be found here: http://blog.radioshack.com/2013/07/find-your-way-...
Downloads
Wire the Electronics
Solder leads to two of the pins on the power switch, and hot glue it in place on the back of the base. Solder one of the leads to the positive lead from the battery connector.
Plug Into the Arduino
All the cables are made, so simply plug everything together and connect to the Arduino. The Vcc cables of the sensor and servo both plug into the power splitter made previously, which plugs into the 5V pin on the Arduino. Similarly, attach the sensor and servo GND cables to an Arduino GND pin. The signal pin for the servo goes to digital pin 8, and the signal pin for the sensor goes to digital pin 7. Finally, the remaining lead from the power switch goes to Vin (on the Arduino) and the GND wire from the battery goes to GND.
Close the Base
Flip the base upside-down and arrange the electronics within it (don't forget to add a battery!). Try to make them sit as flat as possible, with the usb connection of the Arduino facing the front (this way, you can easily plug in and edit the code). Put the bottom on and glue if necessary.
Test the Fit
Turn the servo so the gear is rotated all the way forward. Then carefully push in the slide until you feel the rack catch on the gear. Test the fit to see if it slides easily. If necessary, sand down the top and sides of the slide. Once done, insert the slide all the way into the base.
Done!
The desktop fist bump machine is now done! Turn it on and sit it on your desk.