Installing the Camera Module for your Raspberry Pi

Note: This article is a blurb. Help expand it.



In this tutorial you will be shown how to setup the Raspberry Pi (RPi) Camera Module. This tutorial will work on the regular camera module and the PiNoIR camera module, for infrared photography.

The Linux version in this tutorial is Occidentalis by Adafruit. If you have not set up Occidentalis, take a look at this tutorial

  1. Properly connect your Camera Module onto your Raspberry Pi. The connections instructions were delivered with your Raspberry Pi camera module.
  2. Make sure that the yellow tab shown in the picture below is firmly connected by pushing on it gently:

    This tab sometimes came disconnected in previous versions of the camera board.
  3. Boot up your RPi and login.
  4. The first thing you have to do is to enable the camera board in the RPi. Type in sudo rpi-config in a terminal window. You should see something like this

  5. There should be an option to enable the camera module (option #5). Select this option and enable the camera module. You will be prompted for a system reboot. If there is not follow these instructions:
    1. Select update raspi-config which will update your RPi bios to the latest version. You will need a working internet connection. The RPI will connect to the server and ask you if you want to download the latest version. Press y and wait for the update to finish. A reboot may be necessary.
    2. After the reboot, login and type sudo raspi-config. You should now see the option to enable the camera module.
  6. Follwing a reboot you can test the camera capture. Type in raspistill -o image1.jpg to capture an image (-o indicates that the next argument will be the output file name ) and save it into your current folder. If you type in raspistill -? it will give you all the options that you can use with the camera. I encourage you to try out some of them. Here are some samples:
    • raspistill -w 100 -h 200 -o output_image.jpg changes width and height
    • raspistill -q 100 -o output_image.jpg changes the image quality (0-100) and thus output file size.