Tell me more ×
Electrical Engineering Stack Exchange is a question and answer site for electronics and electrical engineering professionals, students, and enthusiasts. It's 100% free, no registration required.

This is a hobby project about home automation. The idea is that of distributed system of cheap microcontrollers that take measurements, communicate, output data and control appliances.

One important task that this system should perform is detect at every room if there are humans inside (awake or asleep distinction would be a over-the-top bonus :) ). I am still at a loss if this is feasible. PIR-s? Webcameras? Microphones? Optical counters at the doors? Ultrasound?

Available processing power per sensor output: 5MIPS of avr instructions (8-bit RISC) for 3 seconds = 15 million instructions.

Typical usage scenario would be:

  • The apartment is empty (the system should know that).
  • The door opens and a group of 4 people enters the hallway. (the system should know that someone is in the hallway).
  • Two go to a room (the system should track their path by room, with a lag of no more than several seconds, plus know that there is still someone in the hallway)
  • , one of them returns, the other sits on a chair, (the first one is to be tracked. the system should also know in which room is the sitting person).
  • In the meantime the rest two wander randomly in a 2 x 2 meter area in the hallway (taking shoes off, hanging coats) (the system should know they are still in that area)
  • One goes to another room, turns the radio on and goes to sleep to sleep (the system should know that there is a sleeping person there).
  • Someone leaves the apartment and returns 10 minutes later (here the only requirement is that the system know that there are still persons inside)
  • The three leave (the system should know that there is still someone inside).
  • Much later, the sleeper gets up, wanders around for half an hour and then leaves the apartment (the system should track his position by room with a lag no more than several seconds, and know when he leaves that there is now no one inside).

I have no pets.

share|improve this question
1  
I know of a project to track people indoors using dead reckoning and RFID-based fiducials. Maybe a little overkill for a home hobby project, but still pretty neat. – Byte56 Jun 29 '12 at 22:35
1  
Those people counting systems are neat: youtube.com/watch?v=BiTuFXuFoPY&feature=player_embedded. I think they use PIR. – SimpleCoder Jun 30 '12 at 18:51
Apparently, PIR is the way to go. Maybe I should toss a dozen of electret microphones and a contact switch at the main door. If you are interested, check this thread an year or two later - I hope I'll test all this and post a principal schematic of a working, extensible, robust, failsafe, chap (setup & maintenance costs). :) – Vorac Jul 2 '12 at 8:33
1  
I have the same problem, but we're two humans and 4 cats in our house. And PIR doesn't works reliably with pets. I tested many of them. they can be calibrated to filter out ONE of the cats, but when they enter in a room toghether, PIR triggers anyway... – Axeman Jul 2 '12 at 8:49
1  
I think that in the next experiment I'll try an rfid tag (in a form of bracelet, or ring, or something like) and a couple of medium distance RFID reader on each door, to detect not only the number of peoples entering or exiting a room, but also WHO they are (so the system can have a configuration for each person). And for the one-time guests... we'll cuff them to a tag when they enter the house... :D – Axeman Jul 2 '12 at 10:20
show 2 more comments

4 Answers

up vote 4 down vote accepted

Especially for a home hobby project I'd probably start with PIR (Passive InfraRed) sensors. They are cheap and very effective at detecting something warm like a human body moving around.

However, PIR sensors will not detect static warm objects like someone sleeping or sitting still on the couch. With enough PIR sensors around the place, you can probably infer where people are motionless by where you know there was movement and in what direction. PIR sensors don't inherently give you direction, but enough of them activated in sequence does. For example three sensors triggered in sequence in a hallway is a strong clue someone is walking down the hall in that direction. If you saw motion of someone entering a room and then motion in the room, but nothing at the doorway, then you can make a good guess the person that entered is still inside but motionless.

This system isn't foolproof, but PIR sensors are cheap and remarkably sensitive, so with enough of them I think you can get to quite a useable level.

One thing to keep in mind is that other warm moving things will trigger PIR sensors too, like pets moving about. If you have a dog, then aiming the sensors so they only see motion a few feet off the floor helps. Cats jump around a lot, but are smaller, so maybe there is a way to not trigger on cats. This system will be a lot easier if you know the only warm moving things are humans though.

share|improve this answer
The non-moving person detection case can be a problem. A few weeks ago I stayed in a hotel that used motion sensors of some sort to activate the bathroom lights. About 10% of the time when I was sitting/standing motionless the lights turned off. Since they normally stayed on I assume that whoever sold them the system added logic to detect the case but it was slightly buggy. I was never able to discern a pattern in how it failed. – Dan Neely Jun 29 '12 at 20:56

PIRs. I've tested Matsushita/Panasonic NaPiOn PIRs on my previous job, also for home automation, and they worked well. Those were motion detectors, which reacted on changes in the receiver's signal, but you can use presence detectors, which also give a signal if the detector receives a static signal.

I tested with different types of clothing, like a coat over a pullover, and it always detected me from several meters distance, so apparently the radiation from head and hands was already sufficient. So I guess a person sleeping under a blanket will be detected as well (unless maybe she's completely covered by it).

share|improve this answer

PIR is good at detecting moving humans.
If you have a number of them per room you can infer the presence of non mobing humans with reasonable success by tracking people and deciding where they are when they vanish "off the RADAR".

Doppler RADAR modules once common for door openers and now largely replaced by PIRs make excellent movement detectors. You can make your own with relative ease. They also detect moving cats and dogs and flapping curtains etc.
Detection can be limited to humans by bandpass filtering the output. I'm told that human joints produce articulation frequencies which are unique - especially not found at the same frequency in cats and dogs. I was told tat this is a very reliable people detector.

Ultrasound is liable to be less good than PIR's or RADAR

Other systems you mention may be able to be triggered in a beam counter type role but lack the actual person detection capability of PIR and RADAR.

share|improve this answer
I would be concerned that a PIR with "dead spot tracking" might get confused by groups of people. For example: you're monitoring a hall leading to a room and 2 people went into the room and 1 went out. If the 2 people were walking side by side then you might see it as a single person, leading you to believe that there were no people remaining in the room when in fact there is 1. – David Kessner Jun 30 '12 at 4:26

I was thinking is a good way to detect prescence is using a some electronic design that have the capacity to detect the weight or deformation of the floor in the room to detect the people (obiously diference is some big like 50 kg avrg), only adjusting the room weight before prescence of humans and that would be the master measure comparing with when a human access to the room and then detect by the diference of weight.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.