Gripper Build Guide
Hardware Version: Pilot run
Build time: about 3 hours
First you should have printed the parts according to the print guide
Tool list
- Assorted allen wrenches
- Mini screwdriver with a bit set
- Wire stripper that goes down to 30awg
- Soldering station with helping hands and a magnifier.
- Multimeter, preferably with spring loaded hook probes
- Cross locking tweezers
- Mini side cutters
- Super glue (loctite super glue “professional liquid” recommended)
- Small pocket knife or exacto
- Digital calipers, for measuring things and identifying screws. Or just use a ruler
Fingers
Attach a rod to the side of a finger pad. The rod has one one location with an indentation for a bolt head. Insert an M3x14 bolt of any head type into this indentation, followed by a washer, then from the outside into the upper hole on the fingerpad (the one sized for m3), then a washer, then an m3 nylock nut. Tighten until no slack remains, then back off until the rod can swing loosely with no out of plane motion. Repeat for all four rods on both finger-pads.
Press fit two bearings into each geared lever
Orient a finger-pad with the hex cutout on top. The flat side of the lever should align with the flat side of the finger. The wire should be also freely coming out of the flat side, not pinched between.
Insert an M4x25 bolt into the finger-pad just from the bottom, place an M4 washer on. Slide in the geared lever with the bearing face up into the slot.
If you are able to, try to get another M4 washer into the gap as the bolt comes through. (its not crucial but reduces play. I have found it easier if using a pocket knife to push the washer in from the side while viewing down the hole from the top)
Secure it with an M4 nut in the cutout. Tighten and then back off just until the mechanism moves freely. Repeat with the other finger.
Confirm everything you assembled is oriented just as pictured.
Cut two lengths of 28 AWG wire and strip the ends. Solder them to the two leads of the pressure sensing thin film resistor.
Feed the wires through the channel in the center of geared_lever_right.
Remove the adhesive backing and stick the sensor in the center of the finger pad
Cover the face of the finger in adhesive backed foam and trim it to size.
In this prototype I had to leave a bit of the pad exposed for clearance, but in the current version there is enough clearance to cover the pad in foam and have it still fold freely.
When trimming the foam, you don’t have to be very precise, and often folding the foam over the corner is easier. It may even help with grip.
Body Assembly
After printing, tear the ears off the mechanism lid print. Clean up the area the bridge was supporting with a sharp tool.
Insert two M4x25 bolts into the back plate from the bottom, hold them in as you place it on the table. Followed by two M4 washers.
Mesh the two geared levers together in the closed position, making sure they are aligned correctly. They must remain meshed the entire time. Use a rubber band to hold them together if necessary.
Feed the wire through the corresponding smile hole, and place the fingers on the bolts simultaneously, keeping them meshed.
Place M4 washers over the bolts after they protrude from the fingers.
Press the small 9-tooth gear into the mouse wheel encoder.
Locate the 6-pin JST-SH 1.0 pitch connector. Trim off all except the red, black, and yellow wires.
Solder the connector to the mouse wheel encoder according to the picture
Feeding the connector through the hole, snap the mouse wheel encoder into the shaped indentation in the back plate. Make sure it is seated down firmly on the bottom.
Press the encoder retainer into the opening, flat side up. It should be a tight fit that requires no glue, and glue is risky here as we don’t want to bind up the small moving part.
Glue together the two sides of the spool. It helps the glue dry if you put it around the sides instead of the middle.
Press a 14mm steel tube into the hole on the gear side, followed by an m4 washer, followed by a 624ZZ bearing.
Pressing these together is ideally done with a vice but is possible by hand.
Place a M3x6 button head screw upside down in the hole on the other side of the spool. Place one of the servo horn discs labeled “2” from the Injora motor box, over the screw, flat side down. Secure it with two M2.5x6 screws
Press the spool’s bearing into the counterbore on the flat side of the mechanism lid (not the back plate)
Please excuse the inaccuracy in this photo, the servo horn should be shown installed on the spool.
Place the mechanism lid onto the back plate, gently wiggle the spool, and the fingers until everything fits into place and is seated firming.
Insert two M4 nuts into the hexagonal holes. Tighten the bolts from behind and then back off enough that the geared levers move freely.
Secure the lid around the edges with three M3x10 bolts
You received two Injora servo motors. One of them is labeled “360 winch”. Unpack that one.
Install the rubber grommets into the mounting holes. Other than the grommets and the servo horn, we don’t need any of the other hardware that ships with it.
Place the standoff onto the motor in the pictured orientation.
Manually rotate the spool so that the side hole shows through the window. It’s easier to do it before connecting the motor.
Install the motor onto the spool by aligning the toothed shaft. Tighten the screw we embedded earlier with an allen key from the other side of the spool.
Secure the motor and standoff to the back plate using four M3x16 screws
Unpack one Camera Module and install the mini cable. (golden one) the wide end of the mini ribbon cable plugs in the camera, with its black face on the camera’s back side. The plastic retaining clips is pulled out to loosen a ribbon cable, and pushed in to secure one.
screw the camera to the camera mount with two M2x4 bolts in opposite corners. Make sure the ribbon is in the pictured direction.
Attach the camera mount assembly to the back plat with an M3x6 countersunk screw.
Fold the four connecting rods into place so their remaining holes align with the holes in the gripper body.
Attach each one with an M3x14 bolt. If the rod does not move freely, loosen the bold a little bit.
After connecting them all, test the movement of the gripper.
It’s mostly electronics from here out.
Locate one slip ring. Feed the wires from the rotor side into the hole in the spool bearing, through the tube, and out of the hole in the side of the spool
It’s very tricky, and you need very small tweezers. Best to do one at a time.
After you get them through, pull the slip ring up so it is seated on the frame and screw it down with three M3x4 screws.
Electronics
Unpack the Inventor Hat Mini and cut the trace marked with a lightning bolt. This is how the inventor hat mini is configured to deliver power to the motors separately from itself and the Raspberry Pi. I’m no fan of cutting traces but I find the easiest way to do it is to hold the board down firmly (or in a vice) and dig into the trace hard with the tip of a small pocket knife. Confirm with a multimeter that the trace is truly severed.
Solder a motor power screw terminal to the inventor hat mini. Holes facing out. Ask me how I know.
One of the raspberry pi’s you receive has headers pre-installed. This is the one meant for the gripper.
Attach an aluminum heatsink to the black SOC chip. Install an SD card flashed according to the instructions in Raspberry Pi Software Setup Guide
Press the inventor hat mini straight down on top. It will not go all the way down, due to the heatsink, but that’s ok.
Mount the Raspberry Pi and hat onto the gripper. Insert four M2.5x16 bolts up through the corners, four 9mm printed spacers between the two boards, and four 2mm printed spacers on the ends of the bolts.
Hold everything sideways so the pieces don’t fall off and screw it to the back plate. The board should be mounted with the word INVENTOR upside-down. The ribbon cable can pass right underneath the Raspberry Pi
Very carefully and gently pull out both sides of the black retaining clip in the Raspberry Pis ribbon cable connector. (Zoom in on the photo above to get a good look at it.) Insert the ribbon cable, black side up, under the retention clip. Push the clip back in to secure it. If the clip falls out, you can put it back in with tweezers by inserting one side at a time.
How about something easy. Plug in the cable for the encoder into motor port A, and the winch servo into servo port 1.
Alright back to hard stuff. We need to make a 3 pin dupont connector for the wires of the pressure sensor that creates a voltage divider with a 2.2kΩ resistor.
Trim the sensor wires back to a reasonable length, taking into account that they move as the fingers open and close.
Using the provided parts for 3 pin dupont connectors, crimp a female pin on one sensor wire, a female pin on one end of the 2.2kΩ resistor, and the last pin on both the remaining wire and the other end of the resistor. This will be the sense wire and will connect to the analog GPIO pin of the inventor hat mini.
Insert them into the connector housing in the order pictured.
Plug this into the inventor hat mini in GPIO port 1. Note the direction with GND on the edge of the board and signal towards the middle.
Solder the signal and ground wires from a 3 pin dupont connector (trim and discard the one in the middle) to the pictured leads of a microswitch.
Attach the microswitch to the mechanism lid near the top of the gripper with two M2x10 screws in the pictured orientation.
Feed the dupont connector through the hole in the body and connect it to the inventor hat mini’s GPIO port 2. Direction doesn’t matter.
We have two additional sensors to connect. The IMU is the purple one, and the rangefinder is the black one with the little window. These will be on the I2C bus, but we have only one stemma port so you’ve been provided with a pre-made connector to chain them together.
Solder a 4 pin straight header to the pins on the IMU that correspond to VCC thru SDA. And another 4 pin straight header on the VCC thru SCL pins of the rangefinder.
Attach the rangefinder to the frame with two M2x6 screws.
Attach the IMU to the frame with two M3x4 screws.
Plug in the 4-pin dupont connector that has doubles coming out of it into the IMU. VCC ond the end
Plug the 4-pin dupond connector with singles into the rangefinder. VCC on the end.
Feed the white connector through the hole to the other side and connect it to the stemma port on the Inventor Hat Mini
Locate the larger DC-DC buck converter. This will take the 24v coming through the slip ring and convert it to 6v for the servos.
Solder 15cm of the 22awg silicone red black pair to the output side. Solder 15cm of 28awg red and black wire to the input side. This isn't an input technically, just a take-off to another regulator we will add next for the microcontroller.
Mount this onto the mechanism lid with two M3x4 screws. Output side towards the outside of the gripper. Feed all the wires through the nearby hole to the other side.
Trim the wires that come from the stator side of the slip ring so that they reach the input side of the buck converter with plenty of room to go around the motor that isn’t there yet.
Strip the ends, and solder them to the input side of the buck converter.
Here you can see I temporarily disconnected the connector for the rangefinder since it was in the way.
Flip the gripper over and position it so that the two 28 awg red and black wires that we fed through the hole before are in reach of your helping hands and soldering iron.
Note that these are the smaller wires we connected to the *input* side of the buck converter along with the slip ring wires. They carry 24v.
Solder these to the input of one of the small green buck converters.
Strip a 2cm piece of solid core wire so that one end has about 80mm of exposed core to use as a pin. Solder the short stripped end to the output vcc of this small converter.
Both of these buck converters are adjustable, but have been pre-tuned to the correct voltage. The small one to 5v and the large one to 6v.
But just to be extra sure. I think you should confirm the voltage is correct before connecting them.
If you have a desktop power supply, or care to jerry rig one of the supplies you got in the box, connect it to the input side of the slip ring and confirm the voltage on the output side of the converters.
Tin the ends of the 22awg red and black pair and insert them into the screw terminal. Ground is on the left and you can see the silkscreen on the underside of the inventor hat mini if you turn it up to the light.
Hold the screw terminal as you tighten so the torque doesn’t break its solder joint.
Now, to deliver 5v to the raspberry pi, jam the solid core wire into the corner pin hole on top of the inventor hat mini.
Ok now that you tried that, you’re thinking “there’s already a pin in there coming up from the bottom, I can’t put this in”. I know. I didn’t say put it in, I said jam it in. Use the cross locking pliers to hold it close to the base and push it in next to the other pin.
Maybe in the future I will deliver 5v to the raspberry pi in some saner way like the USB port.
Drive Gear
Prepare the drive gear. Set an M3x6 button head screw in the indentation upside down, and then trap it there by screwing on the servo horn disc just as you did with the spool. Use the disc labeled “2”. Secure with two M2.5x6 screws
Attach the gear to the 270° servo with an allen wrench.
Insert an M4x12 screw into the back plate in this hole, screwing it in just until it is flush with the inside surface.
Connect the unit to 24v power temporarily. The easiest way to do this is to solder a dc barrel jack on the two leads that come from the spool’s side hole.
Find out the raspberry pi’s ip address on your network.
SSH into it with
ssh pi@192.160.1.156
Or whatever username and password you chose when creating the image.
Clone cranebot-firmware
git clone https://github.com/nhnifong/cranebot3-firmware.git
cd cranebot3-firmware
python3 -m venv --system-site-packages venv
source venv/bin/activate
pip3 install -r requirements_raspi.txt
Start a python shell in the virtual environment
from inventorhatmini import InventorHATMini, SERVO_2
hat = InventorHATMini(init_leds=False)
To manually control the grip servo you can send -90 for full open, or 90 for full closed.
Set a value of negative -90
hat.servos[SERVO_2].value(-90)
Manually open the fingers to the pictured position.
Insert the grip servo into its slot, rotated a few degrees to the left (in this position the gear teeth don’t mesh)
Gripping the servo tightly while keeping it pressed into the frame, turn it clockwise a few degrees. In this position, the gear teeth mesh.
Tighten the M4 screw on the back. It aligns with the gear’s bore and holds it straight.
Send a servo command of 90 to close the grip. Confirm it closes tightly with no gap at all. Reopen the grip by sending -90. If there was any gap, adjust the fingers closed by one gear tooth, and repeat.
Secure the motor in place with four M3x10 screws.
Close your terminal and power down by pulling the plug
The connection to the final power line from the wall is covered in the Powerline/Gantry Build Guide. You can leave it hanging with a DC barrel jack on it for now.
The outer shells snap on from the sides, and are secured at the top with four M3x4 screws.
They are also installed at the end of power line installation.