-
MenuBack
-
Menu
-
Arduino & Raspberry & Micro:bit
-
-
-
-
-
Controller Boards
-
-
-
Batteries
-
Components & TOOLS
-
-
e-Textil
-
-
-
Interruptores & Botões
-
-
-
Sound and Audio
-
-
-
Comunication & Smart Home
-
-
LCD + Matrix + Keypad
-
-
Power Sources and Renewable Energy
-
-
-
RENEWABLE ENERGY
-
-
-
3D Printing & DRONES
-
-
Informática
-
-
Informática
-
-
-
Motors and Relays
-
-
Oficina & Equipamentos
-
-
Oficina & Equipamentos
- Cable ties
- Pliers and Wrenches
- Breadboards
- Drills and Milling Cutters
- Storage Boxes
- Electronics boxes
- Bench Equipment
- Tool Cases & Kits
- Heat shrink sleeve
- Multimeters
- Oscilloscope
- Screws and Spacers
- PCB Copper
- End-Sleeves
- IC Programmers
- Personal Protection
- Protoboards
- Soldering
- Spray and Conductive Paint
- DIN Rail Supports
- Others
-
-
-
ROBOTICS
-
-
Sensors
-
-
- Catalog
- New Products
- On Sale
- Tutorials
- Contact
RFID module RC522 Kit 13.56Mhz 6cm with Tags S50
The RFID Module is based on the MFRC522 chip and is used in wireless communication at a radio frequency of 13.56 MHz
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
If you have any questions on this product please feel free to contact us.
*Disclaimer: The images are merely illustrative.
Main Features:
● High-quality FR-4 and plastic material, very durable
● Simple and easy
● Working current: DC 3.3V / 13 - 25mA
● Idle current: DC 3.3V / 10 - 13mA
● Sleep current: less than 80uA
● Peak current: less than 50mA
● Working frequency: 13.56MHz
● Support cards: MIFARE1 S50, MIFARE1 S70, MIFARE Ultralight, MIFARE Pro etc.
● Application: various electronic products and DIY projects
Connections:
Sample code:
// Programa : RFID - Controle de acesso / cancela #include <SPI.h> #include <MFRC522.h> #include <Servo.h> Servo microservo9g; #define SS_PIN 10 #define RST_PIN 9 // Definicoes pino modulo RC522 MFRC522 mfrc522(SS_PIN, RST_PIN); // Leds indicadores acesso concedido ou negado int led_concedido = 5; int led_negado = 6; char st[20]; void setup() { pinMode(led_concedido, OUTPUT); pinMode(led_negado, OUTPUT); // Define que o servo esta ligado a porta digital 3 microservo9g.attach(3); // Move o servo para a posicao inicial (cancela fechada) microservo9g.write(90); // Inicia a serial Serial.begin(9600); // Inicia SPI bus SPI.begin(); // Inicia MFRC522 mfrc522.PCD_Init(); // Mensagens iniciais no serial monitor Serial.println("Aproxime o seu cartao do leitor..."); Serial.println(); } void loop() { // Aguarda a aproximacao do cartao if ( ! mfrc522.PICC_IsNewCardPresent()) { return; } // Seleciona um dos cartoes if ( ! mfrc522.PICC_ReadCardSerial()) { return; } // Mostra UID na serial Serial.print("UID da tag :"); String conteudo= ""; byte letra; for (byte i = 0; i < mfrc522.uid.size; i++) { Serial.print(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " "); Serial.print(mfrc522.uid.uidByte[i], HEX); conteudo.concat(String(mfrc522.uid.uidByte[i] < 0x10 ? " 0" : " ")); conteudo.concat(String(mfrc522.uid.uidByte[i], HEX)); } Serial.println(); Serial.print("Mensagem : "); conteudo.toUpperCase(); // Testa se o cartao1 foi lido if (conteudo.substring(1) == "D8 4B 12 22") { // Levanta a cancela e acende o led verde microservo9g.write(-90); digitalWrite(led_concedido, HIGH); Serial.println("Cartao1 - Acesso concedido!"); Serial.println(); delay(3000); microservo9g.write(90); digitalWrite(led_concedido, LOW); } // Testa se o cartao2 foi lido if (conteudo.substring(1) == "87 4B DC 8A") { Serial.println("Cartao2 - Acesso negado !!"); Serial.println(); // Pisca o led vermelho for (int i= 1; i<5 ; i++) { digitalWrite(led_negado, HIGH); delay(200); digitalWrite(led_negado, LOW); delay(200); } } delay(1000); }
Related products