Weekend Programming Challenge – Week #71 Knock Lock


cat_004_knockknock

Problem:

Make code which implements knock pattern recognition for door open/close. There must be option to learn knock sequence.

Then every time when this sequence is implemented door lock opens and you signal this.

To simplify the lock we assume between knocks there will be only two intervals short and long.

For instance your code should be able to “learn” this sequence: knock-short-knock-short-knock-long-knock-long-knock-long-knock i.e. three fast and three slow knocks and this to open the door.

For knock detecting you can use SPACE key press for instance.

The rules:

You can code the solution in any programming language during the weekend and have to submit it to info@olimex.com latest on Sunday December 7th.

On Monday we will upload the solutions on GitHub https://github.com/OLIMEX/WPC

You can play with your real name or with nick if you want to be anonymous, we will not disclosure your personal info if you do not want to.

1 Comment (+add yours?)

  1. LinAdmin
    Dec 06, 2014 @ 17:25:13

    Haha, I really do like this bright idea!

    Reply

Leave a comment