It is best to use the latest version of Raspbian you can find the latest version on the Raspberry Pi website, follow the instutions there. I personally like the noobs install method. When you have installed Raspbian, when your Raspberry Pi starts for the first time, the config apt starts, select advanced options and enable the i2c option, then enable the camera module, exit and make sure Raspbian is up to date by entering the following at the command line. Your Raspberry PI will need to be connected to the internet to do this and to download the required software and modules.

sudo apt-get update

sudo apt-get upgrade 

Install the picamera python module, if you are using the latest version of Raspbian the picamera module is already installed. For instructions follow this guide on the Raspberry Pi website by following this link.

 http://www.raspberrypi.org/learning/python-picamera-setup/

 install the openCV python module by entering the following at the command line

sudo apt-get install libopencv-dev

sudo apt-get install python-opencv

 download the bootup program plus the control program for the Raspberry Pi to your home folder from git. enter the follow at the command line

wget https://github.com/Corteil/NorN_4/archive/master.zip
unzip master.zip
cd master
cp NN-0-04-4.1.py ~/NN-0-04-4.1.py
cp NN-0-04-4.1.py ~/run.py
cd ~
sudo rm -r NorN_4-master/
rm master.zip

Next we need to modify the rc.local file to start running run.py when the Raspberry Pi starts up. first of all we need to make a backup of the file, enter the following at the command line. 

sudo cp etc/rc.local etc/rc.local.old

if you need to restore the old file enter enter the following at the command line

 sudo cp etc/rc.local.old etc/rc.local 

Now to modify the rc.local file by entering at the command line.

 sudo nano /etc/rc.local

and adding the following before "exit O"

python /home/pi/run.py

and save by holding ctrl O, press enter to accept and then ctrl X to exit

follow the guide on the hobbytronics website to disable the console on the serial port.

http://www.hobbytronics.co.uk/raspberry-pi-serial-port

This guide was first published on Dec 18, 2014. It was last updated on Dec 18, 2014.

This page ( Preparing your Raspberry Pi) was last updated on Dec 11, 2014.

Text editor powered by tinymce.