Pages: [1]   Go Down
Author Topic: Best way to detect coming & going?  (Read 498 times)
0 Members and 1 Guest are viewing this topic.
Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

I currently have a Maxbotix Ultrasonic Rangefinder - LV-EZ1 hooked up to a wave shield.  When someone enter the room it plays a sound.  I want to detect when someone leaves the room as opposed to entering it and play a different sound.
I'm assuming I'll need two sensors where sensor a is closest to outside the room and sensor b is on the inside.  If sensor a is tripped first then play sound a.  If sensor b is tripped first, then play sound b.
What is the best way/ sensor combo to go about this?  I'm open to using any sensor.  
Logged

France
Offline Offline
Faraday Member
**
Karma: 36
Posts: 3436
There is an Arduino for that
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Your rangefinder returns you a distance?
So taking a few measures you can compute:
   - If the distance is decreasing the target is entering the room
   - If the distance is increasing the target in living the room
Logged

Copenhagen / Denmark
Offline Offline
Edison Member
*
Karma: 6
Posts: 2360
Do it !
View Profile
WWW
 Bigger Bigger  Smaller Smaller  Reset Reset

Of course they could be moving around in the room, and in that case you would not know.

A better aproach would be to have two sensors, IR beams or similar, and then check the order the beams was broken. 1 firs t then 2 = enter room. 2 first then 1 = leaving room.
Logged

Boston
Offline Offline
God Member
*****
Karma: 3
Posts: 575
Arduino rocks
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

Thanks, I'll order a couple of IR emitters & detectors from  Sparkfun.

Also, what is the best way to detect someone is standing directly in front of something hanging on the wall like a map?

Would a Sharp Infrared proximity sensor work?

I'm attempting to "animate" a room. Standing in fron of the map would turn a light on.
 smiley-wink
Logged

MD, USA
Offline Offline
God Member
*****
Karma: 2
Posts: 663
A jack of all trades and a master of none!
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

The range finder would be perfect for the map idea. Have it mounted over the map and pointing down in the are you want it to. They can also work on the doorway for entering and leaving. Just have them pointing straight down.
Logged

Pages: [1]   Go Up
Jump to: