Help regarding RFID Security Access System

Thread Starter

kks31

Joined Feb 18, 2018
17
I have been working on this project for a week, spending at least 2-3 hours daily on the computer trying to figure it out. I searched a lot of similar codes for this project and eventually, i successfully created a Hex file for the same. But the problem is that i am not able to run this on Proteus. The simulation starts successfully but nothing happens when i type, even the LCD doesn't display anything. It would be great if someone help me out because i am quite on the verge on loosing my mind here. I have absolutely no background on electronics and have to make this project because the subject requires it. I have included the Proteus file, C file and the HEX file. Please check it out and tell me what's wrong. Thanks!
 

Attachments

Thread Starter

kks31

Joined Feb 18, 2018
17
Not that I would open a zip file from a forum member with one post anyway. ;)


Nor would I try to help anyone that made zero attempt to figure out the problem on their own.
I think i made it pretty clear that i have been working on this for weeks. There hasn't been "Zero Attempt", i assure you Mr. . I decided to ask people who have more knowledge about it and it seems you aren't one of them. As for the rar file, i thought it would be easier to include all files in a single file. Thanks for the really helpful reply. Snob!
 

Thread Starter

kks31

Joined Feb 18, 2018
17
Why does everyone like them rar files zip still works
All the different projects that i downloaded were in "RAR" format. I would love to know what futuristic software you use to compress your file's. Seriously are all the people in this forum like this???
 

spinnaker

Joined Oct 29, 2009
7,830
All the different projects that i downloaded were in "RAR" format. I would love to know what futuristic software you use to compress your file's. Seriously are all the people in this forum like this???

95% pf the world uses zip files. There is nothing "futuristic" about it.

No one is going to open a compressed file from an unknown user anyway.

Very, very few people have Proteus.
 

be80be

Joined Jul 5, 2008
2,072
It's not that you used RAR I just can't see using rar to make a file thats 41 kb's when every dang computer that run's windows can make a zip file now RAR has a lot of added tracking that why it's on the net now days I don't need some one slipping some tracking program in there rar files.

I have no need of it tar works gz works And zip works just fine.

And Proteus is useless if you don't have $6000 to buy a copy the free one is very limited
 

be80be

Joined Jul 5, 2008
2,072
Why is this so hard
Code:
#include<reg51.h>
#include<string.h>
#include<stdio.h>
#define lcdport P1


sbit rs=P3^7;
sbit en=P3^5;
sbit rw=P3^6;
sbit m1=P0^0;
sbit m2=P0^1;

char i,rx_data[50];

char rfid[13],ch=0;

char pass[4];

void delay(int itime)
{
    int i,j;
    for(i=0;i<itime;i++)
    for(j=0;j<1275;j++);
}

void daten()
{
    rs=1;
      rw=0;
    en=1;
    delay(5);
    en=0;
}

void lcddata(unsigned char ch)
{
    lcdport=ch & 0xf0;
    daten();
    lcdport=(ch<<4) & 0xf0;
    daten();
}

void cmden(void)
{
    rs=0;
    en=1;
    delay(5);
    en=0;
}

void lcdcmd(unsigned char ch)
{
    lcdport=ch & 0xf0;
    cmden();
    lcdport=(ch<<4) & 0xf0;
    cmden();
}

void lcdstring(char *str)
{
    while(*str)
    {
        lcddata(*str);
        str++;
    }
}

void lcd_init(void)
{
    lcdcmd(0x02);
    lcdcmd(0x28);
    lcdcmd(0x0e);
    lcdcmd(0x01);
}

void uart_init()
{
TMOD=0x20;
SCON=0x50;
TH1=0xfd;
TR1=1;
}
char rxdata()
{
  while(!RI);
    ch=SBUF;  
    RI=0;
    return ch;
}


