Answer the question
In order to leave comments, you need to log in
How to use PN532 on python?
Hello!
I set up the pn532 sensor on the raspberry pi, now I want to separate the readers, but I don’t know how to write the program.
That's when I touch the sensor with a card, it gives out the following information:
I understand that it gives out the id of the card that needs to be tied to a person, etc.
But how can I write a program like that?
I found about the py-spidev library with the following code:
#!/usr/bin/python
import spidev
import time
spi = spidev.SpiDev()
spi.open(0,0)
while True:
resp = spi.xfer2([0x1])
print resp[0]
time.sleep(1)
Answer the question
In order to leave comments, you need to log in
Try the rfidiot library, there are examples included.
There is a ready access control system based on rpi and pn532 https://github.com/kieferyap/forkpi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question