free 8051 Microcontroller Projects AVR PIC Microcontroller Projects Tutorials Ebooks Libraries, interfacing tutorials, lcd tutorial, stepper motor, dc motor 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems

 
8051 microcontroller 8051 microcontroller
Forums

8051 Microcontroller Projects AVR PIC Projects Tutorials Ebooks Libraries codes :: Forums :: Project Development :: Project Doubts
 
<< Previous thread | Next thread >>
Help reg. Door sensors (Counting number of people)
Moderators: Ajay, Junied , abbas1707, Arun Kumar V, pdi33, Shailesh NAYAK, ۞ TPS ۞, shyam, sashijoseph
Author Post
Mickey
Mon May 21 2007, 02:03PM
 User Offline
Registered Member #1161
Joined: Mon May 21 2007, 01:26PM

Posts: 4
Thanked 4 times in 4 posts
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
1179781435_1161_FT0_project.rar



[ Edited Sat Oct 20 2007, 10:34AM ]
Back to top

IR sensors   8051 keil   



This post has been thanked 1 time
Ajay
Mon May 21 2007, 02:39PM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
Mickey
Mon May 21 2007, 02:53PM
 User Offline
Registered Member #1161
Joined: Mon May 21 2007, 01:26PM

Posts: 4
Thanked 4 times in 4 posts
Rickey wrote ...

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?


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....


1179784389_1161_FT852_project.rar

[ Edited Sat Oct 20 2007, 10:34AM ]
Back to top



This post has been thanked 1 time
Ajay
Tue May 22 2007, 01:52AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
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.

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
Mickey
Tue May 22 2007, 01:58AM
 User Offline
Registered Member #1161
Joined: Mon May 21 2007, 01:26PM

Posts: 4
Thanked 4 times in 4 posts
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
Back to top



This post has been thanked 1 time
Mickey
Tue May 22 2007, 02:12AM
 User Offline
Registered Member #1161
Joined: Mon May 21 2007, 01:26PM

Posts: 4
Thanked 4 times in 4 posts
Rickey wrote ...

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.


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:21AM ]
Back to top



This post has been thanked 1 time
Ajay
Tue May 22 2007, 02:46AM
Rickey's World Admin

 User Offline

Registered Member #1
Joined: Fri Feb 24 2006, 04:56AM

Posts: 3745
Thanked 695 times in 654 posts
i have to go through the code again because it takes time to understand someone's logic i will reply...

www.rickeyworld.info
If you feel satisfied with the user's forum reply please click on the thank button.

Obey forum rules!
Respect others!
Back to top



This post has been thanked 1 time
 

Jump:     Back to top

Syndicate this thread: rss 0.92 Syndicate this thread: rss 2.0 Syndicate this thread: RDF
Powered by e107 Forum System

8051 Microcontroller Projects 8051 AVR tutorials PIC microcontroller, 8051 assembly language programming electronics and communication ECE CSE pdf ebooks library BE final year project ideas Embedded systems