This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Digital lock using AT89C2051 tested with simulation

I want a digital lock based on the 8051 variant AT89C2051 with proteus simulation.

The basic user lock is of 5 Digits and Master Lock is of 10 digits.
The input is taken from a 4x3 Keypad and the user input is shown on a 2x16 LCD.
Pin 15 (P1.3)is assigned as output for activating and deactivating the lock. An LED is connected to that pin for testing.

The # key acts as "ENTER" key and * as "BACKSPACE" key.
The default code for activating the lock is 56712. To change it first enter 54321 and then enter the master key code of 8776934265. Then it will ask you to enter the new 5 digit key unlock code which will be stored for future.

The lock has to be opened within 3 tries else it gets blocked.

Has anyone done it yet? Yes? Let me know where I can download it from(rapidshare is esiest).

ENJOY.

Parents Reply Children
  • "Plz give me any code you have and I will modify it to work."

    Wow, you're one talented guy!

  • "give me any code you have and I will modify it to work."

    If you are that certain that you can modify any code to work to your requirement, wouldn't it be simpler to just write the code for yourself in the first place.

    Then you could honestly hand it in to your teacher as your own work!

  • That would be a cool project.

    A CVS repository containing a step-by-step rewrite of a hello-world application into the required, fully working and tested software.

    That would not only show that you can handle embedded development, but also that you have knowledge of some development tools, and know about iterative development.

    Here is a good starting point (note that the main() prototype is normally different for an embedded project since it isn't expected to return.) Also, you must Retarget the project to get printf() etc to work, if you want every single commit step to be runnable:

    #include <stdio.h>
    
    int main(void) {
        printf("Hello world!\n");
        return 0;
    }
    

    Happy rewrite.