Desktop Fist Bumper

by Beaconsfield in Circuits > Arduino

27300 Views, 267 Favorites, 0 Comments

Desktop Fist Bumper

fistBump2.jpg
fistBump1.jpg
IMG_7502.jpg
IMG_7503.jpg

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:

Make Cables

circuit_schematic-01.jpg
IMG_5789.jpg
IMG_5792.jpg
IMG_5703.jpg

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

IMG_5692.jpg
IMG_5752.jpg

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

IMG_5696.jpg
IMG_5697.jpg
IMG_5699.jpg
IMG_5700.jpg
IMG_5705.jpg
IMG_5711.jpg
IMG_5713.jpg
IMG_5715.jpg

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

IMG_5717.jpg
IMG_5719.jpg
IMG_5722.jpg
IMG_5727.jpg
IMG_5730.jpg
IMG_5733.jpg
IMG_5735.jpg

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

IMG_5739.jpg
IMG_5740.jpg
IMG_5742.jpg
IMG_5743.jpg

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

IMG_5746.jpg
IMG_5750.jpg
IMG_5777.jpg

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

IMG_5795.jpg
IMG_5796.jpg

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

IMG_6678.JPG
printorientation.JPG

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

IMG_5443_label-01.jpg
IMG_5447.jpg
IMG_5452.jpg
IMG_5453.jpg
IMG_5455.jpg
IMG_5456.jpg
IMG_5458.jpg

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

IMG_5779-01.jpg
IMG_5775.jpg

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

IMG_5770.jpg

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

IMG_5761.jpg
IMG_5766.jpg
IMG_5769.jpg
IMG_5773.jpg

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

arduino_logo.jpg

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

IMG_5784.jpg
IMG_5786.jpg
IMG_5788.jpg

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

IMG_6647.jpg
IMG_5793.jpg
IMG_5821.jpg
IMG_5797.jpg
IMG_5803.jpg

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

IMG_5805.jpg
IMG_5809.jpg
IMG_5812.jpg

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

IMG_5813.jpg
IMG_5816.jpg
IMG_5820.jpg
IMG_5779.jpg

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!

IMG_7499.jpg
IMG_7509.jpg

The desktop fist bump machine is now done! Turn it on and sit it on your desk.