Mixly-RFID smart access control

Disclaimer: This article is a blogger original article, follow the CC 4.0 BY-SA copyright agreement, reproduced, please attach the original source link and this statement.
This link: https://blog.csdn.net/weixin_45793370/article/details/102749530

Mixly-RFID smart access control

Test number:

void setup(){  
Serial.begin(9600);  
SPI.begin();  
rfid.init();  S
erial.begin(9600);
} void loop(){  
if ( rfid.isCard() 
 ) {    
 Serial.println(RFID_readcardnum());  
 } 
 }

Here are screenshots
Here Insert Picture Description

Experiment two:

void setup(){  
Serial.begin(9600);  
SPI.begin();  
rfid.init();  
RC = "";  
Serial.begin(9600);  
servo_6.attach(6);
} 
void loop(){  
if ( rfid.isCard()  ) 
{    
RC = RFID_readcardnum();    
Serial.println(RC);    
if (RC == card[(int)(0)]) 
{      
servo_6.write(90);      
delay(3000);      
servo_6.write(0);      
delay(0);     }  
}

Here is a screenshot

Here Insert Picture Description

Guess you like

Origin blog.csdn.net/weixin_45793370/article/details/102749530