hi,
I try to make power cut circuit by RFID module working only if IFRD card still put on module, (by make Pin 5 High)
How to get code to make pin 5 low when remove the card or tag from RFID module
void setup()
{
while (!Serial);
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
I try to make power cut circuit by RFID module working only if IFRD card still put on module, (by make Pin 5 High)
How to get code to make pin 5 low when take away the card or tag from RFID module
void setup()
{
while (!Serial);
Serial.begin(9600); // Initiate a serial communication
SPI.begin(); // Initiate SPI bus
mfrc522.PCD_Init(); // Initiate MFRC522
How to get code to make pin 5 low when take away the card or tag from RFID module
Look at what happens in loop().
if ( ! mfrc522.PICC_IsNewCardPresent())
{
return;
}
You need to look at what that function does, to determine when a card was removed and replaced. It knows that the card it is now reading is, or is not, the same as the one it was giving data for the last time you asked.
You need to look at what that function does, to determine when a card was removed and replaced. It knows that the card it is now reading is, or is not, the same as the one it was giving data for the last time you asked.
the function is stop read from card if card take away , hwo to add this cass code when the card take away