Setting up your camera
To set your Pi Camera up, first you need to make sure your Raspberry Pi is up to date. Do this by logging into your Pi, then open a Terminal and type:
sudo apt-get update
sudo apt-get upgrade
Then enable the Pi Camera. To do this we will use the raspi-config tool. Open it with this with the command:
sudo raspi-config
Navigate down this list with the up and down arrow keys and press enter when over the fifth option ‘Enable Camera’. Then press the right arrow key to select Enable and press enter again. Press right twice to select Finish then press enter twice to reboot your Pi for the change to take effect.