Electronic Projects, forums and more.

Go Back   Electronic Circuits Projects Diagrams Free > Electronics Categories > Micro Controllers


Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc.

Reply
 
Tools
Old 7th September 2008, 07:00 AM   #1
Thumbs down Determining Direction of a person

Hi,
am designing a light control circuit ,now what i need is to determine if a person has entered in or has gone out. if a person(persons) them lights should be on until all persons are out. i need sample codes written in mikroC(am using mikroC). please am stuck!,cant go on with my project. i have two sensors connected to RA2 & RA3 and am using PIC16F84A( i also have 16F690).
thanks in advance
kaygeezo is offline  
Old 7th September 2008, 07:13 AM   #2
Default

Well, if the sequence is 00 10 11 01 00 then a person entered. If it's 00 01 11 10 00 then a person left.

Mike.
Pommie is offline  
Old 7th September 2008, 08:14 AM   #3
Default

Quote:
Originally Posted by kaygeezo View Post
Hi,
am designing a light control circuit ,now what i need is to determine if a person has entered in or has gone out. if a person(persons) them lights should be on until all persons are out. i need sample codes written in mikroC(am using mikroC). please am stuck!,cant go on with my project. i have two sensors connected to RA2 & RA3 and am using PIC16F84A( i also have 16F690).
thanks in advance
hi,
What type of sensor are you using.?
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/
ericgibbs is offline  
Old 7th September 2008, 08:44 AM   #4
Default

Hi Kaygeezo,

Don't forget to add checks for 00 10 10 10 00 (person partially enters, pauses, then leaves), 00 01 01 01 00 (person starts to leave but changes their mind), etc.

Do you see the pattern?

What happens if two people enter side by side? Is the entrance wide enough to allow that?


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 7th September 2008, 08:53 AM   #5
Default

Quote:
Originally Posted by Torben View Post
Hi Kaygeezo,

Don't forget to add checks for 00 10 10 10 00 (person partially enters, pauses, then leaves), 00 01 01 01 00 (person starts to leave but changes their mind), etc.

Do you see the pattern?

What happens if two people enter side by side? Is the entrance wide enough to allow that?


Torben
hi,
As you say there are many combinations.
I think this type of requirement has been posted about least 6 times in the past 12 months.
I wonder if its one of the standard school questions.?

I will be interested to see which sensors he is going to use.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th September 2008 at 08:53 AM.
ericgibbs is offline  
Old 7th September 2008, 09:03 AM   #6
Default

Quote:
Originally Posted by ericgibbs View Post
hi,
As you say there are many combinations.
I think this type of requirement has been posted about least 6 times in the past 12 months.
I wonder if its one of the standard school questions.?

I will be interested to see which sensors he is going to use.
If I had access to unlimited time, an unlimited (or large enough) budget, and some smart/experienced minds to pick, what I would do is: count people entering and leaving (using something like the above pattern coding from e.g. laser beam-break detectors), have PIR sensors inside the room, and use video monitoring with image processing inside the room as well, all monitored by a central decision-making program to determine whether anybody was in the room.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 7th September 2008, 09:11 AM   #7
Default

Quote:
Originally Posted by Torben View Post
If I had access to unlimited time, an unlimited (or large enough) budget, and some smart/experienced minds to pick, what I would do is: count people entering and leaving (using something like the above pattern coding from e.g. laser beam-break detectors), have PIR sensors inside the room, and use video monitoring with image processing inside the room as well, all monitored by a central decision-making program to determine whether anybody was in the room. :
Torben
hi,
A cheaper way would be to fit smaller lamps or employ a 'resident light switch operator'.

One possible set of sensors, would the pressure mats you buy for stair treads.
About 30in long by 7in wide. lay say 5 cross ways across the extrance to the room.
The mats arranged so that a normal person has to step on at least two mats as he enters or leaves.
This would improve detection but it still wouldnt be fool proof.
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th September 2008 at 09:11 AM.
ericgibbs is offline  
Old 7th September 2008, 09:13 AM   #8
Default

Quote:
Originally Posted by ericgibbs View Post
hi,
A cheaper way would be to fit smaller lamps or employ a 'resident light switch operator'.
Yep. "Please turn the lights out when you leave" is a good way to save juice on the cheap. And it's easy and everybody can do it.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 7th September 2008, 09:18 AM   #9
Default

