The EM-18 RFID module is a low-cost device used for reading RFID tags. It operates at a frequency of 125 kHz and can read tags within a range of 5-10 cm. The module outputs the tag data in serial format, making it easy to interface with microcontrollers and other digital systems. This makes it an ideal choice for applications such as access control, inventory management, and asset tracking.
Parameter | Value |
---|---|
Operating Voltage | 4.5V - 5.5V |
Operating Current | 50mA |
Frequency | 125 kHz |
Read Range | 5-10 cm |
Output Format | Serial (TTL) |
Baud Rate | 9600 bps |
Pin Number | Pin Name | Description |
---|---|---|
1 | VCC | Power supply (4.5V - 5.5V) |
2 | GND | Ground |
3 | TX | Serial data output (TTL level) |
4 | RX | Serial data input (TTL level, usually not used) |
5 | ANT | Antenna |
6 | LED | LED indicator (active low) |
7 | BEEP | Buzzer output (active low) |
8 | SEL | Mode selection (usually connected to GND) |
**Connections:**
- EM-18 VCC to Arduino 5V
- EM-18 GND to Arduino GND
- EM-18 TX to Arduino RX (Pin 0)
#include <SoftwareSerial.h>
// Create a software serial object to communicate with the EM-18 module
SoftwareSerial rfid(2, 3); // RX, TX
void setup() {
Serial.begin(9600); // Initialize serial communication with the computer
rfid.begin(9600); // Initialize serial communication with the EM-18 module
Serial.println("RFID Reader Initialized");
}
void loop() {
if (rfid.available()) { // Check if data is available from the EM-18 module
String tag = "";
while (rfid.available()) {
char c = rfid.read(); // Read the incoming data
tag += c; // Append the data to the tag string
}
Serial.print("Tag: ");
Serial.println(tag); // Print the tag data to the serial monitor
}
}
Q: Can the EM-18 module read multiple tags simultaneously? A: No, the EM-18 module can only read one tag at a time.
Q: What is the maximum read range of the EM-18 module? A: The maximum read range is approximately 10 cm, depending on the tag and environmental conditions.
Q: Can the EM-18 module write data to RFID tags? A: No, the EM-18 module is a read-only device and cannot write data to RFID tags.
Q: What type of RFID tags are compatible with the EM-18 module? A: The EM-18 module is compatible with 125 kHz RFID tags.
This documentation provides a comprehensive guide to using the EM-18 RFID module, covering its technical specifications, usage instructions, and troubleshooting tips. Whether you are a beginner or an experienced user, this guide will help you effectively integrate the EM-18 module into your projects.