SPhocsLock - Simple Phone Controlled Strike Lock - Cheapest Solution

You are looking for a cheap and easy solution to open the door(or whatever) with your phone ?

Here it is:

Sometimes people forget to take the latchkey but they never forget their cellphone so as i.
What could be better than open the door with the cellphone.
Of course i wanted a simple and affordable solution that works with almost any phone and there is no app needed.
The phone must only support audio via bluetooth. The two main parts are an audio bluetooth dongle und a small arduino microcontroller.

Teacher Notes

Teachers! Did you use this instructable in your classroom?
Add a Teacher Note to share how you incorporated it into your lesson.

Step 1: How It Works

I'm using the audio via Bluetooth function that most of the modern cellphones/smartphones are supporting.
You have to pair the phone one time with the Bluetooth dongle and than everytime you come close the door/dongle the two devices will automatically connect. What happens than ?
A small audio file that was copied to the phone will be played. On Android devices you can place a link Icon on the start screen you just press the icon and the audio file will be played.
The file contains a short and fast morse code. The arduino receive this from the Bluetooth dongle and check if the code is ok, after that a relay will close the circuit from the lock for a short time and voila ! The door is open .

Step 2: What You Need

- Bluetooth audio dongle

- Arduino pro mini 5V

- USB Adapter for programming the arduino

- relay 5VDC/2A

- mosfet BS 108

- voltage regulator 7805

- 5x diode 1N4001

- resistors: 2x 100k, 1k, 10k

- caps: 2x 10nF, 4,7nF, 2x 220µF, 10µF

- power supply/transformer output 8-12V AC

- i use a stripboard

- and of course a strike/electrical lock and a phone !

Step 3: Schematic

i also attached a pdf

Step 4: Arduino Code

Install the latest Arduino IDE and connect the usb-progger with your pc/arduino.

Now you can upload the attached files.

If you have no experience in programming Arduino, look at this guide.

In the SPhocsLock.ino you find these lines where to change the password and pin configuration:


#include "MorseEnDecoder.h"
const byte morseInPin = 2;  
const byte DoorPin = 13; 
const char password[ ] = "TEST";  // <----------------- Password 
const long OpenTime = 1000 ;// in ms 
const byte wpm = 50; 
// Instantiate Morse objects
morseDecoder morseInput(morseInPin, MORSE_AUDIO, MORSE_ACTIVE_HIGH);

Step 5: The "morse Code Audio File"

You can either install a programm like this or use this website to create the audio file.

Choose custom settings with 50 wpm and 1khz.

A shorter password generates a shorter audio file !!!

Copy the file on your phone in a seperate folder so the audio player will only play this one.

On Android you can create a shortcut icon (with a file explorer) at the start screen.

And don't forget to change the password :-)

Remote Control Contest

Participated in the
Remote Control Contest

Home Technology Contest

Participated in the
Home Technology Contest

Share

    Recommendations

    • Indoor Lighting Contest

      Indoor Lighting Contest
    • Make It Fly Challenge

      Make It Fly Challenge
    • Growing Beyond Earth Maker Contest

      Growing Beyond Earth Maker Contest

    7 Discussions

    0
    None
    Spanish_Mike

    2 years ago

    Hello, our code is not funtioning properly, I thought we fixed the little bugs but we may have caused more, would you know anything about missing prexisting problems or maybe explain to me how we would need to change the code as described in this project?

    0
    None
    Gelstronic

    5 years ago on Introduction

    yes of course, it'll work with any arduino which has at least one analog pin and one digital pin !

    0
    None
    aghenai

    5 years ago on Introduction

    Will it work with the arduino uno, or we absolutly need Arduino pro mini?
    Please answer!:)

    0
    None
    MarjanT

    5 years ago on Introduction

    Hello, I guess, this can be used with different codes (for different people/phones) on Android, iPhone, as well as Windows phone. Is this correct? Thank you for posting this!

    1 reply
    0
    None
    GelstronicMarjanT

    Reply 5 years ago

    of course you can use different phones and different passwords

    0
    None
    wilgubeast

    5 years ago on Introduction

    Nice! I dig the hand-drawn schematic. It's easy to read and probably a zillion times faster than trying to fritz it out.