![]() | ![]() | ![]() |
| |||||||
| Micro Controllers Discuss all aspects of micro controllers - building them, coding them, etc. All controllers are welcome - PIC, BASIC, Z8 Encore!, etc. |
![]() |
| | Tools |
| | #1 |
|
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 | |
| |
| | #2 |
|
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. | |
| |
| | #3 | |
| Quote:
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/ | ||
| |
| | #4 |
|
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. | |
| |
| | #5 | |
| Quote:
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. | ||
| |
| | #6 | |
| Quote:
![]() Torben
__________________ Curiosity was framed. Ignorance killed the cat. | ||
| |
| | #7 | |
| Quote:
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. | ||
| |
| | #8 | |
| Quote:
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. | ||
| |
| | #9 | |
| Quote:
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. | ||
| |
| | #10 | |
| Quote:
![]() Torben
__________________ Curiosity was framed. Ignorance killed the cat. | ||
| |
| | #11 |
| | |
| |
| | #12 | |
| Quote:
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. | ||
| |
| | #13 |
|
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. | |
| |
| | #14 | |
| Quote:
| ||
| |
| | #15 | |
| Quote:
I used a Laser beam focusing to an LDR. | ||
| |
|
| 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 |