question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

MFRC522, setAntennaGain(..) has no effect

See original GitHub issue

I’m trying to increase the reading-range of my MFRC522. By using MFRC522.getPiccType(sak); i determined my picc is a MIFARE_1K. The data sheet (https://www.mouser.com/datasheet/2/302/MF1S503x-89574.pdf) says:

Operating distance up to 100 mm depending on antenna geometry and reader configuration

So i assume the antenna gain setting is available in general. But using mfrc522.setAntennaGain(..) seems to do nothing, the reading-range remains at ~20mm, no matter what AntennaGain-enum is passed. And mfrc522.getAntennaGain() returns always null.

Do you have a hint? Thank you.

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:5 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
lglowaniacommented, Jun 11, 2021

Sorry for the late response. I had no time to investigate further. In my experiments it did not make any difference in range, but when i used mfrc522.setAntennaGain(AntennaGain.DB_48) i frequently received read errors when placing the transponder. I don’t remember exactly the error-output. It was something like read error on 0x01. I will comment my insights here in the future.

0reactions
mattjlewiscommented, Jun 4, 2021

Excellent, thank you. Did it make a difference in range?

Read more comments on GitHub >

github_iconTop Results From Across the Web

Extend range for MFRC522 RFID Reader - Arduino Forum
Hello,. I am trying to set RFCfgReg to 48db gain. But i think there is error for converting values with the Library that...
Read more >
Security Access using MFRC522 RFID Reader with Arduino
This blog post shows how to use the MFRC522 RFID reader. I'll do a quick overview of the specifications and demonstrate a project...
Read more >
MFRC522 Standard performance MIFARE and NTAG frontend
The MFRC522 supports contactless communication and uses MIFARE higher transfer speeds up to 848 kBd in both directions.
Read more >
Arduino RC522 RFID Door Unlock : 3 Steps - Instructables
Unlocks a Door (controls a relay actually) using a RC522 RFID reader with SPI interface on your Arduino. You define a Master Card...
Read more >
mfrc522 - Go Packages
Package mfrc522 controls a Mifare RFID card reader. ... means - KeyA could not be read but could be overwriten if KeyA is...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found