Code Monkey home page Code Monkey logo

perfect-safe's Introduction

Perfect safe

Perfect safe

There is a simple lock mechanism connected to servo which holds door closed. When you set correct passcode with dimmer, the door will be opened and lights inside the safe will be turned on. After you close the door, lock mechanism secure safe again.

Watch this presentation video: http://youtu.be/yedk1cwqeQw

Project page on littleBits site: http://littlebits.cc/projects/perfect-safe

Inside the safe

Technically there is Arduino littleBits module with custom code.

littleBits scheme

Passcode is read from dimmer module connected to analog input. User just rotate to correct position (number from scale 1..9) and wait for a while. There is internal buffer filled every 200 ms with number sampled from analog port. When sampled value is stable for 1.5 second, it is taken as one of the passcode number, stored in RAM and Arduino beeps through buzzer module (to give user feedback that number was taken).

After each given value passcode is compared to PASSWORD constant. If they are same, servo is set to HIGH state and lock mechanism open the door. In the same time, internal LED is turned on (because you want to see content of the safe).

There is also simple switch inside, so after you take content from safe and close the door, switch is turn on, Arduino turn off the ligths and secure lock with the help of servo.

Beware!

Servo module sometimes does not play nice with Arduino and older batteries (see this thread). If you will have troubles with vibrations, change first batteries with fresh one. If your troubles remains, contact littleBits support please.

perfect-safe's People

Contributors

msgre avatar

Stargazers

David MiZak avatar leandro avatar Glenn Mossy avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.