an electrical generation system for a doorway including a door includes a lock mechanism movable between an engaged position and a disengaged position to allow the door to move between a closed position and an open position and a cam coupled to the door . a piezo - electric generator is coupled to the cam . the cam is rotatable with respect to the piezo - electric generator . the piezo - electric generator is operable to produce an electrical current in response to rotation of the cam with respect to the piezo - electric generator , and the electrical current has a frequency that is greater than the number of revolutions made by the cam with respect to the piezo - electric generator .