4
3. Demonstration
Here we show how to read RFID information using the Grove - 125KHz RFID Reader. Connect
Grove - 125KHz RFID Reader to UART of Grove - Base Shield.
3.1
Uart Mode (Jumper set to the left two pins)
You would need to select the jumper to "U" to enter this mode, and the setting is: 9600bps, N, 8,
1, TTL output
// link between the computer and the SoftSerial Shield
//at 9600 bps 8-N-1
//Computer is connected to Hardware UART
//SoftSerial Shield is connected to the Software UART:D2&D3
#include <SoftwareSerial.h>
SoftwareSerial SoftSerial
(
2
,
3
);
unsigned
char
buffer
[
64
];
// buffer array for data receive over serial
port
int
count
=
0
;
// counter for buffer array
void
setup
()
{
SoftSerial
.
begin
(
9600
);
// the SoftSerial baud rate
Serial
.
begin
(
9600
);
// the Serial port of Arduino baud rate.