We're in the home stretch! Next, we'll stick everything down:
Apply double stick foam tape to the back of the proto board, and stick the board firmly onto the middle panel about halfway down, between the thermal printer and the power switch. Do not cover the pass-through hole for wires coming through from the front section.
Using more double stick foam tape, affix the amp and accelerometer to the panel below the proto board, beside the thermal printer.
Now let's plug everything in:
Plug the HDMI cable into the right angle adapter from the screen, and into the HDMI port at the top of the Pi. Plug the micro usb power cable into the power port at the top of the Pi.
Plug the dongle for your usb mouse and keyboard into a usb port on the Pi. Plug the usb power from the 5” screen into USB a port on the Pi.
Plug the Cobbler’s ribbon cable into the header pins on both the Raspberry Pi and the Cobbler. The white side of the cable should face the thermal printer side of the case.
Plug the connectors for the button wires into their corresponding connectors coming from the photo board.
Insert the speaker’s power and ground wires into the screw terminals on the amp and screw to tighten.
Plug in the printer’s wires.
Secure the Battery
To keep the battery in place (yet removable), affix it to the bottom of the panel with industrial strength sticky velcro. Plug in the battery.
Before closing SelfieBot up completely, let’s do a test to make sure everything is working. Stand SelfieBot upright (use blue painter's tape or insert two of the long screws into their holes in the case to temporarily keep the layers together). Flip on the power switch.
If everything is connected correctly, you will see the Raspberry Pi boot screen, the arcade button will illuminate, and the green light on the printer will flash intermittently. If any of these things don't happen, check your connections and fix before moving on. To get back into the front section of the case, unplug the printer's wires and the connectors on the button wires and lift off the middle panel. Remember to disconnect the battery while working on your circuit.
When you are sure everything is working, reward yourself by pulling the protective plastic sheet off of the screen (so satisfying!), and then close up the case.
First, check the fit of the screws in the holes. You may need to drill the holes out slightly for the screws to slide all the way through smoothly.
Insert the six rivet nuts into the holes in the front of the case. Thread a washer onto each of the six 1 3/4" screws.
Insert the screws into the holes in the back of the case and screw them into the rivet nuts. You'll have to hold the rivet nut to keep it from turning. Don't over tighten.
Finally, we'll mount the handles on the case. Match the front and back pieces of each handle (the exposed holes should be on the back of SelfieBot). Fit the two pieces of each handle around the exposed sections of the middle panel, lining up the three holes. Insert the 3/4" screws into the back handle piece, through the panel, and screw them into the captured nuts in the front handle piece.
Congratulations! You're finished building SelfieBot! Flip that switch and meet your new friend!