Today’s project is a passcode lock implemented with an ESP8266-EVB board from Olimex and the Redkea app. It’s designed to open and close the car sliding gate at home, but one can easily modify it for other types of locks. In my particular case, the motor for the sliding gate has an open/close input, which requires a pulse of about 500 ms to register a command. One pulse and the gate opens, another pulse and the gate closes.
Like my other Redkea projects, everything starts with the Redkea web page, where I will design the graphics interface of my app.
We have here 12 button widgets, ten numerical, a C button to correct any mistakes and an Open/Close button. I’ve also placed a text widget to show status messages from my lock.
The 12 button widgets are almost identical; each button triggers a custom function. An example is given below:
The text widget updates every 100ms:
Then we can pick up the generated code, and we can start developing our passcode lock.