Like the moon,
the garage door rises.
Like the moon,
the garage door sets.
(it can also stop in the middle)
-ancient proverb.
Documentation for CCHS garage door. Intended to:
- Allow recreation of our card reader implimentation (e.g. for backdoor)
- Allow future committee members to manage member access cards and review entries to CCHS.
- Connect to the CCHS wifi.
- Swipe the garage door admin card, this will reboot the controller and prompt it to run the web-portal.
- In your browser, enter the IP address 192.168.0.40
- The ESP-RFID web-portal should load. Enter the password. The password may be found in the passwords file accessable by the CCHS committee members.
- Congratulations, you are now in the settings/configurations/logs!
- Check that the new user has signed a CCHS "Security and After-Hours Agreement."
- Access the web-portal.
- Navigate to Menu>Users>Add new user.
- A blank 'card-details' element will pop up in the UI.
- Go and swipe a card on the card reader. The card's details will load into the UI element.
- Fill in the name of the card-holder-to-be, for access logging purposes.
- Press 'save changes'.
- Issue the card to the newest card-carrying member of the CCHS
- Navigate to Menu>Logs>Access Log.
- Review as you like.
- Navigate to Menu>Backup and Restore.
- Press 'Backup User Data' & 'Backup Settings'
- Store securely, please.
The ESP-RFID provides the option to turn off the web-portal, meaning that the access system cannot be discovered by presumed bad-actors. It is a security recommendation of the ESP-RFID group to turn off the web portal. We have enabled this 'web-portal turn off', with a 10 minute 'sleep' timer.
If turned off, the ESP-RFID controller can be restarted by swiping a card with 'admin' privileges. There is an admin card in the CCHS safe.
When the portal is active, the on-board LED is lit solidly. When the portal is deactivated, the on-board LED blinks.
To turn on/off the web-portal with timer:
- Navigate to Menu>Settings>Wireless network>Auto Disable Wifi.
- Select the time limit of choice, or select 'never'.
We encountered difficulties when the last number of the IP address of the ESP-RFID was low. The working hypothesis is that multiple devices were given the same IP adress, meaning we could not access the web-portal. We have given the ESP-RFID a static IP address.
How to change the static/assigned IP address:
- Access the router's web-portal: 192.168.0.1
- The router's username and password may be found in the passwords file accessable by CCHS committee members.
- (Do the wifi stuff, go to advanced>network>LAN settings>scroll down>address reservation>add) This has to be done once you get the MAC address of the ESP-RFID.
For the brains, we are using the ESP-RFID project, specifically the 'blue-board' version. For the actual card-reader, we were using the Adafruit PN532 NFC/RFID controller, but condensation shorted that one to an early grave, so now we are using a MFRC522. It is important to set the approriate interface/card-reader type in the web-interface (Settings>Hardware Settings>Reader Type>MFCR255, in our present instance, after condenstation blew up our $80 Adafruit PN532 and John came to the rescue with his electronics stash). Learning from this, we will either conformal coat or resin-pot the new reader.
The garage door (insert manual here) contains a 'dry-strike' contact. When the two terminals are connected, the garage door triggers with 'up', 'stop', and 'down' triggers. The nearest appropriate 12V wall-wart was employed to power the ESP-RFID board. A 12V supply is definitely needed, as the on-board relay does not engage if not so apporpriately powered. The wall wart was able to output voltages per a sliding switch on the terminal side of the body. The power output of the 9V and 12V settings were tested, and the '9V' setting provided 12V presumably due to low power load on the transformer. The 9V setting was selected and taped over, and was found to still be able to energize the ESPRFID's relay. A replacement 12V wall wart may be welcome, in order to free up a reasonably nice wall wart that could be used for other CCHS projects.
The ESP-RFID controller and card-reader were connected by a six core wire. The SPI protocol was used.
The garage door's contacts were wired to the common and 'normally' open terminals of the controller's relay.
The 12V power supply's terminals were connected to the '12V' and 'GND' terminals on the ESP-RFID's controller.
All of these wires are terminated with crimped ferrels, as a point of pride.
The terminals of the card-reader are not a point of pride, however, consisting of bent Dupont connectors soldered to a socket connecter to a block with screw-down terminals. As they say, there's nothing more permanent than a quick fix.
The ESPRFID board was mounted to a laser-cut acrylic board with another acrylic cover and thermoformed acrylic side/dust cover. The board footprint was exported from the BlueBoard ESPRFID's GITHUB's GERBER files in KiCard to an SVG for use in the 'design'. The design's SVG is available in the repository. The housing was screwed into a wooden stub that was already in place in the drilled-out motar by the garage door controller.