void main()
{
    uart_init();
    lcd_init();
    lcdstring("  RFID Based    ");
    lcdcmd(0xc0);
    lcdstring("Security system ");
    delay(400);
    while(1)
    {
        lcdcmd(1);
        lcdstring("Place Your Card:");
        lcdcmd(0xc0);
        i=0;
        for(i=0;i<12;i++)
        rfid[i]=rxdata();
        rfid[i]='\0';
        lcdcmd(1);
        lcdstring("Your ID No. is:");
        lcdcmd(0xc0);
        for(i=0;i<12;i++)
        lcddata(rfid[i]);
        delay(100);
        if(strncmp(rfid,"160066A5EC39",12)==0)
        {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person1");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0;
          }
      
        else if(strncmp(rfid,"160066BD7AB7",12)==0)
            {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person2");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0;
            }
          
                else if(strncmp(rfid,"160066203060",12)==0)
            {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person3");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0;  
            }

        else
        {
           lcdcmd(1);
           lcdstring("Access Denied");
           delay(300);
        }
  }
}
Back to
Proteus is useless if you don't have $6000 to buy a copy
Ask for Ian he has a real copy of Proteus
 

be80be

Joined Jul 5, 2008
2,072
Back to RAR
RAR FAQ: Phishing RAR Files - Dangerous RAR Files - Fraudulent ...
www.philippwinterberg.com/.../rar_faq_phishing_fraudulent_dangerous_malicious_fi..Jump to Why is my unrar tool directing me to a site that rips people off? -Why is my unrar tool directing me to a site that rips people off? First of all: This is a phishing attack designed to scam you. Do not enter personal data on suspicious websites. Do not sign up for anything. Stay away from this type of RAR file.
 

Thread Starter

kks31

Joined Feb 18, 2018
17
It's not that you used RAR I just can't see using rar to make a file thats 41 kb's when every dang computer that run's windows can make a zip file now RAR has a lot of added tracking that why it's on the net now days I don't need some one slipping some tracking program in there rar files.

I have no need of it tar works gz works And zip works just fine.

And Proteus is useless if you don't have $6000 to buy a copy the free one is very limited
Okay i get your point. But the fact remains that many people still use rar file. If you have an Anti virus installed on tour PC then it shouldn't be that big of a problem. It stops from downloading if it detects any threat.
 

Thread Starter

kks31

Joined Feb 18, 2018
17
Why is this so hard
Code:
#include<reg51.h>
#include<string.h>
#include<stdio.h>
#define lcdport P1


sbit rs=P3^7;
sbit en=P3^5;
sbit rw=P3^6;
sbit m1=P0^0;
sbit m2=P0^1;

char i,rx_data[50];

char rfid[13],ch=0;

char pass[4];

void delay(int itime)
{
    int i,j;
    for(i=0;i<itime;i++)
    for(j=0;j<1275;j++);
}

void daten()
{
    rs=1;
      rw=0;
    en=1;
    delay(5);
    en=0;
}

void lcddata(unsigned char ch)
{
    lcdport=ch & 0xf0;
    daten();
    lcdport=(ch<<4) & 0xf0;
    daten();
}

void cmden(void)
{
    rs=0;
    en=1;
    delay(5);
    en=0;
}

void lcdcmd(unsigned char ch)
{
    lcdport=ch & 0xf0;
    cmden();
    lcdport=(ch<<4) & 0xf0;
    cmden();
}

void lcdstring(char *str)
{
    while(*str)
    {
        lcddata(*str);
        str++;
    }
}

void lcd_init(void)
{
    lcdcmd(0x02);
    lcdcmd(0x28);
    lcdcmd(0x0e);
    lcdcmd(0x01);
}

void uart_init()
{
TMOD=0x20;
SCON=0x50;
TH1=0xfd;
TR1=1;
}
char rxdata()
{
  while(!RI);
    ch=SBUF; 
    RI=0;
    return ch;
}


void main()
{
    uart_init();
    lcd_init();
    lcdstring("  RFID Based    ");
    lcdcmd(0xc0);
    lcdstring("Security system ");
    delay(400);
    while(1)
    {
        lcdcmd(1);
        lcdstring("Place Your Card:");
        lcdcmd(0xc0);
        i=0;
        for(i=0;i<12;i++)
        rfid[i]=rxdata();
        rfid[i]='\0';
        lcdcmd(1);
        lcdstring("Your ID No. is:");
        lcdcmd(0xc0);
        for(i=0;i<12;i++)
        lcddata(rfid[i]);
        delay(100);
        if(strncmp(rfid,"160066A5EC39",12)==0)
        {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person1");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0;
          }
     
        else if(strncmp(rfid,"160066BD7AB7",12)==0)
            {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person2");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0;
            }
         
                else if(strncmp(rfid,"160066203060",12)==0)
            {
            lcdcmd(1);
            lcdstring("Access Granted ");
            lcdcmd(0xc0);
            lcdstring("Person3");
            m1=1;
            m2=0;
            delay(300);
            m1=0;
            m2=0;
            delay(200);
            m1=0;
            m2=1;
            delay(300);
            m1=0;
            m2=0; 
            }

        else
        {
           lcdcmd(1);
           lcdstring("Access Denied");
           delay(300);
        }
  }
}
Back to

Ask for Ian he has a real copy of Proteus
I don't have a problem with the code. I just want to run a simulation and try out the code before loading it on my microcontroller just to be on the safe side. And for that i don't have to buy the full version. I have solved all the issues but the only problem i am having is with the Motor Driver module which isn't rotating.
 

spinnaker

Joined Oct 29, 2009
7,830
Okay i get your point. But the fact remains that many people still use rar file. If you have an Anti virus installed on tour PC then it shouldn't be that big of a problem. It stops from downloading if it detects any threat.

Maybe the virus checker will catch it. And maybe not. Why should I risk opening an rar file to help someone I don't know?

Why should I go through the trouble of opening special software to open an RAR?

You are the one with the issue. It is up to you to make it easier for people to try and help
 

Thread Starter

kks31

Joined Feb 18, 2018
17
Maybe the virus checker will catch it. And maybe not. Why should I risk opening an rar file to help someone I don't know?

Why should I go through the trouble of opening special software to open an RAR?

You are the one with the issue. It is up to you to make it easier for people to try and help
How else am i supposed to upload the file? I thought that's what forums are for, to ask and help a complete stranger. Anyways whatever, the guys at 8051 project forum helped me out, just need to figure out about the motor. So thank you for your great help.
 

spinnaker

Joined Oct 29, 2009
7,830
1. You upload a zip file.

2. You post you code right in the post.

3. You make at least some attempt to figure it out yourself and point out the certain where you think is the issue.


But you mentioned you don't have a problem with the code so I don't see where that would help. Very few people have Proteus. My guess no one here does so I am not sure how you expect someone to run it.
 

Thread Starter

kks31

Joined Feb 18, 2018
17
1. You upload a zip file.

2. You post you code right in the post.

3. You make at least some attempt to figure it out yourself and point out the certain where you think is the issue.


But you mentioned you don't have a problem with the code so I don't see where that would help. Very few people have Proteus. My guess no one here does so I am not sure how you expect someone to run it.
I really don't understand your paranoia with rar files. Everyone knows its best in compressing. As for security threats that can happen with any zip, tar or rar file. Yes i guess Zip files are more accessible but i think almost everyone has WINRar installed in their PC from a very long time. And i asked here for help because i thought there are professionals available here, so they must have Proteus because it's important for a project.
 

be80be

Joined Jul 5, 2008
2,072
Nope there probably no one here using Proteus but the one guy I told you his name.
I'm sure the reason your having problems your using the trial software.
 

spinnaker

Joined Oct 29, 2009
7,830
I really don't understand your paranoia with rar files. Everyone knows its best in compressing. As for security threats that can happen with any zip, tar or rar file. Yes i guess Zip files are more accessible but i think almost everyone has WINRar installed in their PC from a very long time. And i asked here for help because i thought there are professionals available here, so they must have Proteus because it's important for a project.

It is irrelevant if you understand or not. It is my choice (along with others) not to open them. We not the one here with the problem. You are and you aren't making it easy for people to help you.
 
Top