CCS C Software and Maintenance Offers
FAQFAQ   FAQForum Help   FAQOfficial CCS Support   SearchSearch  RegisterRegister 

ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

CCS does not monitor this forum on a regular basis.

Please do not post bug reports on this forum. Send them to support@ccsinfo.com

want ask for suitable motion sensor

 
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion
View previous topic :: View next topic  
Author Message
delifadzli



Joined: 12 Apr 2010
Posts: 27

View user's profile Send private message

want ask for suitable motion sensor
PostPosted: Thu Jul 01, 2010 12:53 am     Reply with quote

Hi everyone, I want to ask...what is the suitable sensor to detect human.

The scenario, the sensor will detect the human as he/she enters the room. The sensor somehow will act as switch off / on. This sensor will be combined in my temperature sensor- fan circuit. So, as the human being detect, it will allow the temperature sensor to operate. If not, overall system will be off.
Then, how to make detection became reliable as the human still exist. For example, the situation where the user is sleeping (no motion). How to make the overall system still operate.

Please someone help me...any idea???

Hope for your respond.
Jerson



Joined: 31 Jul 2009
Posts: 122
Location: Bombay, India

View user's profile Send private message Visit poster's website

PostPosted: Thu Jul 01, 2010 1:57 am     Reply with quote

One possibility

Use 2 IR beam interrupt sensors to detect entry/exit into/from the room. Every entry into the room will increment a presence counter. When presence counter is not zero, you could keep the AC on. When everyone has exited the room, presence goes to zero and the AC can shut off.
_________________
Regards
Jerson Fernandes
Ttelmah



Joined: 11 Mar 2010
Posts: 19384

View user's profile Send private message

PostPosted: Thu Jul 01, 2010 2:02 am     Reply with quote

Scenario #1, easy PIR.
Scenario #2, almost impossible. No motion, Bit of heat, but this could be coming from a piece of electrical equipment left 'on'. Capacitance changes, but these again could occur from things left in the room (this is commonly used around moving equipment, to detect when somebody 'enters' a danger area, but here the equipment in the area is tightly controlled, not the 'movable feast' of a normal room...). Only one that has much hope, is a gas detector system, looking for the CO2 being exhaled. This is how 'stowaways' are detected on trucks etc., at border crossings, but even then, the most reliable system, is often a dog...
Other system being used is humidity (exhaled damp air), but this has problems with things like tropical fish tanks.
Consider 'counting' entries/exits instead. If you know somebody has enetered the room, and not left, then assume they are still inside.

Best Wishes
temtronic



Joined: 01 Jul 2010
Posts: 9178
Location: Greensville,Ontario

View user's profile Send private message

PostPosted: Thu Jul 01, 2010 5:15 am     Reply with quote

#2 can be done with two additional sensors per door. These sensors are 8-10 inches apart and detect whether the human is coming into or leaving the room. A state machine can be constructed to determine if someone is in the room. Think of how a 'quadrature encoder' works.Obviously you have to account for more than one person, again easy to implement.
Theme parks use a similar method to count how many are 'ready' to see the next show, easier as they have one count for in, one for out. That's why you need two sensors on your door.
It gets a bit more complicated for multiple doors as people can come in one door and out another, but really not that difficult to code.
sjb



Joined: 13 Apr 2010
Posts: 34
Location: UK

View user's profile Send private message

PostPosted: Thu Jul 01, 2010 6:11 am     Reply with quote

temtronic wrote:
It gets a bit more complicated for multiple doors as people can come in one door and out another, but really not that difficult to code.
and I expect more difficulties if people pass in the doorway, or stand on the threshold and go back. What about animals (pets) and small children?

Love to know how you solve this one :D

Silly ideas: listen for a human heart beat or breathing.
SherpaDoug



Joined: 07 Sep 2003
Posts: 1640
Location: Cape Cod Mass USA

View user's profile Send private message

PostPosted: Thu Jul 01, 2010 6:18 am     Reply with quote

Depending on circumstances, counting people going in vs coming out could be problematic. What if someone stands in the doorway? What if someone sticks their head in to see if the room is occupied and then backs out? What if they are pushing a cart or pulling wheeled luggage? Children? Dogs? There are lots of odd cases to consider.

Would it be possible to put RFID tags on people? Could you weigh the room?

Tell us more about the application.
_________________
The search for better is endless. Instead simply find very good and get the job done.
Jerson



Joined: 31 Jul 2009
Posts: 122
Location: Bombay, India

View user's profile Send private message Visit poster's website

PostPosted: Thu Jul 01, 2010 7:20 am     Reply with quote

This reminds me of a tunnel occupation counter I built "once upon a time ...."

It had to solve the problem of deer, yes deer, running through the tunnel. So, we used IR beam interrupters placed further apart than a fully grown deer. Proper knowledge of the problem can help find an optimum solution.

A simple idea could be to use a switch to catch the door opening and confirm it by a beam interrupter. This way - if a person is going into the room you will see door->IR and the other way around for exit, you get IR-> door. 4 legged animals do not open door locks - or do they now? lol ;)
_________________
Regards
Jerson Fernandes
delifadzli



Joined: 12 Apr 2010
Posts: 27

View user's profile Send private message

PostPosted: Sun Jul 11, 2010 6:01 am     Reply with quote

Thanks for the response...especially for the suggestion and tips ....in this case, I'm quite interested in using PIR sensor.

Here, I just want a little bit explanation of how to implement the sensor with PIC 16f877a. To solve that problem, need to use 2 sensor per door? for what condition?... Then, am I need to used AND GATE or OR gate...?

And for the problem that you all had provided like the heat concern and the others ... is quite good. Thanks very much.

But for now, I'm planning to solve for just to make the fan work as the human being detect and also to maintained the condition still work if the the motion like "sleep" is happen.

Sorry for my english and my weakness for this problem. I am actually quite new toward the PIR sensor...isn't this sensor too complex to use??
newguy



Joined: 24 Jun 2004
Posts: 1903

View user's profile Send private message

PostPosted: Sun Jul 11, 2010 11:40 am     Reply with quote

Jerson wrote:
4 legged animals do not open door locks - or do they now? lol ;)


Actually bears will open all sorts of things, doors included, locked or not. Food is a powerful motivator for a mammal that hibernates. Wink
Display posts from previous:   
Post new topic   Reply to topic    CCS Forum Index -> General CCS C Discussion All times are GMT - 6 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group