Skip to content
This repository was archived by the owner on Mar 25, 2025. It is now read-only.
This repository was archived by the owner on Mar 25, 2025. It is now read-only.

Increasing range of MFRC522 #11

Description

@kevindekemele

Hello,

In the repo for the python version they claim to have increased the range:
mxgxw/MFRC522-python#30

How can this be done with this module?

I tried:

First I logged the byte that sets the antenna gain
console.log(this.readRegister(CMD.RFCfgReg)) which returns 72.
According to the datasheet of MRFC522, 72 corresponds to 33db.

I tried putting it on 112 (which is 48db) with

this.writeRegister(CMD.RFCfgReg, 0x07 << 4);

in index.js in the function reset();

But If I try to read the same byte later, again with
console.log(this.readRegister(CMD.RFCfgReg)) it still logs 72!

How do I increase the gain?

Thanks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions