Please login or register.

Login with username, password and session length

Author Topic: Sensing direction of movement  (Read 3193 times)

Dr.Fiero

  • Full Member
  • ***
  • Helpful Post Rating: 7
  • Posts: 71
Sensing direction of movement
« on: October 04, 2010, 11:09:34 AM »

This may have been hashed out before, but I couldn't find anything with a search....

What I'm trying to do, is sense if someone is walking UP the driveway (towards the house), or DOWN (away from the house).
No sense in turning on the inside lights if I'm leaving, right!

I have a motion sensor at the door (i6) and one at the bottom of the driveway (i7).

If we could write in code, I'd do it as and IF/THEN statement (with apologies to BASIC haters!). 
Is there a way to do that with AHP that I've never seen, or am I forced to set a flag, clear them, etc etc?  (pita!).
Logged

Puck

  • Advanced Member
  • Hero Member
  • ******
  • Helpful Post Rating: 171
  • Posts: 1799
Re: Sensing direction of movement
« Reply #1 on: October 04, 2010, 11:53:06 AM »

...or am I forced to set a flag, clear them, etc etc?  (pita!).

Why are flags a "pita"  ???

I think they are a very good tool for controlling conditions. I used a similar setup for determining the direction of travel on a set of indoor stairs.

Anyways, what you want to do is very easily done in AHP, and it is flags that make the task easy. You could also used your monitored house code for conditions if you find flags to be too much of a "pita".
Logged

Don N

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 311
Re: Sensing direction of movement
« Reply #2 on: October 04, 2010, 02:11:49 PM »

Dr.Fiero -- not sure if this will help your situation.  But I use a monitored house code to accomplish a similar task.  I have a motion sensor mounted inside the driver's door in each of our vehicles.  Each car has a separated monitored code.  When the driver opens the car door to get into any car that car's motion sensor triggers a macro that turns on a monitored house code.  Certain events are then activated.  When any car returns (driver door opened) another macro is triggered by the motion sensor and turns off the monitored house code.  Again, certain events are then activated.  The monitored house code works great in my setup.
« Last Edit: October 04, 2010, 02:13:41 PM by Don N »
Logged

calldrin

  • Full Member
  • ***
  • Helpful Post Rating: 0
  • Posts: 48
Re: Sensing direction of movement
« Reply #3 on: October 04, 2010, 04:36:34 PM »

Dr.Fiero -- not sure if this will help your situation.  But I use a monitored house code to accomplish a similar task.  I have a motion sensor mounted inside the driver's door in each of our vehicles.  Each car has a separated monitored code.  When the driver opens the car door to get into any car that car's motion sensor triggers a macro that turns on a monitored house code.  Certain events are then activated.  When any car returns (driver door opened) another macro is triggered by the motion sensor and turns off the monitored house code.  Again, certain events are then activated.  The monitored house code works great in my setup.

Thanks for this interesting idea.
Can you please send more details?
What sensors are you using and where and how are  you mounting them in the car?
What events are you running when when triggered?
What is the range of the sensors?

Thank you,
Chuck
Logged

Don N

  • Hero Member
  • *****
  • Helpful Post Rating: 14
  • Posts: 311
Re: Sensing direction of movement
« Reply #4 on: October 04, 2010, 07:57:22 PM »

calldrin -- The sensors I'm using are the MS16A motion sensor.  And they are just mounted (or wedged) between the seat and the door sill.  There is plenty of room in all three of our cars to do that.  I didn't have to permanently attach them.  They kind of wedged themselves in there nice and neat.  There are all sorts of things you can do; turn on lights, music, TV, cameras, announcements (using Bill's BXVC (Bill's X10 Voice Commander)), etc.

I have a RR501 Tranceiver in the garage that receives the RF from the motion sensors and then sends the information via the PLC to my AH15A where the macros are stored.  Also, I have an X10 "stick-a-switch" that is activated before someone drives away in a car.  This switch turns on the outside cameras and sets a flag.  That way if I'm working on the cars in the garage (opening/closing the driver's door) nothing happens unless the flag is set by the x!0 "stick-a switch."

Also, I have a PSC01 PowerFlash module for each garage door that acts as another failsafe thingy.  When the garage door is open/closed it checks to see if the X10 "stick-a-switch" has has been turned on before macros are initiated.  This kind of prevents lights, TV, music, etc. being turned on incorrectly.

Hope this helps.     
Logged
 

X10.com | About X10 | X10 Security Systems | Cameras| Package Deals
© Copyright 2014-2016 X10.com All rights reserved.