# Elechouse PN 532 issue

**URL:** <https://forum.xod.io/t/elechouse-pn-532-issue/3862>\
**Category:** Hardware Interfacing Questions\
**Created:** [April 27, 2020, 10:03am UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862 "2020-04-27T10:03:24Z")\
**Posts on this page:** 15\
**Page:** 1

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [April 27, 2020, 10:03am UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/1 "2020-04-27T10:03:24Z")

</div>

Hi All

I have been playing with the PN 532 but have hit the wall with it . Using Cesars PN 532 library I can pull back a Firmware version but that’s it .  
Using the other Nodes ie unpack UID just gives no results . I am using the board connected as an I2C Device and have a separate line for IRQ to A0 as requested by the Node . I dont have a lot of Hair to start with but this problem is causing it to rapidly diminish 🙂 , Any Help or advice would be gratefully received . Thanks

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [April 27, 2020, 1:17pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/2 "2020-04-27T13:17:18Z")

</div>

hi, for 532 use the XOD native nodes, my library is for rc522

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [April 27, 2020, 1:48pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/3 "2020-04-27T13:48:03Z")

</div>

Hi Cesar , Thanks for replying . I am using the 532 Native node ( apologies , i was rushing doing the inquiry) . Iam not convinced I have the connections correct though . I have tried the SCL SCA connections nearest the USB socket on the UNO and various other configurations but do not seem to be getting very far ( are pullup resistors needed ?). Would you be able to confirm the connections ? .  
XOD is a Great piece of software and has opened Arduino up for me . Love it

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [April 30, 2020, 10:34am UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/4 "2020-04-30T10:34:38Z")

</div>

Hi

Seems I have some Library issue . I was getting a few different errors so removed the libraries and reloaded them . I now get .  
In file included from  
C:\Users\MarkC\AppData\Local\Temp\xod\_temp\_sketchbookRIOHoH\xod\_1588242680825\_sketch\xod\_1588242680825\_sketch.ino:979:0:  
C:\Users\MarkC\AppData\Local\Temp\xod\_temp\_sketchbookRIOHoH\libraries\Adafruit\_PN532/Adafruit\_PN532.h:222:3: error: ‘Adafruit\_SPIDevice’ does not name a type; did you mean ‘Adafruit\_PN532’?  
Adafruit\_SPIDevice \*spi\_dev = NULL;  
^ ~~~~~~~~~~~~~~~~~  
Adafruit\_PN532

thanks

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [April 30, 2020, 12:24pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/5 "2020-04-30T12:24:23Z")

</div>

So I tried numerous things . Stripped off xod then reloaded and installed the libraries through xod for PN532 . When i do this i get  
In file included from C:\Users\MarkC\AppData\Local\Temp\xod\_temp\_sketchbookHkW3th\xod\_1588247553753\_sketch\xod\_1588247553753\_sketch.ino:979:0:  
C:\Users\MarkC\AppData\Local\Temp\xod\_temp\_sketchbookHkW3th\libraries\Adafruit\_PN532/Adafruit\_PN532.h:34:10: fatal error: Adafruit\_SPIDevice.h: No such file or directory  
#include \<Adafruit\_SPIDevice.h\>

Any help advice would be most tremendous , Thanks

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [April 30, 2020, 2:01pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/6 "2020-04-30T14:01:23Z")

</div>

When trying to compile a light blue warning appears, you must click to download the library and recompile.

If not downloaded, you should do it manually from

> **[adafruit/Adafruit-PN532](https://github.com/adafruit/Adafruit-PN532)**
>
> Arduino library for SPI and I2C access to the PN532 RFID/Near Field Communication chip - adafruit/Adafruit-PN532

and add the unzipped folder in `/user/xod/ __ardulib__ /`

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [April 30, 2020, 3:21pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/7 "2020-04-30T15:21:36Z")

</div>

Hi Cesar

Thanks for the information . I still get the error but looking in the unzipped package I dont see the SPI file .

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [April 30, 2020, 3:48pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/8 "2020-04-30T15:48:30Z")

</div>

Follow these steps

> [@Where should i report this error?](https://forum.xod.io/t/where-should-i-report-this-error/3813/2):
>
> you can download that .zip file and unzip it to user/xod/\_\_ ardulib\_\_/ Adafruit\_ADS1X15 and include the files inside, you can look at other libraries in the same folder to get an idea

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [May 1, 2020, 12:20pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/9 "2020-05-01T12:20:32Z")

</div>

![capture](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/e/e72b39fa279df8b90e155b5d09750c76bf77e38e.png) ![error|690x57]

Hi , I have tried on a different PC but get the same issue . I have attached an image of the _ardulib_ directory . It seems to me that there are some files for SPI support missing from the GitHub library ??

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 1, 2020, 12:31pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/10 "2020-05-01T12:31:55Z")

</div>

download this zip and repeat the previous process

> **[adafruit/Adafruit\_BusIO](https://github.com/adafruit/Adafruit_BusIO)**
>
> I2C, SPI and UART abstractions for use with Arduino - adafruit/Adafruit\_BusIO

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [May 1, 2020, 2:02pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/11 "2020-05-01T14:02:48Z")

</div>

![Capture](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/2X/7/77005e80caee4b0a53a089b08fb1b173eea81820.png)

Hi , I used a different library and now it compiles . Image attached

still no comms but a bit nearer 🙂

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [May 1, 2020, 3:39pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/12 "2020-05-01T15:39:17Z")

</div>

So I just tried the PN532 directly through the Arduino IDE and UNO says hello but nothing back from the PN532 so I am pretty sure the board is a duffer . Thanks for your help its been a good learning experience

---

<div class="post-metadata">

**Author:** ![cesars](https://avatars.discourse-cdn.com/v4/letter/c/f05b48/32.png) [@cesars](https://forum.xod.io/u/cesars)\
**Post date:** [May 1, 2020, 4:15pm UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/13 "2020-05-01T16:15:57Z")

</div>

I can not contribute any experience with PN532, because I do not have that hardware.  
I only have the rc522 for which I made a library but it is not yet complete

Br

---

<div class="post-metadata">

**Author:** ![tinkerermark](https://avatars.discourse-cdn.com/v4/letter/t/58956e/32.png) [@tinkerermark](https://forum.xod.io/u/tinkerermark)\
**Post date:** [May 3, 2020, 11:30am UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/14 "2020-05-03T11:30:39Z")

</div>

I have an RC522 also . Is the library you have for it so far capable of unpacking the card UID ?

---

<div class="post-metadata">

**Author:** ![system](https://canada1.discourse-cdn.com/flex027/uploads/xod/original/1X/eb7348baa04192c2ef932d1db54d44f09f8a7888.png) [@system](https://forum.xod.io/u/system)\
**Post date:** [June 2, 2020, 11:30am UTC](https://forum.xod.io/t/elechouse-pn-532-issue/3862/15 "2020-06-02T11:30:42Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
