Code Monkey home page Code Monkey logo

tworc522_rpi2-3's Introduction

TwoRC522_RPi2-3

Two RFID readers with Raspberry Pi

Assuming the python-dev and SPI-Py libraries are already correctly installed, configured, and tested on Raspberry Pi.

Otherwise, here is a brief help:

$ sudo apt-get install python-dev
$ git clone https://github.com/lthiery/SPI-Py.git
$ cd SPI-Py
$ sudo python setup.py install

Download:

$ git clone https://github.com/pat-odoo/TwoRC522_RPi2-3.git

Use: Create Two Instance of the same Library. (Ex. 1-TwoRC522_RPi2-3 and 2-TwoRC522_RPi2-3).

Change Line 46 in card_reader.py file.

In File 1-TwoRC522_RPi2-3 :- 'MIFAREReader = MFRC522(self.RST1, self.SPI_DEV0)'

In File 2-TwoRC522_RPi2-3 :- 'MIFAREReader = MFRC522(self.RST2, self.SPI_DEV1)'

Terminal-1:

$ cd 1-TwoRC522RPi/
$ sudo python run_main_test.py 

Terminal-2:

$ cd 2-TwoRC522RPi/
$ sudo python run_main_test.py 

Press Ctrl + z to finish.

alt tag

Credits :

https://github.com/lthiery/SPI-Py. - MontaVista Software, Inc., Anton Vorontsov(2007)

Repository of the original class: https://github.com/mxgxw/MFRC522-python. - Mario Gómez

Two RC522 Concept: https://github.com/erivandoramos/TwoRC522RPi

tworc522_rpi2-3's People

Contributors

parthpnp avatar

Stargazers

adham995 avatar Oluwatomi Bombata  avatar  avatar  avatar Parth N. Patel avatar

tworc522_rpi2-3's Issues

"function takes exactly 2 arguments(1 given)"

hi,
i don't know how to solve this problem
i use 2 RC522 reader on Raspberry pi and all process check(connect, install..)
After finish connect i just write
$ sudo python run_main_test.py
and error occured
Here is the error message

GPIO v.0.7.0
Thread-1, Run...
Welecome to the MFRC522 data read example
Press Ctrl-C to stop
RFID-RC522 (Module 01)
function takes exactly 2 arguments(1 given) <<-- this is error message

maybe i think, in "card_reader.py" some code not process
what can i do?

ImportError

pi@raspberrypi:/pymaker $ cd 2-TwoRC522_RPi2-3/
pi@raspberrypi:
/pymaker/2-TwoRC522_RPi2-3 $ sudo python run_main_test.py
Traceback (most recent call last):
File "run_main_test.py", line 15, in
from module.card_reader import CardReader
ImportError: No module named module.card_reader

where is module.card_reader? need to DL something?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.