How to write data in RFID tag using 4x4 keypad

hello everyone, i wanted to one kit of rfid reader and writer by using 4x4 keypad, RC 522, 16x2 LCD and ardiuno board. i completed keypad to lcd programming job but i getting difficulty to make program for data showing on lcd to put in rfid tag. please guide me..

below code for to put only numeric keypad value in lcd display.

#include <LiquidCrystal_I2C.h>
LiquidCrystal_I2C lcd(0x27, 20, 2); // set the LCD address to 0x27 for a 16 chars and 2 line display

#include <Keypad.h>

const byte ROWS = 4;
const byte COLS = 4;

char keys [ROWS] [COLS] = {
{'1', '2', '3', '+'},
{'4', '5', '6', '-'},
{'7', '8', '9', '*'},
{'C', '0', '=', '/'}
};
byte rowPins[ROWS] = {7,6,5,4};
byte colPins[COLS] = {A0,A1,A2,A3};

Keypad myKeypad = Keypad( makeKeymap(keys), rowPins, colPins, ROWS, COLS );

boolean presentValue = false;
boolean next = false;
boolean final = false;
String num1, num2;
int answer = 0;
char op;

void setup()
{
lcd.init();
lcd.backlight();
lcd.setCursor(3,0);
lcd.print("Maker UNO");
lcd.setCursor(3,1);
lcd.print("RF ID READER");
delay(3000);
lcd.clear();
}

void loop() {
char key = myKeypad.getKey();

if (key != NO_KEY && (key == '1' || key == '2' || key == '3' || key == '4' || key == '5' || key == '6' || key == '7' || key == '8' || key == '9' || key == '0'))
{
if (presentValue != true)
{
num1 = num1 + key;
int numLength = num1.length();
lcd.setCursor(0, 0);
lcd.print(num1);
}
}
else if (key != NO_KEY && key == '='){
lcd.clear();
lcd.setCursor(16, 1);
lcd.autoscroll();
lcd.print(num1);
lcd.noAutoscroll();
}

else if (key != NO_KEY && key == 'C') {
lcd.clear();
presentValue = false;
final = false;
num1 = "";
num2 = "";
answer = 0;
op = ' ';
}
}

Please use the IDE autoformat for the code and use the code tag symbol when posting.

Look for example code for the RF reader and make code for just reading the RC 522.

i already checked example but stiil dont undersand how write data using 4x4 kepad.

Reading inputs is one part. Writing data is another part.
Check the datasheet and application notes for the RF reader, if You want to write to the RC522. I've never tried that and I've no code to give You.

There's no attempt for any writing in You code.

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.