# RPI Pico with generic PN532 on I2C

**URL:** <https://forum.core-electronics.com.au/t/rpi-pico-with-generic-pn532-on-i2c/16261>\
**Category:** Uncategorized\
**Created:** [31 January 2023 13:43 UTC](https://forum.core-electronics.com.au/t/rpi-pico-with-generic-pn532-on-i2c/16261 "2023-01-31T13:43:47Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mike224058](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/mike224058/32/7911_2.png) [@Mike224058](https://forum.core-electronics.com.au/u/Mike224058)\
**Post date:** [31 January 2023 13:43 UTC](https://forum.core-electronics.com.au/t/rpi-pico-with-generic-pn532-on-i2c/16261/1 "2023-01-31T13:43:47Z")

</div>

My pico is connected with a RFID PN532 module via I2C channel at I2C\_ADDRESS = 0x24.  
I have updated the line `_I2C_ADDRESS = 0x24` in PiicoDev\_RFID.py

I think line 51 at PiicoDev\_Unified.py needs also to be changed with actual sda and scl pins, that are  
`scl=Pin(17), sda=Pin(16)`

I then tried to run read.py and I get :

```auto
Traceback (most recent call last):
  File "<stdin>", line 6, in <module>
  File "PiicoDev_RFID.py", line 79, in __init__
  File "PiicoDev_RFID.py", line 284, in reset
  File "PiicoDev_RFID.py", line 95, in _wreg
OSError: [Errno 5] EIO

```

Are there any other values I have to change in the libraries? Any suggestions as to how to troubleshoot the issue?

---

<div class="post-metadata">

**Author:** ![Liam](https://yyz2.discourse-cdn.com/flex028/user_avatar/forum.core-electronics.com.au/liam/32/3562_2.png) [@Liam](https://forum.core-electronics.com.au/u/Liam)\
**Post date:** [31 January 2023 21:48 UTC](https://forum.core-electronics.com.au/t/rpi-pico-with-generic-pn532-on-i2c/16261/2 "2023-01-31T21:48:53Z")

</div>

Hi Mike,

The PN532 wont work with the PiicoDev Libraries as different chipsets are used.

Adafruit have a CircuitPython library available here: [Python & CircuitPython | Adafruit PN532 RFID/NFC Breakout and Shield | Adafruit Learning System](https://learn.adafruit.com/adafruit-pn532-rfid-nfc/python-circuitpython)  
Though I couldnt find a Micropython specific port for the board.

Liam
