Show Posts
Pages: [1] 2
1  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: March 16, 2010, 02:11:41 pm
Thanks, you're right, we're not thinking about a relay.
2  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: March 16, 2010, 07:20:03 am
You mean a Reed relay switch? Yes, you could use that too, but a Hall effect switch is simply what I have on hand. You might also want to modify the circuit and code a bit if you want to use a Reed relay.

For your question: Yes, but you might need lots of code and you'll get lots of wrong readings. It would be more accurate to use a laser and a photocell on a step or two, or you could use a rangefinder, there are lots of solutions.
3  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 27, 2010, 03:18:59 pm
I probably won't be doing any changes to the code for about 2 or 3 weeks, that's when my arduino stuff will arrive from SFE.
4  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 24, 2010, 07:30:09 am
Quote
I have been working on some code for a similar (in principle) device that uses a pattern of turning the door knob as an input method. It is currently binary based for simplicity (a turned door handle corresponds to a 1 and a not turned knob a 0, this works because it is a time-based program) but I am working on a method that uses the knob as a rotary combination lock.

Now, THAT would be cool!

Quote
And the serious use; my phone can be my key. Hard to copy if the code resides embedded in some kind of noise. Access to the file mght be needed. Doable?

Yes, that could work great, you can record a very complex series of about 25 knocks and then save it on the arduino and your phone. On your phone you can just use a MP3 file. You can play it back quickly, like 5 knocks a second. In 5 seconds you can unlock the door.
5  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 23, 2010, 01:16:43 pm
Detecting a beat is relatively easy, it can make a cool project.
6  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 23, 2010, 12:43:40 pm
Quote
instead of knockings, it would be fun with a recorded noise in mp3 format to unlock. or music, bad taste wouldnt get in... nofx:open, elvis:closed.

 smiley-grin
7  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 22, 2010, 03:00:11 pm
[size=16]UPDATE:[/size]

[size=14]Forgot to mention that my code also does locking on the right knock.[/size]

[size=16]VERSION 0.3:[/size]

[size=14]-Locking Button
-Smarter LCD Line Output[/size]

Link: http://www.mediafire.com/download.php?jwxzjwn1jdy
8  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 22, 2010, 02:56:20 pm
Quote
It is fine for a temporary project it's just that you could have done it on a normal arduino so a lot of people will try to flame you for that  Grin

The mega is great though cos it gives you more program space.

I do like the project though. Why did you detect whether the door is open or not?

Mowcius

Yeah, I'd only make a project permanent if it was really useful. Overall I like the mega because of more flexibility, you're right about using a duemilanove or just the atmega for a more permanent solution. But it won't do any harm to use the mega, 'cos I don't plan to get another arduino, it's just a prototyping hobby for me.

I detected whether the door was open or not just because it would add a bit more action to the LEDs and the LCD, it's cool to see an LED light up and a line appear on the LCD when the door closes or opens. I've also coded it to not turn the lock when the door is open, I forgot to mention that I added a secret knock locking function and not just unlocking like the Steve Hoefer original code did. Updating...  :smiley
9  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 22, 2010, 07:35:27 am
Quote
Maybe not such a positive thing.

Looks good though. I hope you have fun with your arduino  Wink

Mowcius

Why is using the Mega a bad thing? I would understand that if this project was more permanent, but please motivate.
10  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 21, 2010, 04:34:25 am
I'm gonna update the code in a few minutes to use the UART and not the SoftwareSerial library.

EDIT: Done.
11  Forum 2005-2010 (read only) / Syntax & Programs / Re: MODIFIED - SECRET KNOCK DOOR LOCK on: February 21, 2010, 04:21:19 am
For some strange reason, you can't click on the download link, just copy and paste it into your browser window and you won't get a 403 error.

EDIT: Fixed
12  Forum 2005-2010 (read only) / Syntax & Programs / MODIFIED - SECRET KNOCK DOOR LOCK on: February 21, 2010, 04:14:32 am
Hi all, I've done a bunch of modifications to Steve Hoefer's code for his Secret Knock Detecting Door Lock. This is the changes that I've made:

-Added a Hall Effect Sensor to determine if the door is open or closed.
-Swapped the gear motor with a servo.
-Added a Serial LCD feedback screen.
-Added a yellow LED.
-Added a bunch of extra features.
-Used the Arduino Mega.

[size=14]Fritzing Diagram:[/size]





[size=14]THE CODE:

Version 0.1: http://www.mediafire.com/?ghww3o5qde2
Version 0.2: http://www.mediafire.com/?nzd4yjojnzm (Easier to read code, UART LCD Interface)

[/size]

[size=14]MORE FILES ARE AVAILABLE AT http://mediafire.com/knocklock[/size]

This will be the first project I'm gonna build when my Arduino arrives from SparkFun.

If there is something wrong with the wiring or code, please post it here. My code really needs to be refined a bit too.

I might also connect the servo's power pin directly to the input voltage from my AC/DC adapter.


Please post any comments or advice.  smiley-wink
13  Forum 2005-2010 (read only) / Syntax & Programs / Re: uart problem can't receive on: February 21, 2010, 07:32:24 am
Maybe try storing the decimal in an integer variable, then sending the variable over serial.
14  Forum 2005-2010 (read only) / Development / Re: WIFI into Arduino Family on: February 22, 2010, 10:55:13 am
The WiShield 2.0 is $55, does anyone know what kind of range to expect from this?
15  Forum 2005-2010 (read only) / Exhibition / Re: LCDserial Sheild on: February 21, 2010, 07:56:15 am
That's a very cool project, Mark.
Pages: [1] 2