Discussion in "Project Doubts" started by    Mickey    May 21, 2007.
Mon May 21 2007, 09:03 PM
#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, 05:34 PM ]
 tienduhieu like this.
Tags IR sensors8051 keil
Mon May 21 2007, 09:39 PM
#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.
Mon May 21 2007, 09:53 PM
#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, 05:34 PM ]
 tienduhieu like this.
Tue May 22 2007, 08:52 AM
#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, 08:58 AM
#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, 09:12 AM
#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, 09:21 AM ]
 tienduhieu like this.
Tue May 22 2007, 09:46 AM
#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

Conversation

Tue May 04 2021, 08:34 PM
Chastity
Hi there! I could have sworn I've been to this site before but after browsing through some of the post I realized it's new to me. Anyways, I'm definitely glad I found it and I'll be book-marking and checking back frequently! check my score https://creditscorecheckn.com
Tue May 04 2021, 06:39 PM
Clarence
What's up everyone, it's my first go to see at this web page, and post is really fruitful in support of me, keep up posting these types of articles. Best Credit Score https://creditscoresids.com
Tue May 04 2021, 01:13 PM
Jerold
What's up to all, the contents present at this site are really remarkable for people knowledge, well, keep up the good work fellows. karma credit score https://getcreditscoreww.com
Tue May 04 2021, 09:49 AM
Shonda
I like the helpful info you provide in your articles. I will bookmark your blog and check again here frequently. I am quite certain I'll learn many new stuff right here! Good luck for the next! check credit report https://creditreportuss.com
Tue May 04 2021, 06:28 AM
Lucia
I am not sure where you are getting your info, but great topic. I needs to spend some time learning more or understanding more. Thanks for wonderful information I was looking for this info for my mission. monthly credit report https://checkcreditscore24.com

Downloads

Comments

Mirza123
Thu Jun 25 2020, 03:46 PM
eunicelove124
Mon Jun 22 2020, 03:03 PM
cerouno
Tue Jun 16 2020, 05:10 PM
Marce
Sat Jun 13 2020, 09:43 PM
Davidthils
Thu May 21 2020, 12:44 PM
Jakeror
Thu May 21 2020, 01:28 AM
motorCar
Wed May 20 2020, 07:05 PM
Vordrync
Wed May 20 2020, 11:52 AM

Online

Guests: 48, Members: 0 ...

most ever online: 182184
(Members: , Guests: 182184) on 06 Aug 2010: 05:37 AM

Members: 38215
Newest member: Mirza123