Raspberry Pi Camera Module Is Now Available, How-to Use It

About one year after showing the first image from the camera module prototype, the Raspberry Pi Foundation announced the Camera board is now available for purchase on RS Component or Element14. Navigating either of these sites is a nightmare, but, if you’re lucky, you should eventually find the camera board for around $25 before taxes and shipping.


“Raspicam” features the following hardware specifications:

  • Omnivision 5647 sensor in a fixed-focus module
  • 5MPixel sensor
  • Still picture resolution: 2592 x 1944
  • Max video resolution: 1080p
  • Max frame rate: 30fps
  • Size: 20 x 25 x 10mm
  • Connection by flat ribbon cable to 15-pin MIPI Camera Serial Interface (CSI) connector S5 on Raspberry Pi computer board

The first thing you’ll have to do with the camera is to connect it to the CSI connector on your Raspberry Pi, just behind the Ethernet connector on model B. James explains it very clearly in the video below.


Now that the camera is connected, you’ll need to update your Raspbian installation. Login to your pi, and run those commands:

This may take a little while. After completion, run

and enable the camera module, as shown below.
Raspberry Pi Camera Configuration

Save the settings, and reboot.

Two command lines applications called raspivid and raspstill are available respectively to capture video and still images.

Some example s:

  • Capture an image in jpeg format:
  • Capture a 5s video in h264 format:
  • Capture a 10s video:

You can use the arrow keys to scroll, and type q to exit. Read here for further details.

It’s also possible to stream the Feed to a Linux, Mac OS X, or Windows computer:

  • Linux PC
    Install dependencies:

    and run the following command:
  • Windows PC
    Download MPlayer and Netcat.
    Start a command promt, and type the following type:
  • Mac OS X
    Download MPlayer.
    Run the following command in Terminal to view the feed using MPlayer:

You may also want to view the feed directly from the Raspberry Pi:

Raspicam source code is available on github.

Support CNX Software - Donate via PayPal or become a Patron on Patreon

Leave a Reply

2 Comment threads
0 Thread replies
Most reacted comment
Hottest comment thread
1 Comment authors
cnxsoftCheap Accessories for Raspberry Pi – Camera, microSD adapter, Debug Board, Heatsink and Enclosure Recent comment authors
newest oldest most voted
Notify of

[…] official Raspberry Pi camera costs $25 + shipping and tax, but you can get a similar 5MP CSI camera for just $18.13 including […]