Skip to content
Ashutosh Kumar edited this page Dec 6, 2015 · 2 revisions

Installation:

1 . Flash SD Card with NOOBS

Download NOOBS

  1. Insert a 4GB+ SD Card on your Raspberry Pi If you want to save space on the SD Card, you can delete some of the images inside the os folder in the NOOBS zip file that you don't want to use.

  2. Format the Disk

Windows

  • Download and install the SD Association's Formatting tool From Here
  • Open the Application you have just installed Set "FORMAT SIZE ADJUSTMENT" to ON in the Options menu
  • Make sure you have selected the Drive your SD Card is inserted in
  • Click Format

MAC OS

  • Download and install the SD Association's Formatting tools from here
  • Select "Overwrite format"
  • Make sure you have selected your SD Card, and not something else
  • Click Format

Linux (Ubuntu/Debian Based)

  • Use gparted (or the command-line version parted if you prefer), if you don't have it, install it as you usually would.
  • Format the entire disk as FAT32 (FAT16 will not work! Make sure you select the correct disk!)
  • Extract the file you downloaded
  • Copy the files you just extracted to your SD Card
  • For more info visit here

2. Enable SPI device

  • In the terminal or command line type this to configure sudo raspi-config

The sudo is required because you will be changing files that you do not own as the pi user

3. Downloading and Installing official library to enable SPI communication with Python

Type the Following commands in terminal
$ git clone https://github.com/lthiery/SPI-Py
$ cd SPI-Py
$ sudo python setup.py install

4. Getting MFRC522 package

git clone https://github.com/mxgxw/MFRC522-python
cd MFRC522-python
cp MFRC522.py <relative or absolute path of your directory>

5. Installing GPIO for python:

wget https://pypi.python.org/packages/source/R/RPi.GPIO-0.5.4.tar.gz tar -zxf RPi.GPIO-0.5.4.tar.gz
cd RPi.GPIO-0.5.4
sudo python setup.py install

6. Cloning LACS Projects

  • git clone https://github.com/Electroholics/CP.git
  • cd CP/LACS
  • sudo python main.py
  • Press Ctrl+C
  • bg
  • Press Enter

Lab Access Control System (LACS)

Mess Automation System (MAS)

Clone this wiki locally