Skip to content

mnaberez/mxlock

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

76 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MXLock

Photo

MXLock is a two-chip circuit that allows up to four mechanically locking keys (push-on, push-off) to be simulated using regular momentary key switches.

Many older computer keyboards have mechanically locking keys. For example, the Commodore 128 has three locking keys: SHIFT LOCK, CAPS LOCK, and 40/80. The MXLock circuit can be included on the PCB of replacement keyboard projects, such as those using Cherry MX keys, so that the entire keyboard can be made from momentary key switches.

Features:

  • Simulates up to 4 locking keys using an ATtiny214/414/814 and a 4066
  • Shows the on/off state of each key with LEDs
  • Remembers the lock states between power cycles (useful for mode keys like 40/80)
  • Resets the computer by pulling /RESET low if a key is held down

Hardware

The hardware/ directory in this repository contains the schematic and a PCB layout for the demonstration board pictured above. It can be used to test the MXLock circuit.

The circuit is intended to be integrated directly onto the PCB of a keyboard. Steve Gray's C128SX keyboard is an example of a keyboard using the circuit.

Firmware

The firmware is written in AVR assembly language. It can be assembled and flashed using open source software and inexpensive hardware. See firmware/ for the source code and instructions.

Other Circuits

A circuit to simulate locking keys with momentary ones is not a new idea. Here are some others:

MXLock differentiates itself by its low parts count (two chips for four keys) and its ability to remember the lock states between power cycles.

Author

Mike Naberezny

About

Replace locking key switches with momentary switches

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published