This is a article shows how to interface a RFID Reader plug with Arduino.
RFID Reader Plug is a serial input device, this reads 125kHz RFID cards & sends the data to the controller connected to it.
int count = 0;
char input; // character array of size 12
boolean flag = 0; // flag =0
Serial.begin(9600); // begin serial port with baud rate 9600bps
count = 0;
while(Serial.available() && count < 12) // Read 12 characters and store them in input array
input[count] = Serial.read();
Serial.print(input); // Print RFID tag number
To get the above code to work connect the the RFID Reader plug with Arduino board’s serial port using 44A cable, use the above pictures as reference. Array ‘input’ in the above code contains the data read from the RFID card.
The analog keypad breakout, is designed using a network of resistors of particular values. Using this board will reduce the number of pins required for interfacing a keypad with a microcontroller or a processor as it gives a unique analog values for each button press which should just be read using an Analog in pin. Both 3×4 & 4×4 keypads can be used with the breakout. In this article we’ll see how to interface a 4×4 keypad with Arduino using the analog keypad breakout & the button pressed is displayed on the serial monitor.
Note:: You need to install the library to the Arduino IDE before using the code