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

Restart MRFC522 fails after hard power down #550

Closed
Oegtsgeest opened this issue Feb 1, 2021 · 1 comment
Closed

Restart MRFC522 fails after hard power down #550

Oegtsgeest opened this issue Feb 1, 2021 · 1 comment
Labels
duplicate 🤸 already exist

Comments

@Oegtsgeest
Copy link

Oegtsgeest commented Feb 1, 2021

OS version: W10___

  • Arduino IDE version: 1.8.12
  • MFRC522 Library version: v1.4.8
  • Arduino device: SAMD21 adafruitfeather M0
  • MFRC522 device: RFID-RC522

Tried to save power by switching off and on when required.
I used following code:

 if (selectionReceived == 700)   // power down
   {
    pinMode(RST_MRFC_PIN, OUTPUT);
    digitalWrite(RST_MRFC_PIN, LOW);        // hard power down of RFID board 
   }
if (selectionReceived == 701 )   // power up again
   { 
     digitalWrite(RST_MRFC_PIN, HIGH);                        
     mfrc522.PCD_Init();                    // Init MFRC522 ; Power up  RFIDoard 
   }

The unit powers down because I see the current dropping by approx 20mA.
The restart does not work. Do I use the right code? Or is this a bug?
Help is very much appreciated.

@Rotzbua Rotzbua added the duplicate 🤸 already exist label Feb 2, 2021
@Rotzbua
Copy link
Collaborator

Rotzbua commented Feb 2, 2021

idk, but there is already a big thread about power saving techniques #269

@Rotzbua Rotzbua closed this as completed Feb 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate 🤸 already exist
Projects
None yet
Development

No branches or pull requests

2 participants