Tuesday, July 18, 2017

Setting up the Raspberry PI with the 7 inch touch screen and SmartiPi Touch display mount.

I recently got the Official Raspberry Pi touch screen and the SmartiPi Touch display mount. The main reason I got it was that I was getting a couple things that are intended to work with a computer, and I wanted said computer to be portable.  And the Raspberry Pi with Touch screen could be run off of a USB battery.  And this also means I (or my kids) won't be tying up a computer (or a desk) that I would rather be using for work while they do their explorations.

The standard references for assembling the SmartiPi Touch are the videos by the creator, Thomas Murray, and and a more complete video by Francesco Vannini (both videos embedded at end for reference)
However, many commentators have noted that there is not a good set of written directions, and I think the big disadvantage of an expert commentator is that they don't always remember to say things that a non-expert may have a hard time figuring out. I mostly followed Francesco Vannini's video, so here are a few additional notes.

Here are the boxes, with a Raspberry Pi. Not pictured is the Sense HAT that I will also put on.
Raspberry pi in a Smartipi Touch case with touchscreen display in boxes

Raspberry pi in a Smartipi Touch case with touchscreen display unboxed
All the components from both boxes. Note that not everything will be used.

Raspberry pi mounted in a Smartipi Touch case
At this point I have:


  1. Added rubber feet to the corners of the stand (back side of the part that is mounted on the hinges). 
  2. Attached stand to case body using included nut and bolt.
  3. Connected the display connector ribbon to both the display driver and the Raspberry Pi. I used the one that came with the touch display. I should have used the one that came with the SmartiPi case because it was longer and would have been easier. 
  4. Mounted the Raspberry Pi to the display case. the instructions state I could either use the screws to mount the Raspberry Pi or I could use the hinge cover (bottom of picture). The cover has plastic that is sized to touch the Raspberry Pi when closed so I choose that option. 
  5. Screwed the case back to the display. Note that one of the screws will be covered by the cover and any HAT so I tightened this now instead of waiting until the end to tighten everything.


Raspberry Pi camera module with mounted Raspberry Pi and SmartiPi Touch case.  Note that the ribbon that comes with the camera will be just long enough to mount to the top or side LEGO studs. A longer camera cable will be useful since the Raspberry Pi with display and case is going to be placed on a table top, which is not necessarily where you want the camera.

Raspberry Pi camera module with mounted Raspberry Pi and SmartiPi Touch case

Here is the camera attached to the Raspberry Pi. Note that it goes through the slots in the door and the Sense HAT.

Raspberry Pi camera ribbon connected through door and Sense HAT

Now, attach the door, then mount the Sense HAT and tighten the screws on the Sense HAT.  Note that the screws come with rubber spaces that put the HAT the right distance above the door.

Pi Camera connector ribbon attached through Sense HAT and door


Picamera added to Raspberry Pi in SmartiPi Touch Case on the top LEGO pieces. I used a 4X6 plate because it is long enough to reach the back LEGO mount for the top. (mounting to the side could be done with camera mount as is)

Picamera added to Raspberry Pi in SmartiPi Touch Case


Pi camera mounted to LEGO from back

Pi camera mounted to LEGO from back

The working camera.  Note that I have the whole thing running off a USB battery.  I usually have this connected to a keyboard, and use a touch screen to serve as a mouse.  It really needs a longer camera connector ribbon. I tried to mount it on a LEGO stand, but the SmartiPi case had to be right next to the stand.

Working Pi Camera