As it's usually not very secure to have "relay control" inside of the protected space, it was very interesting challenge to "wire" lock controller, in this case Shelly 1 module and ESP-RFID Relay Board through MQTT broker and make the reader "trigger" the open topic in case the swiped card or entered pin has access right.
- You can also use other relay boards which have clear and simple MQTT control with option for auto off),
- ESP-RFID Board version without relay is even more affordable.
Basic steps would be:
1. Get ESP-RFID Relay Board with latest firmware
2. Get Shelly 1 or some other Tasmota based relay boards which could be run with 12VDC or they have isolated switching relay, not the one which has directly powered terminals.
3. Get electric lock which around 12VDC/VAC
4. Wire everything (there is really nothing smart about that, it's very clear from the default documentation how to do that)
5. Set MQTT brokker (I highly suggest free version, https://cloudmqtt.com)
6. Set ESP-RFID Relay Board and Shelly to connect to your MQTT broker.
7. Set Lock topic and message in your ESP-RFID Relay Board to send appropriate MQTT message which turns on your shelly board.
8. Set default off in your shelly 1 to be what ever time you need for the lock to be open before closing it. Usually it's 3 to 5 seconds.
9. Add users to your ESP-RFID Relay Board through web interface.
10. Once you swipe card or enter the pin, your lock will be open :D for what ever period you set. :D
That's about it.
Please, check the demonstration in this video:
Comments