Combinaton Gate access


Closed Thread
Results 1 to 40 of 48

Hybrid View

  1. #1
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    HOW? IF Keypress = "***" THEN . . . will not compile.
    In the original program, was there anything that looked like IF Keypress = "78A5D" THEN ?

    @ READKEYPAD _ByteA
    . . . Right?
    Right. You can only Write (or read) 1 byte at a time to EEPROM.

    I'm just sitting here waiting for you to come up some more ideas.

    I could just write it for you ... but I won't.

    I'll be over playing Trains with Malcolm.
    <br>
    DT

  2. #2
    Join Date
    Aug 2006
    Location
    Look, behind you.
    Posts
    2,818


    Did you find this post helpful? Yes | No

    Default

    Quote Originally Posted by Darrel Taylor View Post
    In the original program, was there anything that looked like IF Keypress = "78A5D" THEN ?

    <br>

    No there was not. I'm on standby for now as it is cold and dry in my shop and I think I ESD zapped my 2 877As, I reordered some today. I will port over some of the code to a smaller cheaper PIC while trying to develope this, I appreciate your patience Darrel, and your help., The wait will give me time to machine the keypad out of Aluminium fo outdoor use, the commercial key unit will donate its letter/numbered pad to this project, and real switches will be used. Funny the 877As I have, program and verify but do not work with this or other code, that's why I think ESD got to them.

    EDIT: DOUGH! You mean like this?
    Code:
    if ComboPtr <= ComboLength then
            Read ComboPtr, ByteA                     ; Get the digit from EEPROM
            if Key = ByteA then                      ; is it the same ?
                WRITE 1, ByteA
    Last edited by Archangel; - 16th February 2007 at 00:54.
    If you do not believe in MAGIC, Consider how currency has value simply by printing it, and is then traded for real assets.
    .
    Gold is the money of kings, silver is the money of gentlemen, barter is the money of peasants - but debt is the money of slaves
    .
    There simply is no "Happy Spam" If you do it you will disappear from this forum.

  3. #3
    Join Date
    Jul 2003
    Location
    Colorado Springs
    Posts
    4,959


    Did you find this post helpful? Yes | No

    Default

    Keep Thinking.
    DT

  4. #4
    Join Date
    Sep 2006
    Posts
    5


    Did you find this post helpful? Yes | No

    Default gate controller

    Thank you Darrel, mister_e and Joe S. for so much help on this project. I have a working gate operator now as seen at http://boogerdigger.com/gate1.htm using this code (attached zip file). I hope putting up a link is not against the rules. If so, let me know and I won't do it again.
    There are 2 things that I want to add to my driveway gate:
    1) a way to add and delete a user code with the keypad instead of reprogramming the PIC. I have failed at this countless times now. Please give me some direction if you can.
    2) add two cameras to take a picture of the view from the keypad area (to capture the face of a possible intruder) and one to capture the license plate of the vehicle (a possible help for the less-than-zealous local police department). As the front gate is a long way from my building - about 200 feet or so, I'll need to store the pictures on some form of removable media although I haven't excluded wireless.

    I think I'll work on #2 now as my brain is hurting from #1.

    If anyone has any suggestions on either the change code or the camera please let me know.
    Attached Files Attached Files
    Last edited by lester; - 21st February 2007 at 18:46. Reason: updated attachment on behalf of lloyd778

  5. #5


    Did you find this post helpful? Yes | No

    Default code correction

    In my previous post (above), I failed to add a few comments to the Gate1.zip file. You'll notice that it won't compile with keypad1.bas. Just remove the "1" and it should be fine. Shame on me for modifying the original file for a different app and then renaming yet another original with the "1". Confusion to the enemy or is it simply the confussion of my mind?
    I do get a Warning[221] when I complie. ...gate1.asm143:Invalid message number (230). Dawged if I can figure this one out but the programs runs just fine.
    Can't hardly wait to Eagle up a PCB for this project. Better wait a bit more as I just keep adding a bell here and a whistle there.
    Someone say whistle? Hum, the bad guys enter the wrong code and a very loud siren blasts away. More humane than 6000 volts through keypad. Like that, a lot.

  6. #6
    Join Date
    Sep 2004
    Location
    montreal, canada
    Posts
    6,898


    Did you find this post helpful? Yes | No

    Default

    If i use the suggested PIC16F877A... it compile just fine.. no warning no nothing here.

    Warning 230: __CONFIG has been deprecated for PIC18 devices. Use directive CONFIG.

    so you're using a PIC18Xxxxx device. You have few choices
    1. leave it like this... anyway it's a WARNING
    2. you add @ ERRORLEVEL -230 at the top of your code
    3. you use the new CONFIG syntax
    4. you update your PBP version to 2.47... which take care of it.
    Last edited by mister_e; - 22nd February 2007 at 01:18.
    Steve

    It's not a bug, it's a random feature.
    There's no problem, only learning opportunities.

  7. #7


    Did you find this post helpful? Yes | No

    Default good fix

    @ ERRORLEVEL -230 was at the top of the code. When I commented it out the warning went away and I got a clean compile. I love it all clean like that. Thanks mister_e!!

Similar Threads

  1. A logic gate chip with 1 ea XOR and 2 ea AND gates?
    By jellis00 in forum mel PIC BASIC Pro
    Replies: 21
    Last Post: - 5th August 2009, 06:29
  2. Access to sim memu
    By sahin5002 in forum GSM
    Replies: 2
    Last Post: - 16th June 2009, 12:57
  3. truck gate
    By Melros in forum mel PIC BASIC Pro
    Replies: 12
    Last Post: - 13th October 2007, 14:23
  4. 18f2550 'access is denied' USB error?
    By Giulio in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 30th December 2006, 15:29
  5. FYI - How to Access individual bytes in Word Arrays
    By Melanie in forum mel PIC BASIC Pro
    Replies: 0
    Last Post: - 20th July 2003, 22:56

Members who have read this thread : 0

You do not have permission to view the list of names.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts