artem469 / pn532-nfc

PN532 NFC library for Raspberry Pi

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

PN532 NFC HAT

This is a PN532 NFC library for Raspberry Pi.

Features

  • Support I2C, SPI and HSU of PN532
  • Easy to understand how the PN532 chip works

How to use

  1. Plug the PN532 NFC Hat to your Pi.
  2. The module supports I2C, SPI and HSU.
  • on I2C:
    MOSI/SDA/TX Pin to Pi's SDA
    NSS/SCL/RX Pin to Pi's SCL
    
    Then set SEL0: ON and SEL1: OFF
  • on SPI:
    MOSI/SDA/TX Pin to Pi's MOSI
    NSS/SCL/RX Pin to Pi's CE0
    
    Then set SEL0: OFF and SEL1: ON
  • on HSU(UART):
    MOSI/SDA/TX Pin to Pi's RX
    NSS/SCL/RX Pin to Pi's TX
    
    Then set SEL0: OFF and SEL1: OFF
  1. Run the example with python3 example.py
  2. With waving a 13.56MHz NFC card, the UID of the card will be printed.

About

PN532 NFC library for Raspberry Pi

License:MIT License


Languages

Language:Python 100.0%