LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 07-19-2011, 12:01 PM   #1
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Rep: Reputation: 60
USB motion sensor for linux


I would like to make a home security system which would upload images & audio when motion is senses. I have looked at a few usb options such as:
Oak_USB_Sensors
Go! Motion Sensor

I know I can use the webcam for motion detection as well however I would prefer something which does not keep the CPU running hot continuously, will work even in the dark & is more specific.

Regards,
Stefan
 
Old 07-19-2011, 01:32 PM   #2
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
I can't access the second link although I did look at the first link.
Acording to the datasheet, the Oak Move motion detector behaves as an HID! So, it can be made to work with Linux fairly easily! You might have to experiment a little but it should be do-able!
 
Old 07-19-2011, 02:13 PM   #3
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
I know I can use the webcam for motion detection as well however I would prefer something which does not keep the CPU running hot continuously, will work even in the dark & is more specific.
Motion-detection requires CPU. Think about it: "Look at the picture, look at the recent pictures, has anything significant changed? [now define "significant"]. Then do this 30 times a second (or whatever your camera's FPS is set for).

No camera will work in the dark, they all need some "light" even if it is IR.

Quote:
... & is more specific
to what ?

Take a look at motion though. It's good.
 
Old 07-21-2011, 12:02 AM   #4
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Original Poster
Rep: Reputation: 60
Quote:
Originally Posted by tredegar View Post
Motion-detection requires CPU. Think about it: "Look at the picture, look at the recent pictures, has anything significant changed? [now define "significant"]. Then do this 30 times a second (or whatever your camera's FPS is set for).

No camera will work in the dark, they all need some "light" even if it is IR.


to what ?

Take a look at motion though. It's good.
Thanks for the replies.

I have used 'motion' however I am using an old 400MHz CPU + 256Mb memory as the webcam & file server. Motion detection seems to keep the CPU tied up. A USB IR motion detection device should bypass this and leave the PC free for compressing all the images into a time lapse video. I thought that the IR motion does work in the dark - our motion activated night light seems to work well enough at night. By "more specific" I mean that the webcam motion detection does get affected by other things such as shadows & changes in ambient light.

I might fall back to using webcam motion detection however I have found one other device as well:
http://www.kslemb.com/content/view/9/10/

I would like to make sure that the device I get can easily be used in a Bash shell script which can upload files to a offsite server before I send $$$.

Regards,
Stefan
 
Old 07-23-2011, 12:53 AM   #5
qlue
Member
 
Registered: Aug 2009
Location: Umzinto, South Africa
Distribution: Crunchbangified Debian 8 (Jessie)
Posts: 747
Blog Entries: 1

Rep: Reputation: 172Reputation: 172
Quote:
Originally Posted by propofol View Post
Thanks for the replies.

I have used 'motion' however I am using an old 400MHz CPU + 256Mb memory as the webcam & file server. Motion detection seems to keep the CPU tied up. A USB IR motion detection device should bypass this and leave the PC free for compressing all the images into a time lapse video. I thought that the IR motion does work in the dark - our motion activated night light seems to work well enough at night. By "more specific" I mean that the webcam motion detection does get affected by other things such as shadows & changes in ambient light.

I might fall back to using webcam motion detection however I have found one other device as well:
http://www.kslemb.com/content/view/9/10/

I would like to make sure that the device I get can easily be used in a Bash shell script which can upload files to a offsite server before I send $$$.

Regards,
Stefan
There are two variants of that one. Glob-key behaves as a keyboard according to that description and is probably the better option. Glob-com uses the usb to serial approach which would need you to poll the device. It's your choice.
Passive Infrared motion sensors detect thermal energy emitted by warm bodied creatures. They will work in the dark, but you will still need light for the web-cam to record anything!
 
Old 10-25-2011, 07:54 PM   #6
tv0571
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
How did it work?

Curious to know if you got your USB motion detector working on Linux, and if so, how? I'd like to just be able to run get a motion-detector to trigger my SheevaPlug so that it can send me a SMS.
 
Old 10-27-2011, 01:32 AM   #7
propofol
Member
 
Registered: Nov 2007
Location: Seattle
Distribution: Debian Wheezy & Jessie; Ubuntu
Posts: 334

Original Poster
Rep: Reputation: 60
I ended up getting the GlobX device for US$55. Luckily they accepted Paypal. I had to use a Windows only utility once to program the device with a "Macro". Essentially it means you can program it to supply any key or key combination (ie Ctr-F11) which the device will then produce when it senses motion. Under Gnome or KDE this keyboard shortcut can then start the webcam script. My problem is that I want to implement this on a headless server and I have not tried to get working outside of a KDE. I will update this when I have it sorted out.

Regards,
Stefan

BTW Under KDE the way to add keyboard shortcuts is via "Settings->Computer Administration->Input Actions" then "New->Global Shortcut->Command/URL"

Last edited by propofol; 10-27-2011 at 06:33 PM.
 
Old 10-28-2011, 08:44 PM   #8
tv0571
LQ Newbie
 
Registered: Oct 2011
Posts: 2

Rep: Reputation: Disabled
Yes, please let us know what you come up with. Using a plug computer, I'd be doing it as a remote server also. Inserting a 'key catch' statement into some code that is always listening would work, and would give you the capability to do fun stuff like only trigger events between certain times or after certain duration of inactivity.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] TOSHIBA Hard Drive Impact Sensor (3D sensor) and Linux josephj Linux - Laptop and Netbook 4 11-06-2010 06:39 PM
Reducing the sensitvity of a USB Mouse motion? as400 Solaris / OpenSolaris 1 06-28-2008 09:38 PM
optical mouse as a motion sensor - writting an aplication in C++ using Linux alexandre_fs Programming 6 01-27-2008 09:25 PM
USB Optical Mouse as Position Sensor fuzzyash Linux - Software 2 03-17-2007 12:35 AM
Generating Interrupts to the USB sensor device lucky6969b Programming 1 03-31-2006 01:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 09:02 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration