Author Topic: How to to change Gain on RFID-RC522 ???  (Read 4592 times)

0 Members and 1 Guest are viewing this topic.

Offline rantwhyTopic starter

  • Contributor
  • Posts: 16
  • Country: us
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!!!!
 

Offline jmsigler

  • Regular Contributor
  • *
  • Posts: 57
  • Country: us
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 »
 

Offline rantwhyTopic starter

  • Contributor
  • Posts: 16
  • Country: us
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


 

Offline rantwhyTopic starter

  • Contributor
  • Posts: 16
  • Country: us
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?
 

Offline jmsigler

  • Regular Contributor
  • *
  • Posts: 57
  • Country: us
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.
 


Share me

Digg  Facebook  SlashDot  Delicious  Technorati  Twitter  Google  Yahoo
Smf