One of the first things I found and wanted to 3d print was this Raspberry Pi Camera enclosure that looks like an old Bellows Camera http://www.thingiverse.com/thing:513579 but quickly was finding that the printer I had access to couldn’t handle this prints.
Fast forward I am now printing the parts on my two printers quite nicely and even printing the wood parts in a wood filament. I decided against using actual metal filaments as they are hard on the printer and didn’t add much to the project.
The Original files were for an older Pi so one thing I had to do was redesign the back and the board mount for a Pi2, so I fired up Designscape Mechanical and imported a pi2 model from Grabcad.com and then imported and converted the .stl files from the camera.
I Also have a really cool touch screen interface from Itead Studios called the Nextion So I include a way to mount that as well. I’ll use this for camera controls and to change settings on the camera, I also designed one without just in case I change my mind and to offer it to Thingiverse users.
Next up assembling it.
Feb 28 2106:
Finally have it mostly together.
Now the fun begins, I decided to try to use a Non-GUI version of Raspian, So I loaded up an SD card with Jessie lite available from HERE. First thing to do was to get expand the filesystem to use the entire card and set locale and keyboard, disable Serial boot , enable camera, enable SSH all of which is done by running
sudo raspi-config and reboot with sudo reboot now
Before I could update or install anything it needs to go online, I could have used the network port but since I was going to need wifi I put a USB wifi adapter in.
Searching online I found to enable the wifi and had to edit a file with
sudo nano /etc/network/interfaces
I then added the following lines:
iface wlan0 inet dhcp
Now reboot again and you should connect:
sudo reboot now
check that you are connected with
you should see an valid IP address for wlan0
Now we start loading stuff
First Update and upgrade your system with
sudo apt-get update
sudo apt-get upgrade
then make Python a development version with
sudo apt-get install python-dev
then install the PIP python tool for installing Python libraries
sudo apt-get install pip
There is a great library for working with the camera on Raspberry pi, read up on it HERE
sudo apt-get install python-picamera
And we will need the Pillow graphics library but before we do we have to install the JPG libraries
sudo apt-get install jpeglib-dev
sudo pip install pillow
oh and since I want to auto mount USB flashdrives to use to store the photos I installed
sudo apt-get install usbmount
now when I put a flashdrive in it will be at /media/usb/
This is as far as I have gotten at this point, up next testing the camera with picamera