Differences
This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
projects:rfid [2016/05/29 22:05] over23 [READ NFC522 by node-red] |
projects:rfid [2016/06/14 04:21] (current) 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 47: | Line 67: | ||
* http://raspmer.blogspot.cz/2015/07/how-to-use-rfid-rc522-on-raspbian.html | * http://raspmer.blogspot.cz/2015/07/how-to-use-rfid-rc522-on-raspbian.html | ||
+ | |||
+ | * !!!!! http://blog.infraserver.eu/?p=285 --> | ||
+ | |||
+ | * On Raspberry Pi, Device Tree usage is controlled from /boot/config.txt. By | ||
+ | default, the Raspberry Pi kernel boots with device tree enabled. You can | ||
+ | completely disable DT usage (for now) by adding: | ||
+ | <code> | ||
+ | XXXXXX---- nefunguje device_tree= | ||
+ | </code> | ||
+ | * mozna chcem novy git clone https://github.com/RPi-Distro/raspi-config | ||
+ | * a tam poresit tree | ||
+ | |||
<code> | <code> | ||
Line 124: | Line 156: | ||
sudo n stable | sudo n stable | ||
# version can be switched by: sudo n 0.8.21 | # version can be switched by: sudo n 0.8.21 | ||
+ | |||
+ | [root@picka ~]# shutdown -r now | ||
[root@picka ~]# node -v | [root@picka ~]# node -v | ||
v6.2.0 | v6.2.0 | ||
- | [root@picka ~]# npm install node-pre-gyp | + | [root@picka ~]# node-red-admin install node-red-node-irc |
- | [root@picka ~]# npm install node-red-contrib-gpio | + | #[root@picka ~]# npm install node-pre-gyp |
- | [root@picka ~]# npm install raspi-io | + | #[root@picka ~]# npm install node-red-contrib-gpio |
- | [root@picka ~]# npm install node-red-node-irc | + | #root@picka ~]# npm install raspi-io |
+ | #[root@picka ~]# npm install node-red-node-irc | ||
+ | [root@picka ~]# shutdown -r now | ||
</code> | </code> |