Assignment:
Simple Code Lock.
Hardware: 4 pushbuttons and 2 LEDs.
Firmware: Some sequence of button pushes must be made in order to turn the ‘unlock’ LED on. If the sequence is incorrect, the ‘locked’ LED will turn on instead.

push-up / push-down schematic & circuit:

This slideshow requires JavaScript.

arduino_code

Advertisements