Jual alat otomatis

Minggu, 04 Mei 2014

RASPBERRY+NFC READER+LCD16X2

1. aktifkan SPI-device
sudo nano /etc/modprobe.d/raspi-blacklist.conf

# blacklist spi and i2c by default (many users don't need them)
# blacklist spi-bcm2708
blacklist i2c-bcm2708

download paket SPI-Py untuk mengaktifkan komunikasi python via SPI 
git clone https://github.com/lthiery/SPI-Py
dan install 
sudo python setup.py install
jika perlu driver NFC reader type MFRC522 yang asli bisa ke web
https://github.com/mxgxw/MFRC522-python 

install GPIO untuk Python (jika diperlukan,update nomor paket agar bisa mendownload paket terbaru)
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

download program attendance
git clone https://github.com/Yimbo/attendance
Create table in your MySQL Database and upload structure to that database from file mysql.sql.
Next update file mysql.py according to your settings (server, username, password and database name).

After this step you should be able to run the program:
sudo python attendance.py


2 komentar:

  1. gan, udah nyoba ini?
    ko ane nyoba ada yang error mulu. di "from attendance import onScreen" sama satu lagi "AttributeError: fileno".
    bisa banru ga gan kenapa bisa begitu?

    BalasHapus
    Balasan
    1. tambahkan tanda "#" seperti contoh di bawah
      #mport onScreen
      harus nya sih jalan,mungkin paket yg di install ga lengkap,

      Hapus