Ordinato nei giorni lavorativi prima delle 14:00 = spedito lo stesso giorno. 30 giorni per ripensarci 1 anno di garanzia

Schema di collegamento ed esempio di codice

Ecco come collegare il Kit PN532 RFID NFC con scheda S50 e portachiavi S50 a un Arduino UNO o ESP32, con uno sketch di esempio che puoi caricare subito.

Lettore di schede RFID NFC PN532

Questo esempio legge tag RFID/NFC (come le schede Mifare) utilizzando il modulo PN532 tramite I2C. Assicurati che i DIP switch sul modulo PN532 siano impostati sulla modalità I2C (di solito CH1=ON, CH2=OFF). Avvicina un tag NFC o RFID compatibile da 13.56MHz al modulo per stampare il suo UID univoco nel Serial Monitor.

Schema di collegamento: Kit PN532 RFID NFC con scheda S50 e portachiavi S50 su un Arduino UNO
Schema di collegamento · Clicca per ingrandire
Tabella di collegamento: Kit PN532 RFID NFC con scheda S50 e portachiavi S50 su un Arduino UNO
Tabella di collegamento · Clicca per ingrandire
PN532_RFID_NFC_Card_Reader.ino · compilato e testato
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : PN532 RFID NFC Card Reader
 *  Board     : Arduino UNO (arduino:avr:uno)
 *  Parts     : PN532 RFID NFC Module
 *  Libraries : Adafruit PN532 1.3.4
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include <Adafruit_PN532.h>

#define PN532_IRQ   2
#define PN532_RESET 3

Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET);

void setup() {
  Serial.begin(115200);
  while (!Serial) delay(10);

  Serial.println(F("Initializing PN532 NFC Module..."));
  nfc.begin();

  uint32_t versiondata = nfc.getFirmwareVersion();
  if (!versiondata) {
    Serial.println(F("PN532 board not found. Check wiring and I2C mode switch."));
    while (1) delay(10);
  }

  Serial.print(F("Found PN532 chip! Firmware ver: "));
  Serial.print((versiondata >> 24) & 0xFF, HEX);
  Serial.print('.');
  Serial.println((versiondata >> 16) & 0xFF, HEX);

  nfc.SAMConfig();
  Serial.println(F("Waiting for an ISO14443A card or tag..."));
}

void loop() {
  uint8_t uid[7];
  uint8_t uidLength = 0;

  bool success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength, 500);
  if (success) {
    Serial.print(F("Found tag! UID: "));
    for (uint8_t i = 0; i < uidLength; i++) {
      if (uid[i] < 0x10) Serial.print('0');
      Serial.print(uid[i], HEX);
      if (i < uidLength - 1) Serial.print(':');
    }
    Serial.println();
    delay(1000);
  }
}

Librerie necessarie: Adafruit PN532 1.3.4

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Lettore di tag NFC/RFID PN532 con ESP32

Questo circuito collega il modulo NFC/RFID PN532 all'ESP32 tramite I2C per leggere tag RFID o schede NFC standard da 13.56 MHz. Assicurati che gli switch DIP del modulo siano impostati in modalità I2C (Channel 0=HIGH, Channel 1=LOW). Quando una scheda o un portachiavi viene avvicinato all'antenna, l'ESP32 legge e stampa il suo identificativo univoco (UID) nel Serial Monitor.

Schema di collegamento: Kit PN532 RFID NFC con scheda S50 e portachiavi S50 su un ESP32 DevKit V1
Schema di collegamento · Clicca per ingrandire
Tabella di collegamento: Kit PN532 RFID NFC con scheda S50 e portachiavi S50 su un ESP32 DevKit V1
Tabella di collegamento · Clicca per ingrandire
PN532_NFC_RFID_Tag_Reader_with_ESP32.ino · compilato e testato
/*
 * ==================================================================
 *  Generated by Codey.online  —  https://www.codey.online
 * ==================================================================
 *  Project   : PN532 NFC/RFID Tag Reader with ESP32
 *  Board     : ESP32 DEVKIT V1 (esp32:esp32:esp32doit-devkit-v1)
 *  Parts     : PN532 RFID NFC Module
 *  Libraries : Adafruit PN532 1.3.4
 *
 *  Codey Online is an AI-powered browser IDE for Arduino and ESP32.
 *  Describe your project and Codey writes the code, draws the wiring
 *  diagram and uploads it to your board, straight from the browser.
 *  This code is free to use, modify and share, without warranty.
 * ==================================================================
 */

