The RDM630 library enables the Arduino to easily read EM4100-compatible RFID-tags using the RDM630 RFID reader module.
Needed hardware for this demo
- Arduino compatible board
- RDM630 RFID reader
- EM4100 compatible tag
How to connect
- Connect 5V & GND of the module to the corresponding pins of the Arduino
- Connect the TX pin of the module to pin 6 of the Arduino.
- You could use another pin of the Arduino, but then you'll have to change the initialisation of the rfid object in the demo code below.
- If you're using a 3V3 Arduino, you'll have to use extra level shifting. A pull-up resistor between the 3V3 and the Arduino-pin, together with a diode between the Arduino-pin (anode) and the RDM630-TX pin (cathode) will do the trick.
How to program
The library can be downloaded from here.
- Create a folder named "RDM630" (without the parentheses) in your Arduino-libraries folder.
- Copy rdm630.h & rdm630.cpp to that folder.
- Create a new Arduino-sketch
- Import the "RDM630"-library into your sketch.
- Copy/paste the following demo application to your sketch
- Upload & run
rdm630 rfid(6, 0); //TX-pin of RDM630 connected to Arduino pin 6
Serial.begin(9600); // start serial to PC