Motion Sensor

All about Arduino, Jeenode and other Clones (hardware & Software)

Moderator: Mdamen

Motion Sensor

Postby Digit » Thu May 27, 2010 10:01 pm

No, this is not some special add-on for my ASUS TOP.. it's just a Duemilanove with a PIR sensor attached to it:

DSC_2898_c_resize.jpg
ASUS TOP powering an Arduino with PIR
DSC_2898_c_resize.jpg (45.14 KiB) Viewed 4658 times


And the ASUS TOP, which is being used as my Domotica GUI in the living-room, is only used to provide power to the Duemilanove.
Somewhere in October 2009 i bought 2 PIR sensors, but after some brief testing these PIR sensors were stored in a drawer and nothing has been done with them since then. Since i intend to create my own motion sensor someday, i put one of these PIRs on a breadboard and attached it to an unused Arduino. And of course, the most logical place to test this sensor and learn something about how it performs, is the living-room. The office is to small to learn anything about how this sensor behaves with motion from different angles, distances and the output it provides. A breadboard with the Duemilanove, PIR sensor and LED, stuck to the ASUS TOP with tape, seemed like the best compromise for real life testing without making the living-room look like it's an extension of my hobby room. :)

From what I've seen so far, this sensor is sensitive enough to be used successfully, although the digital output is not as stable as i expected. During continuous motion (as in my daughter dancing in front of the PIR for 2 minutes) i still saw the digital output dropping to 0 (meaning no motion) for a large number of short periods. Strange? Well, at least it's not what i expected..

This means i'll have to add some debounce logic into the code that handles this PIR to eliminate unwanted transmissions of these "no motion" events; cause if i don't, i'm pretty sure i can change batteries every couple of weeks... cause that's the goal of all of this; creating my own battery powered motion sensor.
What i'm really looking forward to is putting the sensor in it's own, very small case and place it at the best spot for motion detection and put the rest of the hardware (batteries, JeeNode and wireless stuff) in another box, somewhere nearby but out of sight...
Yes, you can do that if you DIY :D
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Motion Sensor

Postby Mdamen » Thu May 27, 2010 10:53 pm

I like the idea of putting the sensor out of sight, most motion sensors are really ugly.. (MS13A for example.. bleh :-) )
Mdamen
Forum Moderator
Forum Moderator
 
Posts: 390
Joined: November 2008
Location: Netherlands

Re: Motion Sensor

Postby Digit » Mon Jun 14, 2010 8:44 pm

Another chapter in creating my own motion sensor:
http://blog.hekkers.net/2010/06/13/moti ... ext-stage/

This week I'll be working on the software part; when this is finished, the sensor is ready to use :)
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Motion Sensor

Postby Alexander » Mon Jun 14, 2010 8:56 pm

Digit, why would you not add the pir to the xbee box? I guess because of the size or not?
Alexander
Alexander
Global Moderator
Global Moderator
 
Posts: 1532
Joined: March 2007
Location: Netherlands

Re: Motion Sensor

Postby Digit » Mon Jun 14, 2010 9:11 pm

You're right.
The small enclosure that holds the PIR will be visible, the rest will be out of sight (behind curtains, under the stairs or whatever i can use).
This means a significant visible size reduction compared to the MS13's :)
Here's a picture that show both MS13 and my PIR enclosure:
http://blog.hekkers.net/2010/06/08/smal ... nclosures/
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands

Re: Motion Sensor

Postby Harry » Mon Jun 14, 2010 11:06 pm

what do u use for measure light intensity, i notised on your photo.
you display a Lux value, :?:
User avatar
Harry
Member
Member
 
Posts: 314
Joined: April 2006
Location: Drachten

Re: Motion Sensor

Postby Digit » Mon Jun 14, 2010 11:29 pm

You noticed well! It's being displayed extra large so i can still read it from the bench without glasses :lol:
This is another project I'm working on: measuring light intensity with the so called Lux Plug:
http://News.jeelabs.org/2010/03/21/lux-plug/
My goal is to switch lights in for example the living room at the right lux value when it gets to dark.
Advantage of this sensor is that you get an analog value instead of just "dark" or "light".
This is an ongoing project; when i can tell something meaningful about it, I'm sure a topic will be spent on this Lux Plug :)
User avatar
Digit
Global Moderator
Global Moderator
 
Posts: 3388
Joined: March 2006
Location: Netherlands


Return to Raspberry, Arduino, Cubietruck and other clones Forum

Who is online

Users browsing this forum: No registered users and 1 guest