Raspberry Pi Camera

I received a Raspberry Pi camera in the post yesterday and the first thing that surprised me was the size, or rather the lack of it! Fitting the camera connector to the board proved to be a problem with my Pi in its case. I have come to the conclusion it’s better to take it out of the case to fit the lead. Make sure you apply pressure along the pressure strip. I failed to do this and spent an hour trying to find out what the problem was.

First thing once you have the camera connected is to boot up the Raspberry Pi and connect the camera. This can either be done before starting the desktop, or after by starting LXTerminal. In either case enter

sudo raspi-config

Select the Camera option and enable. On exiting this menu option you will need to select Reboot.

Set up the camera to work under Python by installing PiCamera.

sudo apt-get update
sudo apt-get install python-picamera

An offline version of the documentation is available with

sudo apt-get install python-picamera-docs


Open IDLE from the desktop and at the Python prompt or at the top of a Python script) enter:

import picamera

This will make the library available to the script. Now create an instance of the PiCamera class:

camera = picamera.PiCamera()

The LED will light up on the camera board.

And take a picture:


if no warning messages are shown then you can assume all is well.


Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

%d bloggers like this: