Tapto PN532 Module Tutorial?

Showcase builds, discuss cases, embedding MiSTer into existing computer cases.
mong00se
Posts: 32
Joined: Mon Feb 19, 2024 8:37 am
Has thanked: 7 times
Been thanked: 10 times

Tapto PN532 Module Tutorial?

Unread post by mong00se »

Hi,

I am in the middle of making a case to fit my mister multisystem and i wanted to hide a tapto inside the case. On the Tapto website is see there is a PN532 module that can be used. Is there a tutorial on how to set the module up? It seams alot cheaper and smaller than a normal reader.

AngelicLiver
Top Contributor
Posts: 433
Joined: Fri May 29, 2020 8:50 am
Has thanked: 86 times
Been thanked: 120 times

Re: Tapto PN532 Module Tutorial?

Unread post by AngelicLiver »

All of the documentation for TapTo can be found in the GitHub repo. If you want to take the DIY approach and use the PN532 module, you need to understand that in order for it to work, it needs to be coupled with a compatible USB to TTL converter.

There is a full DIY guide here with a custom PCB you will need to order from JLCPCB/PCBWAY etc. Alternatively you can just purchase an off-the-shelf ACR122U.

mong00se
Posts: 32
Joined: Mon Feb 19, 2024 8:37 am
Has thanked: 7 times
Been thanked: 10 times

Re: Tapto PN532 Module Tutorial?

Unread post by mong00se »

That is exactly what i wanted. Thankyou very much.

Looking at the cost and the amount of time involved I might just buy an ACR122U. I dont need 5 PCB,s and the ACR122U could be made to fit inside my case. I might try the build though just to understand it more.
Thanks for the reply.

whocares
Posts: 10
Joined: Sat Aug 19, 2023 3:26 am
Been thanked: 13 times

Re: Tapto PN532 Module Tutorial?

Unread post by whocares »

It’s really simple, went the DIY for my build. Buy a PN532 module with header and cables, also buy a CP2102 USB to TTL module. Connect them together (I had to switch the pins RX and TX when wiring) and it will be detected by TapTo

whocares
Posts: 10
Joined: Sat Aug 19, 2023 3:26 am
Been thanked: 13 times

Re: Tapto PN532 Module Tutorial?

Unread post by whocares »

Also I tired a PL2303 chip based USB and it would not work - apparently an issue with Linux support.

mong00se
Posts: 32
Joined: Mon Feb 19, 2024 8:37 am
Has thanked: 7 times
Been thanked: 10 times

Re: Tapto PN532 Module Tutorial?

Unread post by mong00se »

Excellent

mong00se
Posts: 32
Joined: Mon Feb 19, 2024 8:37 am
Has thanked: 7 times
Been thanked: 10 times

Re: Tapto PN532 Module Tutorial?

Unread post by mong00se »

whocares wrote: Fri Mar 08, 2024 2:55 am

It’s really simple, went the DIY for my build. Buy a PN532 module with header and cables, also buy a CP2102 USB to TTL module. Connect them together (I had to switch the pins RX and TX when wiring) and it will be detected by TapTo

Do you have links where to buy plz? When you say simple I am leaning towards this build. Also do you have a picture of it built so i can guage the size to see if it will fit in my case?
Thanks in advance.

IMG_1567.jpg
You do not have the required permissions to view the files attached to this post.
AngelicLiver
Top Contributor
Posts: 433
Joined: Fri May 29, 2020 8:50 am
Has thanked: 86 times
Been thanked: 120 times

Re: Tapto PN532 Module Tutorial?

Unread post by AngelicLiver »

mong00se wrote: Wed Mar 13, 2024 10:04 am

Do you have links where to buy plz?

Vendors can be found in the GitHub repo. Images of hardware and case designs also (download an STL to preview the footprint).

mong00se
Posts: 32
Joined: Mon Feb 19, 2024 8:37 am
Has thanked: 7 times
Been thanked: 10 times

Re: Tapto PN532 Module Tutorial?

Unread post by mong00se »

AngelicLiver wrote: Wed Mar 13, 2024 10:45 am
mong00se wrote: Wed Mar 13, 2024 10:04 am

Do you have links where to buy plz?

Vendors can be found in the GitHub repo. Images of hardware and case designs also (download an STL to preview the footprint).

I have been going over the github for a while now. I am now looking at PN532 NFC USB Module - Type C. It is cheap and fits the footprint i desire. Compatibility may be a problem. Using a simple usb ttl is the other option. I dont really want to have to get PCBs printed because i only need 1. I will keep reading and learning. Thanks.

whocares
Posts: 10
Joined: Sat Aug 19, 2023 3:26 am
Been thanked: 13 times

Re: Tapto PN532 Module Tutorial?

Unread post by whocares »

I purchased the parts on Amazon. The PN532 often is listed with the cables and then you need the usb TTL with CP2102 chip, just do a search you will find many available for cheap.

markdr
Posts: 3
Joined: Sat Aug 29, 2020 8:08 pm

Re: Tapto PN532 Module Tutorial?

Unread post by markdr »

I recently had sucess connecting one of those PN532 modules via I2C directly to the DE10-Nano, using the same header as used by the realtime clock. The header provides 3v3/GND/SDA/SCL so all the required connections. Just make sure that the jumpers on the module are set to I2C mode, mine wasn't in this setting by default.

To know if it is being picked up by the system, use the i2cdetect command to check the address, 0x24 is the default address.

Code: Select all

i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

The tapto.ini had to be updated to use a custom connection:

Code: Select all

connection_string="pn532_i2c:/dev/i2c-2"
Missus
Posts: 183
Joined: Fri Jan 27, 2023 12:45 am
Has thanked: 48 times
Been thanked: 43 times

Re: Tapto PN532 Module Tutorial?

Unread post by Missus »

markdr wrote: Thu May 30, 2024 9:53 pm

I recently had sucess connecting one of those PN532 modules via I2C directly to the DE10-Nano, using the same header as used by the realtime clock. The header provides 3v3/GND/SDA/SCL so all the required connections. Just make sure that the jumpers on the module are set to I2C mode, mine wasn't in this setting by default.

To know if it is being picked up by the system, use the i2cdetect command to check the address, 0x24 is the default address.

Code: Select all

i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

The tapto.ini had to be updated to use a custom connection:

Code: Select all

connection_string="pn532_i2c:/dev/i2c-2"

Is it possible to use multiple devices (rtc and pn532 and i2c2oled) on the same bus? I assume so, but wondering how one would wire up additional devices, as I am already using the i2c pins from the rtc board for the i2c2oled.

User avatar
Follow
Posts: 14
Joined: Mon Aug 05, 2024 9:53 pm
Has thanked: 6 times
Been thanked: 2 times

Re: Tapto PN532 Module Tutorial?

Unread post by Follow »

markdr wrote: Thu May 30, 2024 9:53 pm

I recently had sucess connecting one of those PN532 modules via I2C directly to the DE10-Nano, using the same header as used by the realtime clock. The header provides 3v3/GND/SDA/SCL so all the required connections. Just make sure that the jumpers on the module are set to I2C mode, mine wasn't in this setting by default.

To know if it is being picked up by the system, use the i2cdetect command to check the address, 0x24 is the default address.

Code: Select all

i2cdetect -y 2
     0  1  2  3  4  5  6  7  8  9  a  b  c  d  e  f
00:                         -- -- -- -- -- -- -- -- 
10: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
20: -- -- -- -- 24 -- -- -- -- -- -- -- -- -- -- -- 
30: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
40: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
50: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
60: -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- 
70: -- -- -- -- -- -- -- --

The tapto.ini had to be updated to use a custom connection:

Code: Select all

connection_string="pn532_i2c:/dev/i2c-2"

Which pins did you use 4/5 29/30?
Do you have a picture? I'm a newbie and I have doubts and I'm afraid of burning something

Arakon
Posts: 16
Joined: Thu Sep 12, 2024 8:04 am
Has thanked: 2 times
Been thanked: 8 times

Re: Tapto PN532 Module Tutorial?

Unread post by Arakon »

Since this was never answered and I was just in the same situation:

You can just wire it in parallel to the RTC and the display. They have different IDs, so they work fine. So just connect all 3.3v, all GND, all SDA and all SCL lines together and to the mainboard.
Without the RTC board, you can also use a double row 2x7 2mm pitch connector.

i2c-MisterPi.png

On the NFC board, make sure to set the DIP switches as pictured.

PXL_20241001_124717221.PORTRAIT.ORIGINAL.jpg
You do not have the required permissions to view the files attached to this post.
Post Reply