This is the final video in our 2013 five-part series Get Started With Pi for Raspberry Pi 2.
|
Updating and Upgrading
Remember, it's always a good idea to keep your Raspberry Pi Operating System (in this case, Raspbian) up-to-date; especially before attaching new accessories or starting a new project.
sudo apt-get update | This command downloads the latest version of the OS to your Pi—it may take a while, depending on your network speed. |
sudo apt-get upgrade | This command installs the upgraded code (that you just downloaded above) on to your Pi. After you press enter, it will calculate how much space will be required for the new version. It will say something like. . . After this operation, xxxMB of additional disk space will be used. Do you want to continue [Y/n]? Press Y to continue. |
The USB Hub
Raspberry Pi Camera
Camera Commands – Still Photos
The command for taking still photos is raspistill.
To see all the command options available for raspistill, type in raspistill --help in LXTerminal.
At the very least, you’ll want to add -o filename.jpg to your command; “-o” means you’d like the Pi to save your Output file and “filename” is whatever you want to call the image file. The camera default image file type is jpeg, or “.jpg”
raspistill -o filename.jpg – saves a file with the name filename.jpg
raspistill –t 25000 -o filename.jpg – adds a delay to the picture being taken of 25 seconds (values are entered in milliseconds). The default delay on the Raspberry Pi camera is 5 seconds.
raspistill -o filename.jpg – saves a file with the name filename.jpg
raspistill -o filename_%d.jpg -tl 60000 -t 7200000 - The tl command is for time lapse photography. The “%d” appended to the filename (before the “.jpg”) means that the images taken will be named sequentially: filename_1.jpg, filename_2.jpg, filename_3.jpg, etc. The –t value (in this example, 7200000) means the time lapse will last for one hour and the -tl value (in this example, 60000) means that one image will be captured every minute.
Camera Commands – Videos
The Pi Camera saves videos in the .h264 format when the raspivid command is used.
To see all the command options available for raspivid, type in raspivid --help in LXTerminal.
Like raspistill, you’ll want to include the output option “-o” and a filename with the suffix .h264.
The time delay before video capture begins is five seconds and the default video length is 5 seconds.
raspivid -o video.h264 – saves a 5 second video file with the name video.h264
raspivid -o video.h264 –t 10000 – saves a 10 second video file with the name video.h264
Image files and videos are saved in the same directory where you ran the command (e.g. /home/pi if you haven’t changed the directory after loading LXTerminal).
PiFace Control and Display
![]() | The PiFace Control and Display adds a mini LCD screen and some input buttons on a board that connects directly to the Raspberry Pi GPIO pins.
For full set-up and configuration information, please see the User Manual. |
PiFace is easy to install and configure and has a variety of applications. See how inventor Dr. Andrew Robinson has combined 48 Raspberry Pi’s, 48 PiFace Control and Displays and 48 Raspberry Pi Cameras to capture “bullet time” effects by visiting this link. |
Projects Featuring the Raspberry Pi
Please visit our Raspberry Pi Projects section where you can see a variety of different projects for different skill levels from Beginner to Expert.