This compact and portable Raspberry Pi Camera was built by [PiJuice] using the Raspberry Pi as the primary component.
First, gather all the parts :
1 x PiJuice (complete with our revolutionary PiAnywhere technology – the best way to take your Pi off the grid!)
1 x Raspberry Pi Model a+
1 x Raspberry Pi Camera Module
1 x LaserCut Kit
1 x 2.2″ Adafruit TFT screen
1 x Push Switch
1 x Micro SD card
10 x Plastic Spacers
4 x Screws
1 x Right Angle Header
Approximately 15cm of thin conducting Wire with insulating cladding.
The SD card should contain the latest version of Raspbian, available for download from the Raspberry Pi Website.
Download the image and burn it onto your blank SD card using your preferred method. You then need to install the drivers for the TFT screen. The best method is to run the DIY installer script, explained on the Adafruit page.
Insert the camera’s ribbon cable into the Raspberry Pi. The connection point is located between the audio and HDMI ports. Make sure that the blue side is facing away from the HDMI port.
Now is a good time to check that the camera is working. First it needs to be enabled so go to the terminal and type “sudo raspi-config” and follow the menu to enable the camera after which the Raspberry Pi must be rebooted. After reboot the camera should be working properly. Go to the terminal and type the following command. “raspistill -o pic.jpg” This will make the camera take a picture with the title pic and save it in the /home/pi directory.
The push button is what we’ll be using to take photos. This part requires a soldering iron, so make sure you are comfortable with using a soldering iron safely.
First we need to solder the right angle header to the TFT screen. You will notice the GPIO breakout on the top of the screen. Locate pin number 17 and solder a single right angle header into this pin so that makes the pin available on the underside of the screen. We have soldered on two header pins (as seen in picture) but this is not necessary.
Now connect a female jumper lead (~7cm) to the pin and solder the side to one of the connecters on the push button.
On the underside of the screen there is a pad labelled wp. This is ground. Solder a black wire (~7cm) to this pad.
Solder the other end of the black wire to the second connecter on the push button.
The Compact Camera software is available from the PiJuice Github:
To download the Software, make sure your Raspberry Pi is connected to the internet, and type the following commands into the terminal window:
“sudo apt-get install git-core”
Now make a directory for the PiCam:
“sudo mkdir PiCam”
cd into PiCam:
Now download PiCam software:
“git clone git://github.com/pijuice/PiCam.git”
Now we can do the final testing before assembling the camera. Once the software has been downloaded you can run it by typing the command:
“sudo python picam.py” before hand, make sure that your current directory is picam by typing the command “cd /picam”
Now you should see the PiJuice Logo, you can take a picture by pressing the push button. Once the button is pressed the picture will be taken. The icon on the screen will change as the picture is loading to the screen once it has loaded you will be shown your photograph!
The final stage is to put all the parts together.
For the original project, click on this link.