Stormworks: Build and Rescue

Stormworks: Build and Rescue

Not enough ratings
ACI Keypad Lock Microcontroller MK2
   
Award
Favorite
Favorited
Unfavorite
Vehicles: Creative
Microcontrollers: Composite, Microcontroller
Tags: v1.0.31
File Size
Posted
Updated
72.150 KB
24 Jan, 2021 @ 8:38pm
24 Jan, 2021 @ 9:14pm
3 Change Notes ( view )

Subscribe to download
ACI Keypad Lock Microcontroller MK2

Description
A LUA based keypad lock that hides the entered digits and allows you to secure your doors, or anything else that may require a security code.

Use it for doors, use it for scuttles, or use it to launch a [RETRACTED].

Supports up to six digits! Set a digit to "-1" to disable a digit slot (note: setting a slot to "-1" will disable subsequent slots).

Setup
• Configure the desired PIN code in the controller's properties. Set a slot to "-1" to disable said slot. Note: All digits after a "-1" are ignored -- Although pointless, the PIN can be set to a length of zero digits which will require no PIN is entered to unlock else denied.
• Use the override input to configure buttons to open and close the door on the inside.
• Override composite input 1 opens the door bypassing the PIN, and input 2 resets and thus closes the door. (Note: The output can be inverted via a toggle). An instrument panel is recommended for the override buttons.

Instructions
• To unlock a door (or whatever is connected), enter the PIN code on the display, then press the "E" button to submit. The override unlock button will also unlock the system.
• To lock the door, press the "LOCK" button on the keypad when it appears. The reset override signal will also reset the keypad and lock the system.
• If the PIN flashes red and says "DENIED," then the code you entered was incorrect.
• If the PIN flashes green and says "UNLOCK," the controller has accepted the code and the boolean output is now active (or inactive if inverted).

Todo:
• Make PIN code editable in-game; a PIN edit mode
• Option to draw entered PIN centered


A complete rewrite of the ACI Keypad Lock Microcontroller MK1.
Differences:
• You can enter digits faster than the MK1 thanks to a pulse gate.
• Supports PIN codes of any length up to six digits!
• Can set master PIN to a zero-length PIN... and then question your choices...
Popular Discussions View All (1)
1
28 Sep @ 8:42pm
PINNED: Color Themes
Peekofwar
5 Comments
Peekofwar  [author] 28 Sep @ 8:09pm 
SkyLiner2007
You could probably do that manually with some fancy external logic... Though I could implement an automatic lock feature that locks the door automatically after a delay.

I would have to look at the logic and programming of the microcontroller and come up with a good way to make the delay configurable.

The overrides are intended to be used from the inside of the secure area to allow the user to both lock and unlock the door from inside. They can of course also be used for remote overrides. If I do add an optional timeout feature, I would probably also consider programming it to stay unlocked while the override input is active, and only start the timeout timer once the override input has gone low.

Keep in mind though, non-electronic doors won't be able to be closed automatically.
SkyLiner2007 25 Sep @ 2:08pm 
Could you add a time limit on the "lock" screen after you've been granted access, especially for when you have an override attached?
Peekofwar  [author] 1 Mar, 2021 @ 2:57pm 
PS: There is a video attached at the top. I actually hook one up in the video using an instrument panel.
Peekofwar  [author] 1 Mar, 2021 @ 2:56pm 
@vinceEde123
Either use an instrument panel, which can give you up to four button in one block, or use a boolean to composite adapter.
Specerijenman123 1 Mar, 2021 @ 6:27am 
I dont get how the override works bevause buttons have a on off signal and not a composite