EEVblog Electronics Community Forum
A Free & Open Forum For Electronics Enthusiasts & Professionals
Welcome,
Guest
. Please
login
or
register
.
Did you miss your
activation email
?
1 Hour
1 Day
1 Week
1 Month
Forever
Login with username, password and session length
This topic
This board
Entire forum
Google
Bing
Home
Help
Search
About us
Links
Login
Register
EEVblog Electronics Community Forum
»
Electronics
»
RF, Microwave, Ham Radio
»
How to to change Gain on RFID-RC522 ???
« previous
next »
Print
Search
Pages: [
1
]
Go Down
Author
Topic: How to to change Gain on RFID-RC522 ??? (Read 4592 times)
0 Members and 1 Guest are viewing this topic.
rantwhy
Contributor
Posts: 16
Country:
How to to change Gain on RFID-RC522 ???
«
on:
August 26, 2016, 04:53:32 am »
so I just got my RFID-RC522 to work with my arduino But the range is absolute shit. its less then the thickness of a sticky note stack.
I have read other forums on how to change it but no one gives a clear answer as to were to change the values rather it be in the library or the sketch itself. here is a link to the pdf on the unit
http://www.nxp.com/documents/data_sheet/MFRC522.pdf
My interests are page 59 Table 98. were do I put the max value witch is 111? do I put it in the sketch or library? and how should it be formatted so I don't throw any errors?
Thanks a bunch!!!!
Logged
jmsigler
Regular Contributor
Posts: 57
Country:
Re: How to to change Gain on RFID-RC522 ???
«
Reply #1 on:
August 26, 2016, 05:58:47 am »
What library are you using?
If you're using miguelbalboa's it looks like you should be able to do something like below in your sketch:
X.PCD_SetAntennaGain(0xFF);
Where X is your MFRC522 object var name
«
Last Edit: August 26, 2016, 06:10:16 am by jmsigler
»
Logged
rantwhy
Contributor
Posts: 16
Country:
Re: How to to change Gain on RFID-RC522 ???
«
Reply #2 on:
August 26, 2016, 08:37:54 am »
Im using the one from Addicore
https://www.addicore.com/RFID-AddiKit-p/126.htm
The library was in the pdf as a link
https://www.addicore.com/v/vspfiles/downloadables/Product%20Downloadables/RFID_RC522/AddicoreRFID.zip
I will try the miguelbalboa it seems like it comes with more bits Thanks! Ill let you know what I come up with
Logged
rantwhy
Contributor
Posts: 16
Country:
Re: How to to change Gain on RFID-RC522 ???
«
Reply #3 on:
August 27, 2016, 11:24:18 pm »
so I looked around and that line of code you showed me is only in the library were should I put this 0xFF value I tryed putting it everywhere and it just gives me errors can you post a mode descriptive example?
Logged
jmsigler
Regular Contributor
Posts: 57
Country:
Re: How to to change Gain on RFID-RC522 ???
«
Reply #4 on:
August 27, 2016, 11:51:50 pm »
Keep the library the same. put that line of code in your sketch.
Logged
Print
Search
Pages: [
1
]
Go Up
« previous
next »
Share me
Smf
EEVblog Electronics Community Forum
»
Electronics
»
RF, Microwave, Ham Radio
»
How to to change Gain on RFID-RC522 ???
There was an error while thanking
Thanking...
EEVblog Main Site
EEVblog on Youtube
EEVblog on Twitter
EEVblog on Facebook
EEVblog on Odysee