Pattern Lock on Arduino (as in Android)

Most of us are familiar with ‘Pattern lock’ which is one of the popular security features on Android phones. I wanted to create something similar for Arduino and here is the basic demo that I got working.

I used a Arduino Mega board and 3.2″ LCD TFT Module with 4 Wire resistive touch screen to build this small demo.

The application primarily has 2 screens. One for ‘setting the pattern’ (record mode) and the other for unlocking (lock mode). In both these cases, the screen is virtually divided into a 3×3 grid of hot spots which are displayed as circles on the LCD. In the record mode, the sequence of touchscreen interactions on these hot spots is captured and saved as a pattern. In the lock mode, the pattern drawn by the user is matched with saved pattern to the unlock application. I have tried to make it look like ‘Android pattern lock’ but I guess it is not yet there and needs refinements.

In the video below, you see the demo of unlocking using the pattern. The video also shows how one can record their own unlock patterns.

The code that I currently have is not very clean; will try to tidy up the code when I get some time.

Please post your feedback / suggestions in the comments.

13 thoughts on “Pattern Lock on Arduino (as in Android)

  1. Jordan

    I like your unlock app. Would there be anyway I could get the code? I am looking to create a hidden room in my basement that I am finishing and I would like to use this as the function for unlocking an electric strike. I appreciate your time. Thank you.

  2. Rokesh

    Hi Varma,

    Looking for your contact details as we have a requirement for a trainer on Adobe Flex.
    You can contact me on my mobile 9440357707.

    Thanks.

  3. arend vonk

    Hello Varma!

    I really like what u did here!.
    Even tryed it by myzelf. but i got some struggels with the point to point swipe. (few bugs)
    Is het possible that u send me your code so i can compare it with mine? šŸ˜€

    I hope to hear from you!
    Email: arendvonk@live.nl

    Greetings, arend

  4. kevin gonzalez

    me interesa el codigo para mi proyecto de fin de aƱo por favor contactar conmigo

  5. kevin gonzalez

    I am interested in the programming code for my project year-end please contact me

  6. Bill Mats

    Hi there.

    I really liked your project. I did something similar but struggle with the code.
    Can you send me your code for help?
    Thank you.

  7. Ramesh

    Thanks for your great presentation all about contents marketing and i am agree to your service. Some days ago i have gotten this related site and hare has so many online support.

  8. Jh

    Hi
    My name is jh.
    I was struggling with the code of arduino
    Which is for the pattern lock.
    Can i get your code??
    Thank you so much.

Leave a Reply

Your email address will not be published. Required fields are marked *