Discussion in "Project Doubts" started by    Mickey    May 22, 2007.
Tue May 22 2007, 02:33 am
#1
Hello,
I am working on designing people counter in 8051 entered or left the room. there are 2 sensor and each time person croses from sensor 1 to 2 the counter increments and vice-versa. i wrote the normal code in c language using keil compiler. you can take a look at file attached.....its compiling successfully.
Problem is when i create the object file in uVision it creates .obj file when i load to dScope it says invalid file *its looking for *.omf is dis file is different from .obj ??
when i load the object file from dScope.ini it works fine but the counter always increments and never decrements even tough i wrote the code for decrement.......

I am not sure what m doin wrong or whats wrong happening I tried to search a lot posted several forums no Luck uptill now Hope neone might help

Thanks in advance!
Regards
Manish


[ Edited Sat Oct 20 2007, 11:04 pm ]
 tienduhieu like this.
Tags IR sensors8051 keil
Tue May 22 2007, 03:09 am
#2
Dear Manish,
well making this type of counter is simple. sure i will help you. I try to look at your code, but it seems to be empty or not written... it just have a main function with only 2 lines of code.
are you sure you have uploaded the correct file?
and.. regarding DScope. i never used it. can you give me some idea where can i download this? and instead of using any sumulator you can make a simple hardware with the help of IR sensors.. just to check the working. please attach the code you've written. coz the file you uploaded does not seems to be correct.
 tienduhieu like this.
Tue May 22 2007, 03:23 am
#3


it just have a main function with only 2 lines of code.
are you sure you have uploaded the correct file?
and.. regarding DScope. i never used it. can you give me some idea where can i download this?

Rickey



Sorry for the wrong file Correct file is here ......

Dscope debugger comes with keil evaluation
I wuld test the program on hardware if m satisfied with the software....:D as no hardware resources avb uptill now....




[ Edited Sat Oct 20 2007, 11:04 pm ]
 tienduhieu like this.
Tue May 22 2007, 02:22 pm
#4
hi mickey,
i have gone through your code. Now i need a little more details about your project. firstly,
1) i need state diagram (labeled)
2) How the sensors are arranged?
As i got info from your code, you have a room with single door and two sensors in the way. Not sure i am right but as per the code, i made this layout of the sensor assembly. please give me more details of above mentioned things.

Secondly, i need to know what are these buttons used for. as understood from the program, i thought they are used to set maximum count of students.
what is this session button used for? is it that, when student enter, he/she has to press that button? Please provide me complete details so as to understand the code better. will be waiting for reply.
 tienduhieu like this.
Tue May 22 2007, 02:28 pm
#5
can you add me to messenger, so that i can talk to you much more about it

mickey_481 [at] hotmail.com or yahoo.com

And once again Thanks for Helping me out reli appreciate it. Hope it gets sorted out ....

Regards,
Manish
 tienduhieu like this.
Tue May 22 2007, 02:42 pm
#6


Now i need a little more details about your project. firstly,
1) i need state diagram (labeled)
2) How the sensors are arranged?
As i got info from your code, you have a room with single door and two sensors in the way. Not sure i am right but as per the code, i made this layout of the sensor assembly. please give me more details of above mentioned things.

Secondly, i need to know what are these buttons used for. as understood from the program, i thought they are used to set maximum count of students.
what is this session button used for? is it that, when student enter, he/she has to press that button? Please provide me complete details so as to understand the code better. will be waiting for reply.

Rickey



Sensors are arranged one outside door and one inside door. say 30 cm appart dis is just an assumption.
I have drawn the flowchart and port defination which you were confused...
http://img502.imageshack.us/my.php?image=projectcq4.gif

Store button are used to store max-min number of students allowed, while session button is used for next session. Consider we want to count no. of students in lab. Lec will press session button to reset the count and store button to allow maximum and minimum student...

State Q0-Q3 Student entered the room.
State Q0-Q4-Q6 Student left the room.

I got the incrementing one working, I cant get the decrement working I dunno what m doing wrong. Even tough u change Current_Students--; its does not affect. I am using Keil eval ver. havent tried any other simulators so guide me.....

Lemme know if u need nemore info.....
Add me or give me ur messenger ID , I will also keep posting here for the people who are doing simmilar kind of projects....
Cheers,
Manish


[ Edited Tue May 22 2007, 02:51 pm ]
 tienduhieu like this.
Tue May 22 2007, 03:16 pm
#7
i have to go through the code again because it takes time to understand someone's logic i will reply...
 tienduhieu like this.

Get Social

Information

Powered by e107 Forum System

Downloads

Comments

Richardedils
Wed Apr 24 2024, 04:07 am
ChrisLub
Tue Apr 23 2024, 05:21 pm
Davidbab
Tue Apr 23 2024, 10:41 am
Richardrit
Tue Apr 23 2024, 09:54 am
HenryLaf
Mon Apr 22 2024, 03:50 pm
bleradrar
Mon Apr 22 2024, 06:38 am
ppu-pro_ka
Sun Apr 21 2024, 07:39 pm
Infewow
Sun Apr 21 2024, 06:30 pm