how to get HEX code or UID code from RF tag in tamil
codings for this video
/*
PINOUT:
RC522 MODULE Uno/Nano MEGA
SDA D10 D9
SCK D13 D52
MOSI D11 D51
MISO D12 D50
IRQ N/A N/A
GND GND GND
RST D9 D8
3.3V 3.3V 3.3V
*/
#include <MFRC522.h>
#include <SPI.h>
MFRC522 rfid(10,9); //ss pin(SDA pin) and rst pin
void setup() {
Serial.begin(9600);
SPI.begin();
rfid.PCD_Init();
Serial.println("scaning");
}
void loop() {
if(!rfid.PICC_IsNewCardPresent())
{
return;
}
if(!rfid.PICC_ReadCardSerial())
{
return;
}
rfid.PICC_DumpToSerial(&(rfid.uid));
}
*******************************************************************************
copy the codings and upload
Comments
Post a Comment