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

Sat Oct 24 2020, 11:19 PM
Rosalina
what is an outline of an essay https://essaywritinget.com - buying an essay online technology essays editing the essay where to buy essays comparative essay
Sat Oct 24 2020, 11:44 AM
Rene Derham
It’s only because he's a world-class copywriter, that he can hand you these done-for-you campaigns.
Thu Jun 11 2020, 06:27 AM
anudee
sir could please send the code for I2C and wifi interfacing with 8051
scena
Tue May 19 2020, 10:29 PM
Does anyone have microcontroller programming software for STC15F104W (core 8051, 4 k, 128 byte, 6 I/O pin, UART ... DIL8), that works?
Sat May 02 2020, 07:38 PM
Tamu Gurung
Hi I am looking for a assembly language program for a digital decimal counter. Time counts max limit of 2 mins starting from 2.00 mins and ending at 0.00. time is to be displayed on 4 7-segment LED displays. Edsim51 simulator to be used. Thanks
Wed Mar 25 2020, 01:39 PM
Tajammul
Sir kindly send the code file i2c for 8051
ExperimenterUK
Fri Mar 13 2020, 10:36 PM
@ Rohitnani,ABEBE..which project ?
Fri Mar 13 2020, 12:55 PM
ABEBE
how can get hadwere of this project
Rohitnani
Sat Mar 07 2020, 05:11 PM
Sir, Could you please send me the zip file input password....
Wed Feb 26 2020, 04:58 PM
Peter Parker
Is it possible to send multiple messages using only 1 GSM module?

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: 90, Members: 0 ...

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

Members: 38215
Newest member: Mirza123