Code Lock

This application controls a solenoid to open the door. Access is only possible after entering a PIN-code during business hours.
  • Type "*1234" to unlock (if the pin is 1234)
  • Type "*#0" to leave the programming mode
  • Type "*#1" to enter the programming mode
  • Type "*#2" to change the pin-code
  • Type "*#3hhmm" to set the start time for openinghours
  • Type "*#4hhmm" to set the end time for openinghours
  • Type "*#9hhmm" to set the current time

Scheme

Download

Codelock.zip

Prepared for device: PIC16F876