You need to enable JavaScript to run this app.
优惠活动
大模型
产品
解决方案
定价
更多

Arduino UNO与PN532模块SPI模式通信故障求助

PN532与Arduino UNO SPI通信故障:无法识别模块

我正尝试让PN532模块与Arduino UNO配合工作,已测试三种通信模式,仅SPI模式下模块指示灯能亮起,但串口始终返回Didn't find PN53x board提示。

我已按文档要求完成引脚焊接并反复核对接线,也尝试将RSTO引脚连接到Arduino的引脚9,问题仍未解决。

使用的SPI通信代码如下:

// for SPI Communication
#include <SPI.h>
#include <PN532_SPI.h>
#include <PN532.h>
#include <NfcAdapter.h>
PN532_SPI interface(SPI, 10); // create a PN532 SPI interface with the SPI CS terminal located at digital pin 10
NfcAdapter nfc = NfcAdapter(interface); // create an NFC adapter object
String tagId = "None";
 
void setup(void) 
{
 Serial.begin(115200);
 Serial.println("System initialized");
 nfc.begin();
}
 
void loop() 
{
 readNFC();
}
 
void readNFC() 
{
 if (nfc.tagPresent())
 {
   NfcTag tag = nfc.read();
   tag.print();
   tagId = tag.getUidString();
 }
 delay(5000);
}

物理接线图示:
整体接线图
Arduino接线细节
PN532模块接线细节

内容的提问来源于stack exchange,提问作者Sebastián

相关产品推荐
方舟 Agent Plan

超全模态模型 × Harness 升级,最新支持 Deepseek-V4.1-Flash、GLM-5.3 系列、Doubao-Seedream-5.0-pro、Kimi-K3 (部分), 限时 9.9 元起

最近更新时间:2026.07.15 22:47:19