More advanced LCD Four Digit Door Lock.

Tips, Tricks and methods for programming, learn ways of making your programming life easier, and share your knowledge with others.

Moderators: Benj, Mods

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2052 times
Been thanked: 2960 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby medelec35 » Tue Jan 08, 2013 9:54 pm

No problem Dan,
Not sure how good it is, but I did an alarm system with enable/disable different zones. See:
viewtopic.php?f=29&t=6583
This was created in 2009 so It may not be that good?
Here is burgler another alarm
viewtopic.php?f=36&t=6537&p=22558&#p22558

If I remember correctly, the top link was a modified version of the bottom link.

Martin
These users thanked the author medelec35 for the post:
Derrihj (Tue Jul 10, 2018 9:30 am)
Rating: 5.88%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

dan@ttl
Posts: 12
Joined: Thu Dec 06, 2012 2:39 am
Has thanked: 1 time
Been thanked: 3 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby dan@ttl » Wed Jan 09, 2013 10:05 pm

Hi Martin,

Did a unicode version using Lock_State variable. The simulation works, but then I realized you usually turn-off the alarm when you are already inside. How do you implement an entry delay? This is turning out to be a full-pledge home alarm system. Appreciate your comments. Cheers.....dan
Attachments
lock_unicode_limit_v2.fcf
(36.84 KiB) Downloaded 249 times

SILVESTROS9
Posts: 70
Joined: Wed Aug 03, 2016 10:45 pm
Has thanked: 21 times
Been thanked: 11 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby SILVESTROS9 » Sat Jul 15, 2017 1:50 pm

hello to all!
Is there a version for FLOWCODE7? Is it possible to add more digits and store at internal eeprom? Thanks!

Derrihj
Posts: 5
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 2 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby Derrihj » Mon Jul 09, 2018 1:12 pm

I built this circuit on a PCB and when i run it keeps on typing numbers wrong password by its self when I have even not entered anything on the keypad coz where it says enter code it keeps on entering numbers by its self.

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2052 times
Been thanked: 2960 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby medelec35 » Mon Jul 09, 2018 1:33 pm

Hi Derrihj,
That sounds like it's hardware related to the keypad.
Have you included the resistors as shown in the Keypad datasheet?
Also check continuity between keypad and microcontroller and the connections within flowchart match hardware.

Can you post the full circuit if still facing issues?
These users thanked the author medelec35 for the post:
Derrihj (Tue Jul 10, 2018 9:31 am)
Rating: 5.88%
 
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

Derrihj
Posts: 5
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 2 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby Derrihj » Mon Jul 09, 2018 9:50 pm

Oh! Thanks friend for your help I had not included the resistors so when I added pull down resistors on rows it stopped typing numbers by its self it is now working but I still have one problem and is on keypad column 2 that is button number 2,5 and 8 they take long to respond they only respond after very many clicks yet zero (0) responds but in flowcode all keypad works well

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2052 times
Been thanked: 2960 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby medelec35 » Mon Jul 09, 2018 11:02 pm

Are you using a modified flowchart, from the original one posted?
If so, can you post that and a full circuit diagram including crystal and caps (if not using internal osc).
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

Derrihj
Posts: 5
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 2 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby Derrihj » Tue Jul 10, 2018 2:22 am

I have attached the flowchart but I modified it again into a car fuel locker and opener with two relays the keypad the owner of the car to move with it in pocket and to be inserted onto the circuit before engine start to enter password this is to avoid unauthorized password keypad entry I also I had put pull down resistors on the columns which I removed after your help from the PDF u sent to me which were connected in a different way tho I now connected only the row pull down resistors and completely removed the column resistors which were slowing keys entry on the keypad.The problem is column 2 only responds after very many clicks or even refuse completely but zero works as I uses it in code to stop the alarm and enter code.
Attachments
FlowCode.zip
My flowchart and PCB
(66.35 KiB) Downloaded 5 times

Derrihj
Posts: 5
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 2 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby Derrihj » Tue Jul 10, 2018 7:43 am

Am raising money to buy licence for the new flowcode 8 have u used it yet and seen its with no bugs or its better to wait for some new emprovements yet to come?

User avatar
medelec35
Valued Contributor
Valued Contributor
Posts: 7539
Joined: Sat May 05, 2007 2:27 pm
Location: Northamptonshire, UK
Has thanked: 2052 times
Been thanked: 2960 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby medelec35 » Tue Jul 10, 2018 9:43 pm

Have you thought of counting up in seconds via timer interrupt?
You can then simplify the main code display routine which could help to speed keypad reading.
Flowcode 8 is brillant.
Well worth updating.
No more waiting for months for new revisions or manually replacing files within Flowcode directory.
I have assumed you have seen main Flowcode page?
If you read a post that is useful, please show appreciation by clicking on thumbs up Icon.

Martin

Derrihj
Posts: 5
Joined: Mon Jul 09, 2018 12:43 pm
Has thanked: 2 times
Contact:

Re: More advanced LCD Four Digit Door Lock.

Postby Derrihj » Tue Jul 10, 2018 11:01 pm

First I want to thank you for your helpthanks a million times,now am just learning to use flowcode and programming I need your help on flowcode eeprom I really don't know how to use it yet I love making projects with eeprom due to its ability to recall things even if power is lost please is there an article that u can direct me to learn how to use eeprom and another thing is is there a way of enabling internal pull up or pull down resistor for a microcontroller pin in flowcode since I forgot to put them on my PCB may be I can use internal pul-ups if yes pliz show me how and I love to learn how to use timer0 to speed up keypad entry please show me how am ready to learn by the time I purchase my flc8 lisence I will be a pro.