#include <Wire.h>
#include <Adafruit_PN532.h>

// Use I2C interface without dedicated IRQ/Reset pins
#define PN532_IRQ   (-1)
#define PN532_RESET (-1)

Adafruit_PN532 nfc(PN532_IRQ, PN532_RESET);

void setup() {
  Serial.begin(115200);
  while (!Serial) delay(10);

  Serial.println("Initializing PN532 NFC Reader...");
  nfc.begin();

  uint32_t versiondata = nfc.getFirmwareVersion();
  if (!versiondata) {
    Serial.println("PN532 not found! Check DIP switches (I2C mode) and wiring.");
    while (1) delay(100);
  }

  Serial.print("Found PN532 chip with firmware version: ");
  Serial.print((versiondata >> 16) & 0xFF, DEC);
  Serial.print('.');
  Serial.println((versiondata >> 8) & 0xFF, DEC);

  // Configure Secure Access Module (SAM)
  nfc.SAMConfig();

  Serial.println("Ready! Present an RFID card or NFC tag to the reader...");
}

void loop() {
  uint8_t success;
  uint8_t uid[] = { 0, 0, 0, 0, 0, 0, 0 };
  uint8_t uidLength;

  // Wait up to 500ms for an ISO14443A card
  success = nfc.readPassiveTargetID(PN532_MIFARE_ISO14443A, uid, &uidLength, 500);

  if (success) {
    Serial.println("Card detected!");
    Serial.print("UID Length: ");
    Serial.print(uidLength, DEC);
    Serial.println(" bytes");
    Serial.print("UID: ");
    nfc.PrintHex(uid, uidLength);
    Serial.println();

    delay(1000); // Debounce to avoid repeated rapid reads
  }
}

Librerie necessarie: Adafruit PN532 1.3.4

Wiring diagram and example code generated by Codey.online — https://www.codey.online

Kit PN532 RFID NFC con scheda S50 e portachiavi S50

Questo modulo PN532 RFID può, oltre a trasmettere e ricevere tag Mifare, inviare anche dati tramite NFC.
Il modulo può essere controllato tramite SPI, I2C o UART.

Specifiche:

  • Chip: NXP PN532
  • Tensione: 3.3 - 5V DC
  • Supporta diversi prodotti RFID tra cui Mifare e FeliCa
  • Distanza di lettura: fino a ~5-7cm
  • Level shifter per I2C e UART presente per compatibilità con sistemi a 5V(SPI solo 3.3V!)
  • Due DIP switch presenti per selezionare la modalità di comunicazione(HSU=High Speed UART)
  • Fornito con una scheda S50, un portachiavi S50, header piegato a 4 pin e cavo
  • Due fori di montaggio da 3mm presenti

Termini di ricerca: rfid, rfid kit, rfid-kit, rfid set, nfc set, nfc kit

Dimensioni
Lunghezza: 4,3cm
Larghezza: 4cm
Altezza: 0,3cm

  • chip PN532
  • Fornito completo
  • DIP switch
  • 2 fori di montaggio

Perché scegliere questo prodotto?

  • Meerdere protocollen – Aansturing via SPI, I2C of UART.
  • NFC-data verzenden – Kan zelf data verzenden via NFC.
  • Compatibel met 5V – Levelshifter voor I2C en UART aanwezig.
  • Compleet geleverd – Inclusief kaart, key tag, header en kabel.
  • Eenvoudige montage – Twee 3mm montagegaten aanwezig.
Specifiche
Dimensioni4,3 x 4 x 0,3 cm
InterfacciaSPI, I2C o UART
Adatto persistemi 5V
ChipNXP PN532
Fori di montaggio2 x 3 mm
Distanza di letturafino a ~5-7cm

Nella confezione

  • modulo RFID PN532
  • scheda S50
  • portachiavi S50
  • header piegato a 4 pin
  • cavo

Recensioni

★★★★★ 5,0/5 1 recensione
  • ★★★★★Anoniem

    Devo ancora iniziare a usarlo, ma sembra come previsto

Scrivi una recensione
La tua valutazione

Spedizione & resi

Spedizione

  • Pacco con tracking€ 6,954 giorni lavorativi
  • Pacco con tracking€ 8,604 giorni lavorativi
  • Pacco con tracking€ 9,854 giorni lavorativi
  • Pacco con tracking€ 10,654 giorni lavorativi
Tutto sulla spedizione

Resi

Non sei soddisfatto? Hai 30 giorni dalla consegna per restituire il prodotto.

Tutto sui resi

Visti di recente