Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implementing open/close button #225

Merged
merged 4 commits into from
Jan 18, 2019
Merged

Implementing open/close button #225

merged 4 commits into from
Jan 18, 2019

Conversation

donatmarko
Copy link
Contributor

@donatmarko donatmarko commented Jan 17, 2019

This pull request implements the possibility to connect a button to the microcontroller as an open/close button.
It is useful when the device is connected to a latching electromagnetic lock in which case the lock can't be circumvented - the magnet must be disabled to open the door - when someone wants to leave the room.

I can imagine another scenario for the usage of this button:
Given an office where we usually have lots of guests and this room is protected by ESP RFID.
To avoid walking to the door and opening it manually every time when someone knocks (without having RFID tag), we may place one or even more buttons near our workplaces to allow us to let the guests in without the need to walk to the door.

It utilizes the Bounce2 (https://github.com/thomasfredericks/Bounce2) library to properly debounce the button. The input is configured to use the internal pull-up resistor, therefore we consider the low state of the button as pressed.

Every time the button is pressed, a log entry is being created in the Access Log.

@omersiar
Copy link
Collaborator

Nicely done. I am reviewing it right now.

@omersiar omersiar merged commit 7d46bf3 into esprfid:dev Jan 18, 2019
@donatmarko donatmarko deleted the dev-button branch January 20, 2019 23:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants