The ID12 is a compact RFID (Radio-Frequency Identification) module that provides a simple and efficient way to integrate RFID technology into various electronic projects. RFID technology uses electromagnetic fields to automatically identify and track tags attached to objects. The ID12 module is particularly useful in applications such as access control systems, asset tracking, and identification.
Pin Number | Name | Description |
---|---|---|
1 | VCC | Power supply (2.8V to 5V DC) |
2 | /RES | Reset pin (active low) |
3 | GND | Ground connection |
4 | TX | Serial data output (TTL level) |
5 | AN | Analog output (not used in digital mode) |
6 | D0 | Format selector (ground for ASCII, VCC for Wiegand) |
7 | D1 | Format selector (ground for ASCII, VCC for Wiegand) |
8 | /FMT | Format selector (ground for 9600bps, VCC for 19200bps) |
9 | SHD | Shield ground (connected to the module's shield) |
10 | N/C | Not connected |
Q: Can the ID12 read multiple tags at once? A: No, the ID12 is designed to read one tag at a time.
Q: What should I do if the module is not reading tags? A: Check the power supply, ensure the antenna is not obstructed, and verify that the tags are compatible and not damaged.
Q: How can I extend the read range of the ID12? A: The read range is largely determined by the module's design and the tag's antenna. Using tags with larger antennas can improve the read range.
#include <SoftwareSerial.h>
SoftwareSerial RFID(10, 11); // RX and TX
int data = 0;
void setup() {
RFID.begin(9600); // Start serial to RFID reader
Serial.begin(9600); // Start serial to PC
}
void loop() {
if (RFID.available() > 0) {
// Check for data from RFID reader
data = RFID.read(); // Read the data
Serial.print(char(data)); // Print the data to the Serial monitor
}
}
Note: This example assumes that the ID12 module is set to ASCII output mode at 9600bps. Adjust the pin numbers and settings as needed for your specific setup.