Open Source Robotics

A curated collection of high-quality open source robotics projects, tools, and software to propel the robotics community forward.

Assembly guide for pib

pib is an open-source 3D-printable humanoid robot designed for STEM education

License

AGPL-3.0

Assembly guide

1. Step 1 — Head & Software

Install pib's software on the Raspberry Pi 5, then build the head, calibrate every servo, and assemble the neck. This stage establishes the brain, eyes (camera + LCD), and the first articulated joint before any limbs are built.

1.1 1a — Set up pib's software

Install Raspberry Pi OS on a micro SD card via Raspberry Pi Imager, connect the Pi to a display/keyboard, then run pib's setup-pib.sh script from the pib-backend GitHub repo to install the full software stack.

  1. Put the micro SD card into a device that can read a SD card (a laptop or PC). You may need an adapter for this to work.
  2. Download Raspberry Pi imager from https://www.raspberrypi.com/software
  3. Install Raspberry Pi imager.
  4. After installation, click on "Finish" and launch the application.
  5. Launch the imager and click on "Choose Device". Then click on "Raspberry Pi 5".
  6. Select "Raspberry Pi OS".
  7. Choose your storage device – make sure to select the micro SD card. Please note: all existing data on a pre-used card will be erased.
  8. Select "edit settings", add the wifi SSID and password, and use "pib" for both username and password.
  9. Click on "Write" to start installing Raspberry Pi OS on the storage medium and wait until the process is finished. Then click on "Continue" to end step 1.
  10. Remove the micro SD card from the laptop/PC and insert it into the Raspberry Pi.
  11. Connect the Raspberry Pi to your power supply, a HDMI capable screen/display and a keyboard and mouse for the next steps. After connecting the raspberry pi to the display and power supply, it should show the Ubuntu Raspberry pi OS screen.
  12. Open Firefox and go to the pib.software setup page on GitHub using this link: https://github.com/pib-rocks/pib-backend. You will need these 2 commands to continue the pib.software setup.
  13. First, launch the terminal.
  14. The first command downloads the setup script from our GitHub page. Copy the command from GitHub (wget https://raw.githubusercontent.com/pib-rocks/pib-backend/main/setup/setup-pib.sh), paste it into the terminal and press Enter to run it. Info: if the download isn't working, you can also download the file manually from GitHub. Note: you cannot use "CTRL + V" to paste into the terminal. Instead use "CTRL + SHIFT + V", or right-click in the terminal and select "Paste".
  15. The second command starts the setup script: enter "bash setup-pib.sh" in the terminal. The setup will take quite some time, depending on your internet connection (upwards of 40 minutes). Congratulations, you did a great job: pib's software is now installed on your Raspberry Pi. Please restart the system to apply the changes. Then you can disconnect your Raspberry Pi from all devices. The SD card should stay inside your Raspberry Pi.

1.2 1b — Build pib's head

Mount the LCD screen and Raspberry Pi onto the head shell, fit the microphone array and OAK-D Lite stereo camera, and close up the printed face/side shells. The head houses E01-E05 and E12.

  1. Insert the micro SD card into the Raspberry Pi. Before you insert the SD card, make sure you have installed the pib.software on it. You can find the tutorial here: https://pib.rocks/build/how-to-install-raspberry-pi/
  2. Insert 4 x M2.5 distancers (part of the screen package) in the shown spots in the LCD screen.
  3. Place the Raspberry Pi on top of the LCD screen and fix it with 4 x M2.5 22mm spacers (part of the screen package).
  4. Attach the E18 active cooler to the Raspberry Pi. Note: make sure that the E18 active cooler's fan wire is connected to the "fan" slot on the Raspberry Pi.
  5. Now we have to connect the Raspberry Pi and the LCD screen electronically. For this, there are two connectors (part of the screen package): the USB-H 3B USB connector (for the touch screen) and the H-4B HDMI connector (for the video signal).
  6. Connect the "USB to USB type-C" cable in the shown spot, for the camera.
  7. Attach the E02 TinkerForge HAT to the Raspberry Pi using the E17 GPIO extender and fix it using 4 x M2.5 6mm screws. Make sure the TinkerForge HAT is placed in the shown orientation.
  8. Connect A04-L and A04-R to A01-Face with the snap fits.
  9. Insert the assembly from the previous steps into A01 and fix it using 2 x M2.5 12mm screws (part of the screen package). Place the speakers in the shown spots of A01.
  10. Insert the Oak-D-lite camera into A01 and tighten it using 2 x M4 10mm screws.
  11. Connect the "USB to USB type-C" cable from step 6 into the shown spot of the camera.
  12. Insert E12 into the shown spot in A01 and connect its cable to one of the Raspberry Pi's USB ports.
  13. Connect A05 to A06 using 1 x M3 nut and 1 x M3 18mm screw. Do not tighten it strongly; leave it relatively loose.
  14. Slide the previous assembly into the shown spot and tighten it strongly by hand by rotating A06.
  15. Finally, connect A03 to A01. Congratulations, you did a great job: pib's head is assembled!

1.3 1c — Calibrate the motors

Calibrate every servo (10× MG996R, 3× DS5180SSG, 2× DS3225) by powering each one through the SPL-82 T-Connector and the Tinkerforge ServoBricklet 2.0 before installing it. Uncalibrated motors will not hit their target positions.

  1. Make sure all motors are calibrated according to this tutorial.
  2. Connect the output jack of the E14 power supply into the E20 power jack. Cut 10 cm from the red and black wires, strip both ends and insert the wires on the other side of the jack.
  3. Pull the red and blue switches in E13 (T-Connector), insert the wires coming out of the power supply jack and then close them. Make sure to place the wires in the correct switches: red wire to red switch, black wire to blue switch.
  4. Connect the Raspberry Pi power supply with the type-C connector to the type-C port on the Raspberry Pi.
  5. Cut 10 cm of the red-black power cable and insert it into the E03 TinkerForge ServoBricklet. Make sure to place the wires in the correct spots: red wire to the + symbol (left spot), black wire to the – symbol (right spot).
  6. Now you can insert the cables into the T-Connector. Make sure to place the wires in the correct switches: red wire to red switch, black wire to blue switch.
  7. Now we can connect the motors to the ServoBricklet. Only 2 motors are connected in the illustration, but you should calibrate all motors. You can add 10 motors at the same time: there are 10 slots for motors on the ServoBricklet. The orientation is also important here: yellow cable to the S symbol, orange cable to the + symbol, brown cable to the – symbol.
  8. Connect the bricklet cable to the TinkerForge HAT in the head and then to the TinkerForge ServoBricklet. The TinkerForge HAT doesn't need an extra power connection; it is only connected via GPIO, as in the head tutorial.
  9. Plug the power cable into the power supply and start Raspberry Pi OS. Then open the Brick Viewer application.
  10. Click "Connect" and go to the tab "Servo Bricklet 2.0".
  11. Select "All Servos" and change the values as shown. Other values are not important and do not need to be changed. You will hear a sound from the motors once you change the values: that is the calibration! The motors have switched to the 0 position.
  12. For the 1 x E15-DS5180SSG that will be used in the elbow, set it to 5500, not to the 0 position (if you are building a two-arm pib, you need to calibrate 2 of these motors). Then remove the calibrated motors, connect the remaining motors and repeat steps 6-8 until you have calibrated all motors. Once finished, you can disassemble most parts, as you will need the T-Connector in the other tutorials.

1.4 1d — Build pib's neck

Build the 10-part neck assembly that gives pib pan and tilt motion. Two MG996R servos drive the neck, supported by ballbearings and the motor-shaft printed part.

  1. Make sure all motors in this tutorial are calibrated according to tutorial "step 1c motor calibration"
  2. Insert 8 x nuts in A75 in the shown spots.
  3. Place 1 x E07 (MG996R) in A75 and use 4 x 12mm screws to fix it.
  4. Connect A76 to A75 using 4 x M3 20mm screws.
  5. Attach 3 x M3 nuts and 1 x M18 to A71.
  6. Fix M18 using 4 x M3 8mm screws.
  7. Place 1 x M04 ball bearing in the shown spot of A76.
  8. Connect A71 to A75 using 1 x M3 30mm screw.
  9. Connect A72 to the assembly using 2 x M3 30mm screws and 1 x M3 18mm screw.
  10. Insert 2 x M3 nuts in A72.
  11. Connect E07, M18 and A83 using 4 x M3 10mm screws.
  12. Insert E07 in A72 and fix it using 1 x M3 12mm and 1 x M3 16mm screws.
  13. Insert 2 x M21 in the shown spots of A72.
  14. Insert 3 x M3 nuts in the shown spots of the head.
  15. Connect the head to the neck using A81 and A82, 1 x M3 16mm screw and 1 x M3 40mm screw. Then enclose A81 with A02.
  16. Guide the wires from the head through the hole in A72, then close A73. Congratulations, you did a great job: pib's neck is assembled!

2. Step 2 — Hand & Forearm

Assemble pib's five fingers per hand, then mount them onto the palm and route the fluorocarbon tendon strings through the forearm. Each finger is a five-part tendon-driven mechanism; the hand is mirrored for left and right.

2.1 2a — Build pib's fingers

Build five identical finger subassemblies per hand. Each finger threads ~160 cm of fluorocarbon string through D05/D06/D07/D08/D09 and uses two ballbearings plus a tension spring.

  1. Cut a piece of 160 cm length of the fluorocarbon string and insert it into D08 as shown in the picture. Tie a simple knot at the end. Pull the wire to be inside D08 and cut off remaining wire above the knot. Pull gently on the string to tighten the knot further.
  2. Insert 1 x nut through the shown hole in D08 (all the way to the end). Use a small screwdriver to insert the nut through the hole, then push the nut to the end of D08. This step can be a little tricky.
  3. Connect D09 to D08 using 1 x 16mm screw. Please note: the fingertip may still turn slightly after assembly.
  4. Insert D06 through the shown spot in D07.
  5. Insert the assembly from step 3a to D05.
  6. Place 1 x nut through the shown spot in D05 and fasten the parts using 1 x 20mm screw.
  7. Place 1 x M10 spring through the shown spot in previous assembly from step 3c.
  8. Insert the fluorocarbon string coming out of D08 through the shown hole in the assembly from step 3c. Now we can start to connect both assemblies.
  9. Use 1 x M08 metal rod to connect both assemblies.
  10. Insert 2 x M01 ball bearings through the shown spots in D08. Use a small hammer to push the ball bearings onto the ends of the metal rod. Congratulations, you did a great job: pib's finger is assembled! Repeat this tutorial 4 times and you will have all five fingers of pib's hand.

2.2 2b — Build pib's hand

Mount all five fingers onto the palm (D02) with the M10 springs, route the fluorocarbon tendons to the thumb rotator and palm cavity, and close the hand shell. The right and left hand parts are mirrored.

  1. Insert 1 x M10 spring into the shown place in D05 (= at the end of the finger assembly).
  2. Introduction: now we will assemble the fingers to the palm. We highly suggest the following order: 1. Index finger, 2. Middle finger, 3. Ring finger, 4. Little finger. Repeat the steps 1, 2a and 2b for each finger. Starting with the index finger and then following our suggested order makes it easier to put the small ball bearings into their places.
  3. Guide the fluorocarbon string from each finger to the shown hole of D02 and also put the M10 spring into the shown hole. The fluorocarbon string of the index finger should come out of the first hole on the right (in the bottom part of D02). The other strings will follow on from this.
  4. Fix the finger using 1 x M08 rod and insert 2 x M01 ball bearings in the shown spots of D02. This step can be a little tricky! We suggest starting with the ball bearing that faces a finger, then putting in the rod and closing it with the other ball bearing. A hammer and tongs will help you here!
  5. Place 3 x nuts in the shown spots of D02.
  6. Place 2 x M03 ball bearings into the shown spots of D02. You may apply some gentle force to put the ball bearings into place.
  7. Insert 2 x M08 rods inside D13-R. Please note: The metal rods should be inserted at different depths in D13_R, as shown in the picture.
  8. Insert 160cm fluorocarbon string through the shown spot in D13-R and tie a knot to tighten it. Our tip: pull on the string to tighten the knot a little bit more.
  9. Attach a pre-assembled finger to D13-R by guiding its fluorocarbon string through the shown spot. Then, put the end of the M10 spring through the shown spot.
  10. Fix the assembly using 1 x M08 rod. Lastly, insert 2 x M01 ball bearings.
  11. Attach 1 x M10 spring and 2 x M01 ball bearings to the shown ends of both M08 rods.
  12. Now we can assemble the thumb to the hand: Guide both strings from the thumb through the shown holes and push the thumb into place (the thumb must snap into the palm).
  13. Use D11-R and 1 x 18mm screw to fix the ball bearing.
  14. Cut 4 x 100cm and 2 x 105cm teflon tubes. Insert the 4 fluorocarbon strings of the fingers into the 100cm teflon tubes, one each. Insert the 2 fluorocarbon strings of the thumb into the 105cm teflon tubes, one each. Put the thumb tubes as far into the palm as you can!
  15. Enclose the tubes with D10 and 2 x 25mm screws. Make sure to fix D10 tightly onto the hand. The tubes shouldn't slip out!
  16. Lastly, insert 150cm fluorocarbon wire through the shown spot and tie a knot. Our tip: pull on the string to tighten the knot a little bit more. Congratulations, you did a great job: pib's hand is assembled!

2.3 2c — Build pib's forearm

Assemble the forearm shell with the wrist connector, route the teflon tendon-guide tubes, and prepare the cavity that will house the tendon servos. Two M3 ballbearings, the T-460 spring, and the M01 metal rod are critical components.

  1. Insert 4 x nuts in the shown spots in C19 and C20. It may be helpful to use a hammer to put the nuts into the holes.
  2. Use M01 (metal rod) to fix M11 (T-460 spring).
  3. Cut 95cm of the teflon tube, wrap both ends with tape (not shown in picture) and place the teflon tube in the shown spot in C19. Lastly use C24 and 2 x 25mm screws to fix it.
  4. Connect C20 to C19 using 2 x M3 12mm screws. Do not tighten them yet, as we will remove them again for wire guidance in the assembly tutorial.
  5. Connect the hand to the forearm, by first connecting the spring coming out of the forearm to the shown part of the hand using an M08 metal rod.
  6. Insert 2 x M3 nuts in 2 x C50.
  7. Connect the hand assembly to the forearm using the 2 x C50 from the previous step and fix them with 2 x M3 20mm screws.
  8. Insert the fluorocarbon wire coming out of the hand into the teflon tube in the forearm. Congratulations, you did a great job: the forearm is assembled!

3. Step 3 — Upper Body

Assemble pib's torso — ribcage, motor mounts, speaker housings, wire-connector pawls, and the central electronics tray. This stage is the largest single subassembly and houses the servo bricklets, power supply, and relay.

3.1 3 — Build pib's upper body

Assemble pib's ribcage from the B-prefix printed parts, install 12× MG996R + 2× DS3225 servos for arm/torso motion, mount the 3× Tinkerforge ServoBricklets, fit the RGB buttons and speakers, and route all internal wiring through the wire-connector pawls.

  1. Make sure all motors in this tutorial are calibrated according to tutorial "step 1c motor calibration"
  2. Place 2 x nuts in the shown spots in B19, then use 2 x 30 mm screws to fix B20 to B19.
  3. Place 12 x nuts in the shown spots in B19 and B20.
  4. Place E16 in B20.
  5. Connect B43-L and B43-R using 2 x M3 nuts and 2 x M3 25mm screws.
  6. Place 16 x M3 nuts in the assembly.
  7. Connect both assemblies using 12 x 40 mm screws. You may apply some gentle force to connect the assemblies.
  8. Connect 2 x B48 to assembly using 2 x 25 mm screws.
  9. Insert 2 x M08 to both B48.
  10. Remove the print helpers from B46 gently with your hands or pliers.
  11. Connect B46 to the previous assembly using 2 x B49, 4 x M3 nuts and 4 x M3 10mm screws.
  12. Connect the solid state relay bricklet and the solid state relay using 2 screws from the relay. This assembly will be called the relay assembly from now on.
  13. Connect B47 to B43-L and B43-R using 4 x M3 nuts and 2 x M3 16mm screws.
  14. Connect the relay assembly to B43-L and B43-R using 2 x B57 and 2 x M3 12mm screws.
  15. Connect E13 to B47 using 2 x M3 16mm screws.
  16. Connect B42-L and B42-R using 3 x M3 nuts and 3 x M3 10mm screws.
  17. Place 10 x M3 nuts in B42 and improve connection between L and R using 1 x M3 nut and 1 x M3 10mm screw.
  18. Connect 2 x B56 to the assembly with 4 x M3 16mm screws.
  19. Connect the ribcage (previous assembly) to the assembly with 8 x M3 20mm screws.
  20. Connect 2 x E26 speakers to B42-L and B42-R.
  21. Place 22 x M3 nuts in B59 and B51 (8 x M3 nuts go in B51).
  22. Assemble 6 x E07 motors and 1 x E09 using 14 x M3 10mm screws. Please go back to step 0 and calibrate the motor if it was not calibrated. Note: turn B26 around to switch orientation between clockwise (CW) and counterclockwise (CCW).
  23. Assemble the wire connectors in the shown arrangement using 6 x B25, B26, B27 and 6 x M3 12mm screws. Make sure the B26 orientation matches the one shown in the right picture.
  24. Assemble the wire connectors in the shown arrangement using B25, B31, B27 and 1 x M3 12mm screw. Make sure B31 is switched to counterclockwise orientation.
  25. Connect B59 to B51 using 1 x M3 25mm screw (this screw will be removed and put back later).
  26. Insert the teflon tubes from the forearm through the shown spots and use 7 x 12mm screws to fix them. (Tip: wrap 2 pieces of tape around each end of the tube before fixing them, for a better grip.)
  27. Insert the fluorocarbon wires coming out of the teflon tubes into the shown holes of the B26 and B31 connectors and reinsert them in the 2 holes in B27 (you will have to unscrew and rescrew the M3 16mm screw). Wires and tubes will be hidden in the following slides. Note: guide the servo wires through the shown holes in an arrangement that makes it easy to connect the servos to the electronics later; the picture shows a recommended arrangement. Note: after inserting the wire, tie a knot as shown in the picture, and rotate the spindle until the wires are tight while the fingers are at around 45 degrees. Note: if you overtighten the spindle and need to reset, unscrew it, rotate it and screw it again.
  28. Slide the servo array into the ribcage and fix it using 1 x M3 nut and 1 x M3 25mm screw.
  29. Assemble 2 x B48 to the assembly using 2 x M3 22mm screws and insert 2 x M08.
  30. Insert 6 x M3 nuts and 8 x M13 distancers in B45. Fix the distancers using 8 x M3 6mm screws.
  31. Connect 2 x E03 to the assembly and fix them using 8 x M3 nuts.
  32. Remove the support structure gently from B44 with your hands or pliers.
  33. Connect B44 to B45 using 6 x M3 10mm screws.
  34. Insert 12 x M3 nuts into B41-L and B41-R.
  35. Connect B41-L to B41-R using 4 x M3 10mm screws.
  36. Connect the clavicles to the assembly using 8 x M3 10mm screws.
  37. Assemble 3 x E25 to the upper body using B58, 4 x M3 nuts and 4 x M3 12mm screws.
  38. Push B55-logo into B41-L.
  39. Assemble the neck and head to the upper body using 8 x M3 10mm screws. Congratulations, you did a great job: pib's upper body is assembled!

4. Step 4 — Shoulder & Elbow

Build the three shoulder/elbow subassemblies (vertical shoulder, horizontal shoulder, elbow) for each arm. Each contains an MG996R or DS5180SSG servo with a motor clamp, ringflange, and ball bearings.

4.1 4a — Build the vertical shoulder

Build the vertical shoulder subassembly (5 printed parts, 1× DS5180SSG servo, 1× M17 motor clamp, 1× M04 large ballbearing). This joint provides the up/down shoulder rotation.

  1. Insert 12 x M3 nuts in C61.
  2. Insert 5 x M3 nuts in C63.
  3. Attach M17 to E15 and tighten the connection using the shown screw. Please go back to step 0 and calibrate the motor if it was not calibrated.
  4. Attach E15 to C61 using C60 and 4 x M3 20mm screws.
  5. Attach C63 to the assembly using 2 x M3 40mm screws and place 1 x M04 ball bearing on top.
  6. Place the assembly into the clavicles as shown in the pictures.
  7. Fix the shoulder using C62 and C64 with 11 x M3 40mm screws (6 + 5). Congratulations, you did a great job: pib's vertical shoulder is assembled!

4.2 4b — Build the horizontal shoulder

Build the horizontal shoulder subassembly (more printed parts, 1× DS5180SSG + 1× DS3225, 2× M04 large ballbearings and the axial/thrust bearing pair). This joint provides forward/back shoulder rotation.

  1. Place 14 x M3 nuts in the shown spots in 2 x C65.
  2. Connect 2 x C65 to each other and to the upper body assembly using 2 x M3 40mm screws. (This connection will be hidden in later slides for visibility.)
  3. Connect 2 x M04 to the C65s.
  4. Insert 8 x M3 nuts in C69 (4 on each side).
  5. Insert 8 x M3 nuts in C69 (4 on each side). Make sure they are inserted all the way through. C69
  6. Insert 2 x M3 nuts each side in the shown spots in C69. Make sure they are inserted all the way through.
  7. Insert 2 x M3 nuts each side in the shown spots in C69. Make sure they are inserted all the way through.
  8. Connect M17 to E15, then tighten the screw on the side to lock the connection. Please go back to step 0 and calibrate the motor if it was not calibrated.
  9. Connect the E15 motor to C69 using 2 x C72 and 4 x M3 20mm screws.
  10. Connect C65 to C69 using 2 x C68 and 8 x M3 20mm screws.
  11. Place 2 x M3 nuts in the shown spots of C67.
  12. Connect C66 (using 2 x C75, 2 x M3 40mm screws and 2 x M3 nuts) and C67 to the assembly using 12 x M3 16mm screws and 2 x M3 40mm screws to secure the connection to M17.
  13. Connect C74 to C67 using 2 x M3 8mm screws.
  14. Insert 8 x nuts in the shown spot of C73.
  15. Connect E09 to C73 using 4 x M3 10mm screws.
  16. Place M18 on E09.
  17. Insert 4 x nuts in the shown spot of C08. Use a small screwdriver or a precision tool to put the nuts into the holes and hit them gently with a hammer to place them correctly.
  18. Place C08, M06 and M07 on top of C73.
  19. Insert 2 x nuts in C15.
  20. Flip C15 and connect it to M18 using 1 x M3 12mm screw and 4 x M3 6mm screws.
  21. Connect C09 to C15 using 2 x 8mm screws. Please make sure that you connect C09 to C15 in the shown orientation.
  22. Place M07 and M06 on top of C09.
  23. Place C70 on top of the previous assembly.
  24. Use 16 x 10mm screws to connect C70 to the assembly. Congratulations, you did a great job: pib's horizontal shoulder is assembled!

4.3 4c — Build the elbow

Build the elbow subassembly (12 printed parts, 1× MG996R + 1× DS5180SSG, 2× M20 medium ballbearings, axial+thrust bearing pair, 4× M16 servo-screw adapters). Elbow is mirrored between left and right arms.

  1. Make sure all motors in this tutorial are calibrated according to tutorial "step 1c motor calibration"
  2. Place 2 x M20 in the shown spots in C36.
  3. Place 5 x M3 nuts in the shown spots in C36.
  4. Attach E07 to C36 using C41, 4 x M3 nuts and 4 x M3 18mm screws.
  5. Place 4 x M16 in the shown spots in E15: insert a thin screwdriver into M16, slide it into the shown holes, then remove the screwdriver. Please go back to step 0 and calibrate the motor if it was not calibrated. This motor should be calibrated at 5500, with the elbow joint stretched while it is assembled.
  6. Connect E15 to C33 and C34 using 4 x M3 nuts and 2 x M3 25mm screws. Add 2 x M3 nuts in C34.
  7. Insert M17 into E15 and tighten the small screw.
  8. Connect the assembly to C36 using 4 x M3 20mm screws.
  9. Insert 2 x M3 nuts and M18 in C15, then connect M18 using 4 x M3 6mm screws. Note: M18 is a metal part.
  10. Place M06 and M07 on top of C15, then connect the assembly to E07 using 1 x M3 12mm screw.
  11. Connect C09 to C15 using 2 x M3 8mm screws.
  12. Place M06 and M07 in C37, then connect C37 to the elbow using 2 x M3 30mm screws.
  13. Remove print helpers gently from C39.
  14. Place 4 x M3 nuts in C39.
  15. Connect C74 to C32 using 2 x M3 nuts and 2 x M3 20mm screws.
  16. Connect the upper elbow to the lower elbow using C32 first, then C35-L and 2 x M3 40mm screws.
  17. Connect C31 first and then C35-R to the elbow using 2 x M3 40mm and 2 x M3 25mm screws.
  18. Attach C38 to the assembly. Congratulations, you did a great job: pib's elbow is assembled!

5. Step 5 — Final Assembly & First Boot

Connect the limb subassemblies to the torso, run the wiring per the circuit schematic, set up Raspberry Pi Connect for remote access, then power on for the first time and calibrate the Tinkerforge bricklets.

5.1 5a — Final mechanical assembly

Connect the elbow and forearm to the shoulder via the printed connectors (C39/C18) and M3 40 mm screws, then attach each completed arm to the upper-body. Routes all servo wires through the E23 cable sheath.

  1. Connect the elbow to the shoulder using C39, 2 x M3 nuts and 2 x M3 40mm screws.
  2. Connect the forearm to the elbow using C18, 2 x M3 nuts and 2 x M3 40mm screws.
  3. Guide all the wires through the black E23 cable sheath and place it in the 2 x C74 in the elbow and shoulder. Make sure to extend short servo cables with servo extension cables.
  4. For the upper arm rotation motors, use the E27 inline voltage regulator in line with the servo extension cable. It is needed to drop the 7.5 V to the 5 V this motor needs.
  5. Connect the output jack of the E14 power supply into the E20 power jack, strip both ends and insert 2 wires on the other side of the jack (the wires should be about 10 cm long).
  6. Place E14's output wire in the shown orientation and spot in B43-L.
  7. Connect the red wire coming out of the power supply to the + side of the relay, cut a small piece of the red cable you have and connect it to the other side. Unscrew the terminals, insert the wires and then screw them back.
  8. Pull the red and blue switches in E13, insert the red wire coming out of the relay and the black wire coming out of the power supply. Make sure to place the wires in the correct switches: red wire to red switch, black wire to blue switch.
  9. Pass the E16 RPi power supply from B20 through the holes in the upper body to the shown spot in A01 and connect it to the Raspberry Pi.
  10. Connect all E19 bricklet cables coming out of the electronics (servo bricklets, RGB buttons and relay) to the E02 brick HAT. The relay uses a 1 meter bricklet cable; all others use 50cm bricklet cables. Ports: servo bricklet 1 (right arm) → A; servo bricklet 2 (neck and shoulders) → B; servo bricklet 3 (left arm) → C; relay → E; RGB button 1 → F; RGB button 2 → G; RGB button 3 → H.
  11. Connect the motors in the fingers, arm and head to the E03 servo bricklets in the upper body according to the table in the next slide (the picture illustrates the "motor to servo bricklets" connection).
  12. Table 1. Motor (the joint it moves) → servo bricklet, pin. When assembled, bricklet 1 is the right one, 2 the middle one, and 3 the extra one for a two-arm pib; pins are numbered 0 to 9. thumb_right_opposition → bricklet 1, pin 0; thumb_right_stretch → bricklet 1, pin 1; index_right_stretch → bricklet 1, pin 2; middle_right_stretch → bricklet 1, pin 3; ring_right_stretch → bricklet 1, pin 4; pinky_right_stretch → bricklet 1, pin 5; wrist_right → bricklet 1, pin 6; lower_arm_right_rotation → bricklet 1, pin 7; elbow_right → bricklet 1, pin 8; upper_arm_right_rotation → bricklet 1, pin 9; shoulder_horizontal_right → bricklet 2, pin 0; shoulder_vertical_right → bricklet 2, pin 1; free replacement for burned pins → bricklet 2, pin 2; free replacement for burned pins → bricklet 2, pin 3; turn_head_motor → bricklet 2, pin 4; tilt_forward_motor → bricklet 2, pin 5.
  13. Table 2. Motor (the joint it moves) → servo bricklet, pin. When assembled, bricklet 1 is the right one, 2 the middle one, and 3 the extra one for a two-arm pib; pins are numbered 0 to 9. free replacement for burned pins → bricklet 2, pin 6; free replacement for burned pins → bricklet 2, pin 7; shoulder_horizontal_left → bricklet 2, pin 8; shoulder_vertical_left → bricklet 2, pin 9; thumb_left_opposition → bricklet 3, pin 0; thumb_left_stretch → bricklet 3, pin 1; index_left_stretch → bricklet 3, pin 2; middle_left_stretch → bricklet 3, pin 3; ring_left_stretch → bricklet 3, pin 4; pinky_left_stretch → bricklet 3, pin 5; wrist_left → bricklet 3, pin 6; lower_arm_left_rotation → bricklet 3, pin 7; elbow_left → bricklet 3, pin 8; upper_arm_left_rotation → bricklet 3, pin 9. Congratulations, you did a great job: pib is assembled!

5.2 5b — Wire pib's electronics

Wire pib per the circuit schematic. Power goes from E14 (power supply) through E13 (SPL-82 T-Connector) to the relay (E24), Raspberry Pi 5 (E01), and the three ServoBricklets that drive every motor. Black wires negative, red positive.

  1. Refer to the circuit schematic before wiring: it shows how every component (Raspberry Pi 5, Tinkerforge HAT, LCD, microphone, RGB buttons, speakers, relay, servo bricklets, power supply) connects together.
  2. Wire colour convention: black wires go into the negative (blue) terminals, red wires go into the positive (red) terminals. The exact wire path is not important as long as polarity is correct.
  3. The LCD screen connects to the Raspberry Pi via the two adapters shown in the schematic.
  4. The Tinkerforge HAT (E02) is pressed onto the Raspberry Pi GPIO pins — no extra wiring is required between them.
  5. Connect the E14 power supply cable through the E13 SPL-82 T-Connector so a single barrel jack powers both the Raspberry Pi rail and the high-current servo rail.
  6. Run servo data lines from each joint through the E23 cable sheath inside the arms and route them to the appropriate Servo Bricklet (3× E03) inside the torso.

5.3 5c — Connect Raspberry Pi to the internet

Set up Raspberry Pi Connect so you can SSH into pib remotely. Sign in with your Raspberry Pi ID and register a token for the device.

  1. Click on the connect icon at the top right, then click on "Turn on Raspberry Pi Connect".
  2. Click on "Sign in" and sign in with your Raspberry Pi ID.
  3. Give your device a recognizable name and click on "Create token".
  4. Click on "Connect via", then "Screen sharing".
  5. You should now see your RPi screen; do not forget to allow screen sharing. Congratulations, you did a great job: you have set up Raspberry Pi Connect!

5.4 5d — First start-up and bricklet calibration

Power pib on for the first time, launch Brick Viewer, record the UID of each Tinkerforge bricklet, then bring up pib.software and run the first calibration sweep. Pib is now alive.

  1. Click on the Raspberry icon at the top left, then point at Programming and select Brick Viewer.
  2. Click on "Connect". This connects all connected Tinkerforge components (1 x Relay Bricklet, 3 x Servo Bricklet) to the Brick Viewer software. Note: the relay bricklet controls the power supply; the servo bricklets control the motors.
  3. Write down the UID shown beside each bricklet on a piece of paper (case sensitive), and make sure you connected the bricklet cables to the correct ports as in the picture.
  4. To turn the power for the motors on and off, click on the shown button in the solid state relay bricklet tab.
  5. Open a new browser window and go to localhost.
  6. Click on "Bricklet UIDs", enter the UIDs we gathered in step 2b and click on "Update".
  7. Restart pib. Feature 1: click on "Joint control", select any joint you want to move and move the slider. Note: if a finger moves in the opposite direction to the others, click on the finger, click on the settings icon, click on "Extended values" and click "Invert". Feature 2: move the joints with joint control to a configuration you want to save, then go to "Poses" and create a new pose. Every time you click on this pose, pib will go to the saved configuration. Feature 3: click on "Smart connect API". You can generate your token via our AI platform TRYB. The subscription plans are here: https://www.tryb.ai/pricing/. As a pib.Edubox owner, you get free access for one year from activation (https://www.tryb.ai/pib-edubox-api-key/). Feature 4: click on "Block programming" to create a script with basic blocks, then click "Run" to start it. Congratulations, you did a great job: you have started pib!

This website requires JavaScript to function properly. Please enable JavaScript to explore our collection of open source robotics projects.