

The HLK-FM225 is a compact and efficient face recognition module developed by HiLink. It leverages advanced algorithms to detect and recognize human faces with high accuracy and reliability. Designed for real-time processing, the module performs well under various lighting conditions, making it ideal for a wide range of applications.








The HLK-FM225 is designed to deliver robust performance while maintaining a compact form factor. Below are its key technical details:
| Parameter | Value |
|---|---|
| Manufacturer | HiLink |
| Part ID | FM225 |
| Operating Voltage | 5V DC |
| Operating Current | ≤ 200mA |
| Communication Interface | UART (TTL) |
| Baud Rate | Configurable (default: 115200) |
| Recognition Speed | ≤ 1 second |
| Recognition Distance | 0.3m to 1.5m |
| Operating Temperature | -20°C to 60°C |
| Storage Capacity | Up to 500 face templates |
| Dimensions | 40mm x 40mm x 10mm |
The HLK-FM225 module features a 4-pin interface for easy integration into various systems. Below is the pinout description:
| Pin Number | Pin Name | Description |
|---|---|---|
| 1 | VCC | Power supply input (5V DC) |
| 2 | GND | Ground |
| 3 | TX | UART Transmit (data output) |
| 4 | RX | UART Receive (data input) |
VCC pin to a 5V DC power source and the GND pin to ground.TX pin of the module to the RX pin of your microcontroller, and the RX pin of the module to the TX pin of your microcontroller.Below is an example of how to interface the HLK-FM225 with an Arduino UNO for basic face recognition functionality.
| HLK-FM225 Pin | Arduino UNO Pin |
|---|---|
| VCC | 5V |
| GND | GND |
| TX | RX (Pin 0) |
| RX | TX (Pin 1) |
#include <SoftwareSerial.h>
// Define RX and TX pins for SoftwareSerial
SoftwareSerial faceModule(10, 11); // RX = Pin 10, TX = Pin 11
void setup() {
Serial.begin(9600); // Initialize Serial Monitor
faceModule.begin(115200); // Initialize HLK-FM225 communication
Serial.println("HLK-FM225 Face Recognition Module Initialized");
}
void loop() {
// Check if data is available from the module
if (faceModule.available()) {
String data = faceModule.readString(); // Read data from the module
Serial.println("Data from HLK-FM225: " + data);
}
// Send commands to the module (example: enroll a face)
if (Serial.available()) {
String command = Serial.readString(); // Read user input from Serial Monitor
faceModule.println(command); // Send command to the module
}
}
SoftwareSerial if the Arduino UNO's hardware UART (pins 0 and 1) is already in use.10 and 11 in the SoftwareSerial definition with your preferred pins for RX and TX.No Response from the Module
Recognition Fails Frequently
Module Restarts Unexpectedly
Data Corruption in Communication
Q1: Can the HLK-FM225 store multiple face templates?
A1: Yes, the module can store up to 500 face templates in its internal memory.
Q2: Can I use the HLK-FM225 outdoors?
A2: While the module operates in a wide temperature range, avoid direct sunlight and extreme weather conditions for optimal performance.
Q3: How do I reset the module to factory settings?
A3: Send the appropriate reset command via UART as specified in the module's command set documentation.
Q4: Is the module compatible with Raspberry Pi?
A4: Yes, the HLK-FM225 can be interfaced with Raspberry Pi using its UART interface.
By following this documentation, users can effectively integrate and utilize the HLK-FM225 Face Recognition Module in their projects.