Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adapt Antenna Gain #30

Open
tdullers opened this issue Jul 23, 2016 · 9 comments
Open

Adapt Antenna Gain #30

tdullers opened this issue Jul 23, 2016 · 9 comments

Comments

@tdullers
Copy link

Hi

Any clue on how to adapt the receiver gain in your example ?

@espenoh
Copy link

espenoh commented Jul 23, 2016

Not sure what you mean by "adapt", but you can control the antenna gain using the RFCfgReg, as documented in the datasheet (9.3.3.6, page 59).

Something like this in MFRC522_Init:
self.Write_MFRC522(self.RFCfgReg, (0x07<<4))
should give you 48 db (max) gain.

@tdullers
Copy link
Author

Hi,

yes that is exactly what I meant !
So, is it as simple as editing MFRC522.py in your example and adding this line ?

def MFRC522_Init(self):
GPIO.output(self.NRSTPD, 1)
self.Write_MFRC522(self.RFCfgReg, (0x07<<4))

@espenoh
Copy link

espenoh commented Jul 24, 2016

Yeah that should work.

I did some testing with this a long time ago, with little notable effect. Though in retrospect I think that was due to the antenna being mounted a bit too close to the ground plane of a PCB I had in the same enclosure (which definitely worsened the reception). Feel free to report back if you're seeing any noticeable change.

@tdullers
Copy link
Author

OK, I need to do some more controlled testing but some first tests showed that with antenna set to maximum gain I could a small bracelet tag to read reliably with a 1 cm acrylplate in front of the rfid reader, without even touching the plate, with normal gain I could only get that to work with a 2-3 mm plate. With a normal rfid card tag I even got reliable signals with a 4 cm acryl plate above the reader.
Will let you know when I have some more controlled results. However the RC522 seems a very solid reader, for sure compared to some commercial solutions that do often cost a few 100 usd,.... 

Sent from my Samsung Galaxy smartphone.
-------- Original message --------From: Espen notifications@github.com Date: 7/25/16 00:18 (GMT+01:00) To: mxgxw/MFRC522-python MFRC522-python@noreply.github.com Cc: tdullers dullerstijl@gmail.com, Author author@noreply.github.com Subject: Re: [mxgxw/MFRC522-python] Adapt Antenna Gain (#30)
Yeah that should work.

I did some testing with this a long time ago, with little notable effect. Though in retrospect I think that was due to the antenna being mounted a bit too close to the ground plane of a PCB I had in the same enclosure (which definitely worsened the reception). Feel free to report back if you're seeing any noticeable change.


You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub, or mute the thread.

@Liriel
Copy link

Liriel commented Apr 6, 2017

totally works and increases the distance significantly from which the tags can be read!

@guleus
Copy link

guleus commented Jul 19, 2018

Hello,
just somehow got to your cool module so i thought i ask you.
I bought some really cheap MFRC-522 reader/writers for my raspberry pi RFID project.
Now i started testing the things, but was really disappointed by the distance of reading the passive tags (<1 cm)
What i want to do is to achieve reading tags with a raspberry in a distance, lets say 0.5-1 meter and through clothes
Do I need to get an antenna a differenet reader? Any good suggestion. How far does your reader read and trhorugh clothes too??
Thanks a lot

@Liriel
Copy link

Liriel commented Jul 19, 2018 via email

@ThomasWoeg
Copy link

ThomasWoeg commented Sep 24, 2018

Hi,
yes that is exactly what I meant !
So, is it as simple as editing MFRC522.py in your example and adding this line ?
def MFRC522_Init(self):
GPIO.output(self.NRSTPD, 1)
self.Write_MFRC522(self.RFCfgReg, (0x07<<4))

Doing this didn't actually change anything for me

@himanipangasa
Copy link

how to increase the read range of MFRC522 in raspberry pi 3?
please help

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants