Linux drivers for USB Motion Detector from Make: 16

Technology
Linux drivers for USB Motion Detector from Make: 16

USB motion detector

pmgeahan has posted Linux drivers for the USB Motion Detector from Make: 16:

Thought others might be interested in this; I built the USB motion detector in MAKE 16. The driver program provided was for Windows and was used to make a presentation work.

In my case, I’m a Linux guy, so I hacked together an executable to drive the detector. Strictly speaking, at least on Ubuntu, there’s already a HID driver for the USBMicro interface, but it doesn’t do anything. This program triggers on the motion and, in this case, takes a photo with your webcam. A security system, if you will.

Anyhow, the program is pretty simple, all told. Couple of caveats: First, this has been tested on an Ubuntu box running 2.6.27-11 only. You need libusb to make this thing work. Also, you need privileges on the USB device. I wasn’t able to find exactly how to make this work on my box (couldn’t figure out which /dev entry to make readable/writable). I chose to run it suid root. I know, not the greatest idea, but it works. If you can figure out what to do, lemme know.

Make 16: Linux Drivers for USB Motion Detector

What will the next generation of Make: look like? We’re inviting you to shape the future by investing in Make:. By becoming an investor, you help decide what’s next. The future of Make: is in your hands. Learn More.

Tagged

I'm a tinkerer and finally reached the point where I fix more things than I break. When I'm not tinkering, I'm probably editing a book for Maker Media.

View more articles by Brian Jepson
Discuss this article with the rest of the community on our Discord server!

ADVERTISEMENT

Escape to an island of imagination + innovation as Maker Faire Bay Area returns for its 16th iteration!

Prices Increase in....

Days
Hours
Minutes
Seconds
FEEDBACK