The module can be easily manipulated to erase and add faces with physical buttons. Please make sure you don't expose them. DON'T USE THIS PROJECT TO CONTROL SECURITY MEASURES AS LOCKS etc.
It utilizes the TX510 kit module that contains a 3d Camera, a display and a flash. This All-In-One kit can autonomously, register and then recognise faces. It communicates via Serial to an ESP and via ESPHome can be controllable from Home Assistant.
Some ESP32 boards can't power the TX510 when in Identification process so if you have strange behaviours make sure TX510 gets it's 5v or else try with another board
| TX510 | ESP |
|---|---|
| 5V | VCC |
| GND | GND |
| P2: USI1_SD0 | RX |
| P2: USI1_SCLK | TX |
Entities exposed:
- Switch for turning on/off:
DiplayBacklight- Onboard LED
Flash
- Buttons:
RegistrationandIdentificationof UsersQuery the number of UserIDsDelete a UserIDClear allthe registered facesQuery the TX510 versionBaud rate changeRestart MCU(ESP)Reboot TX510
- Text Sensors:
User IDthat recognised or registered. The UserIds start from 0 (first face registered = 0)Responcefrom the TX510 on every action
- Binary Sensor:
Presence sensorthat turns on when the identification process was successful
- Number:
User Inputwhere you can input UserIDs to delete or to change the Baud Rate from TX510
- Copy the .yaml and .h files in your ESPHome config folder
- Edit the .yaml file for your ESP settings
- Compile & Upload to the ESP
- Register a UserID (Face)
- Look in front the camera and press the
Register UserButton in HA or S1 button on the TX510 kit - You get on screen and ha responce:
Failedwith a reason orSuccesswith the UserID that has been saved (starting with 0)
- Look in front the camera and press the
- Identify a User
- Look in front the camera and press the
Start IdentifyButton in HA or S2 button on the TX510 kit - You get on screen and ha responce:
Failedwith a reason orSuccesswith the UserID that has been recognised
- Look in front the camera and press the
- Delete a UserID
- Input the UserID (0-999) in number entity
User Input - Press the
Delete UserIDbutton on HA - You get on screen and ha responce:
Successalways (even if the UserID doesn't exit, hardware limitation)
- Input the UserID (0-999) in number entity
- Clear all UserIDs
- Press the
Clear ALL Usersbutton on HA - You get on screen and ha responce:
Success
- Press the
- Query Sum and UserIDs saved on TX510:
- Press
Query Num. Reg. UserIDsButton on HA - You get a ha responce:
Sum:with the summary of all registered users and the UserIDs that have been registered
- Press
- Baud Rate change on TX510:
- Input the corresponding number for the Baud Rate from the list below, in number entity
User Input- 0 = 9600
- 1 = 19200
- 2 = 38400
- 3 = 57600
- 4 = 115200
- Press the
Change Baud Ratebutton on HA - You get on screen and ha responce:
Success
- Input the corresponding number for the Baud Rate from the list below, in number entity
This version runs on ESPHome firmware, you can check the version running on BTHome that could potientially run on battery
In folder resources you can find the English firmware + manuals and test tools
Please read the comments in the code.
