Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Next revision Both sides next revision
projects:rfid [2016/05/27 19:16]
over23 [Projekt RFID Read-Write]
projects:rfid [2016/06/14 03:48]
over23
Line 6: Line 6:
 |**Materials:​**| BananaPi, RFID-RC522, nepajive pole, kabely samec-samice s jumper konci, 5V napajeni, pajecka, pocitac s SSH| |**Materials:​**| BananaPi, RFID-RC522, nepajive pole, kabely samec-samice s jumper konci, 5V napajeni, pajecka, pocitac s SSH|
 |**License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci; CC BY-SA]] ​ |  ​ |**License:​** | [[https://​creativecommons.org/​licenses/​by-sa/​3.0/​|Uveďte původ-Zachovejte licenci; CC BY-SA]] ​ |  ​
 +
 +
 +===== on RaspberryPi 1b =====
 +https://​www.raspberrypi.org/​documentation/​configuration/​device-tree.md
 +<​code>​
 +wget http://​www.airspayce.com/​mikem/​bcm2835/​bcm2835-1.44.tar.gz
 +tar -xvzf bcm2835-1.44.tar.gz
 +cd bcm2835-1.44
 +./configure
 +make
 +sudo make check
 +sudo make install
 +</​code>​
 +===== TO STUDY =====
 +  * https://​github.com/​AdamLaurie/​RFIDIOt - some tools
 +  * http://​jerrygamblin.com/​2015/​12/​05/​25-handheld-rfid-cloner/​ - to clone
  
 ===== RC522 vs BananaPi Pinout =====  ===== RC522 vs BananaPi Pinout ===== 
Line 15: Line 31:
 |CLOCK|23|GPIO11/​SCLK |yellow | |CLOCK|23|GPIO11/​SCLK |yellow |
 |SS|24|COE0#/​GPIO07|green| |SS|24|COE0#/​GPIO07|green|
 +
 +==== RC522 vs RaspberryPI B ====
 +{{projects:​pythonraspberrypi_rfid.png}}
 +
  
 Reference: ​ Reference: ​
Line 45: Line 65:
  
 ===== Python to control GPI ===== ===== Python to control GPI =====
 +
 +  * http://​raspmer.blogspot.cz/​2015/​07/​how-to-use-rfid-rc522-on-raspbian.html
 +
 +!!!!! http://​blog.infraserver.eu/?​p=285
  
 <​code>​ <​code>​
Line 84: Line 108:
  
 [root@picka ~]# cd MFRC522-python ​ [root@picka ~]# cd MFRC522-python ​
 +
 +[root@picka MFRC522-python]#​ python Read.py
 +BAPI: Banana Pi!!
 +BAPI: Banana Pi!!
 +BAPI: Banana Pi!!
 +BAPI: Banana Pi!!
 +BAPI: revision(3)
 +Welcome to the MFRC522 data read example
 +Press Ctrl-C to stop.
 +Card read UID: 100,​83,​136,​50
 +Size: 8
 +Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
 +Card detected
 +Card read UID: 100,​83,​136,​50
 +Size: 8
 +Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
 +Card detected
 +Card read UID: 100,​83,​136,​50
 +Size: 8
 +Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
 +Card detected
 +Card read UID: 100,​83,​136,​50
 +Size: 8
 +Sector 8 [0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0]
 </​code>​ </​code>​
  
 +===== READ NFC522 by node-red =====
 +   * http://​flows.nodered.org/​node/​node-red-contrib-gpio
 +   * http://​flows.nodered.org/​node/​node-red-node-bananapi
 +   * http://​flows.nodered.org/​node/​node-red-node-irc
 +<​code>​
 +[root@picka ~]# node -v
 +v0.10.29
  
 +sudo npm cache clean -f
 +sudo npm install -g n
 +sudo n stable
 +# version can be switched by: sudo n 0.8.21
  
 +[root@picka ~]# shutdown -r now
 +
 +[root@picka ~]# node -v
 +v6.2.0
 +
 +[root@picka ~]# node-red-admin install node-red-node-irc
 +#​[root@picka ~]# npm install node-pre-gyp
 +#​[root@picka ~]# npm install node-red-contrib-gpio
 +#root@picka ~]# npm install raspi-io
 +#​[root@picka ~]# npm install node-red-node-irc
 +
 +
 +[root@picka ~]# shutdown -r now
 +</​code>​
  • projects/rfid.txt
  • Last modified: 2016/06/14 04:21
  • by over23