Quote:
Originally Posted by Torben View Post
Yep. "Please turn the lights out when you leave" is a good way to save juice on the cheap. And it's easy and everybody can do it.


Torben
hi,
I like your CCTV camera idea, take a video recording of the room, find out who keeps leaving the lights ON
and send him/her the power bill.!!
__________________
Eric " Good enough is Perfect "
I will NOT answer PM's requesting technical help, please use the Forum
PIC tutorials: Nigel's www.winpicprog.co.uk/ Bill's: www.blueroomelectronics.com/

Last edited by ericgibbs; 7th September 2008 at 09:18 AM.
ericgibbs is offline  
Old 7th September 2008, 09:19 AM   #10
Default

Quote:
Originally Posted by ericgibbs View Post
hi,
I like your CCTV camera idea, take a video recording of the room, find out who keeps leaving the lights ON
and send him/her the power bill.!!
You made me laugh out loud with that one! Not what I was thinking of doing, but your idea is a lot easier and probably more effective too.


Torben
__________________
Curiosity was framed. Ignorance killed the cat.
Torben is offline  
Old 7th September 2008, 10:45 AM   #11
Thumbs down

Quote:
Originally Posted by ericgibbs View Post
hi,
What type of sensor are you using.?
Emmiters: siemes GaAiAs Infrered Emitter SFH 484
Receiver:TSOP1730
kaygeezo is offline  
Old 7th September 2008, 10:50 AM   #12
Default

Quote:
Originally Posted by Torben View Post
Hi Kaygeezo,

Don't forget to add checks for 00 10 10 10 00 (person partially enters, pauses, then leaves), 00 01 01 01 00 (person starts to leave but changes their mind), etc.

Do you see the pattern?

What happens if two people enter side by side? Is the entrance wide enough to allow that?


Torben
gotcha!!, thanks pal. i will consider it.
concerning the side to side entering,i haven't yet made up my mind. but please if you have something to help on this please help.
kaygeezo is offline  
Old 22nd January 2009, 08:21 AM   #13
Default

What about some monitoring camera and "computer vision" software that counts and measure the people who goes in and out.. ?

What about cameras and motion detection software, combined with sensor on the door.. when nobody is inside, then inside nobody is moving.. it will bi sign to turn off the light.. if someone get inside, then the sensors on the door will detect the man.. and it will be sign to turn on the light...

sorry, i don`t seen that this is an old topic

Last edited by NEBO666; 22nd January 2009 at 08:32 AM.
NEBO666 is offline  
Old 26th January 2009, 10:12 AM   #14
Default not old

Quote:
Originally Posted by NEBO666 View Post
What about some monitoring camera and "computer vision" software that counts and measure the people who goes in and out.. ?

What about cameras and motion detection software, combined with sensor on the door.. when nobody is inside, then inside nobody is moving.. it will bi sign to turn off the light.. if someone get inside, then the sensors on the door will detect the man.. and it will be sign to turn on the light...

sorry, i don`t seen that this is an old topic
still am need of help. thanx anyway
kaygeezo is offline  
Old 26th January 2009, 10:21 AM   #15
Default

Quote:
Originally Posted by kaygeezo View Post
Emmiters: siemes GaAiAs Infrered Emitter SFH 484
Receiver:TSOP1730
This is not practical you need some sort of 2 beam sensors.The ray must be very thin & the two sensors must place in between 1cm.

I used a Laser beam focusing to an LDR.
__________________
Gayan

My Website
http://gsmicro.blogspot.com/
Gayan Soyza is offline  
Reply

Tags
determining, direction, person

Thread Tools
Display Modes


Similar
Title Starter Forum Replies Latest
UAV- Determining Constant Velocity dknguyen Robotics Chat 15 1st March 2008 01:19 AM
determining what frequency of crystal to use? bigfarmerdave Electronic Projects Design/Ideas/Reviews 1 23rd January 2008 01:44 AM
Person Counter colin mac Electronic Projects Design/Ideas/Reviews 6 2nd November 2007 02:09 PM
Determining Wire Gauge justinlw General Electronics Chat 4 10th October 2006 11:44 PM
Please help us help this person... Marks256 General Electronics Chat 20 30th July 2006 12:24 AM



All times are GMT. The time now is 07:59 PM.


Electronic Circuits  |  Learning Electronics
eXTReMe Tracker