Camera Module for Raspberry Pi was launched quite a while back but I have recently got it from element14. It has a 5MP sensor and is capable of clicking 1080p videos @30fps and 720p videos @60fps. But here’s the catch. The setup may seem a bit complicated in the beginning but it is damn simple.
The camera module comes in an anti static cover. Make sure you ground yourself or use an anti-static band to avoid damage to the camera module. The camera lens is covered with a blue color scratch guard. The module has a good length too.
- The camera module will be connected to the port right behind the ethernet port. Find the port on the Raspberry Pi and apply small pressure to pull the locking lever.
- Now place the camera module in the socket. Once done, push the locking lever down.
- Once all connections are done, the Raspberry Pi will look something like this. Make sure the Raspberry Pi is connected to the internet.
- Next open LXTerminal and type the following commands. Instead of using LXTerminal, you can also SSH your RPi. I will SSH my Pi.
sudo apt-get update && sudo apt-get upgrade
These commands will download the latest packages and upgrade the old ones with new ones. This command may take around 7 minutes.
- Once this is done type
- Then scroll down to Enable Camera. Select Enable. Then select Finish and select Yes to reboot the Raspberry Pi.
- Once the Raspberry Pi reboots, open LXTerminal and type
raspistill. You will get list of all commands that can be used with this command. This command is used to click photos. So to click a photo type
raspistill -o image.jpg -t 5000. This will set a timer of 5 seconds and then a photo will be clicked. Photos are stored in home folder.
- For video we will type
raspivid. You will get list of all commands that can be used with this command. This command is used to click videos. So to click a video type
raspivid -o video.h264 -t 10000. This will click a video for 10 seconds. The video is stored in home folder.
- To play it type
- To store image and video in other location, specify location before image and video name.
A number of steps have to be followed but once you know the command, its very simple to click photos and videos using the Camera Module for RPi.