HOME > Components > Raspberry Pi: Setting Up Nfc - How It Works

Raspberry Pi: Setting up NFC - how it works

Nowadays, most people use NFC without even knowing it. Every contactless payment method is governed by NFC (Near Field Communication). Here, up to 424 kBit/s are exchanged via induction over a very short distance of a few centimeters. This also works with the Pi.

How to set up NFC on the Pi?

To use NFC on the Raspberry Pi, there are a few things to keep in mind. You definitely need to connect the NFC device to the Pi correctly.
  1. It is best to use a Raspberry Pi 3 Model B, as this is the latest Pi with the best technology.
  2. You will also need an NFC module, preferably the Neuftech Mifare, and various jumper cables, i.e. Male to Male and Female to Male.
  3. Now connect the module to your Raspberry Pi by connecting it as follows: SDA -> Pin 24, SCK -> Pin23, MOSI -> Pin 19 MISO -> Pin 21, IRQ -> --, GND -> Pin 6 Ground, RST -> Pin 22, 3.3V -> Pin 1.
  4. Install the necessary software. To do this, enter the command "sudo nano /boot/config.txt". Add a new line at the end that reads "device_tree_param=spi=on" as well as "dtoverlay=spi-bcm2708". Save the file.
  5. Enter the command "sudo raspi-config" and enable the Advanced option. Danach starten Sie den Pi neu.
  6. Nun geben Sie folgende Befehle ein: „dmesg | grep spi“ (dieser überprüft, ob das Modul richtig geladen wurde), „sudo apt-get install git python-dev –yes“, „git clone https://github.com/lthiery/SPI-Py.git“.
  7. Geben Sie nun „sudo python setup.py install“ ein.

By Stelmach Allee

Create Firefox backup - how to back up your data :: Repairing Windows 10: Boot Manager
USEFUL LINKS