device detects movement?

owenrivera

New member
Joined
Feb 26, 2011
Messages
1
Programming Experience
Beginner
Hello Im working with my project. I have a device called PIR (Passive Infrared Resistor), capable of detecting any kinds of movement. When the device reached the maximum limit of movement, the red light will turn on. The output of my device is -5v. I want my program to respond when my device detects movement. How can I do that? Pls help me. Thank you in advance.
 
That is not enough detail to even think about providing advice. You will need to see if you can find any documentation for your device (datasheets, programming guides...etc) and read through that. You need to know how the device connects to your computer (USB, RS232, LAN?) and how to communicate with the device while it is connected....SCPI, custom protocol, etc.

The documentation will probably have commands, etc, to get the device's motion detected state...
 
Your PIR basically just 'opens' the circuit when its activated? So you need some kind of interface between the PC and the link.

Maybe some Kind of serial relay board? USB? Or, you could maybe use the serial port, but have another device at the PIR end to send data to the PC?

How did you want to connect it? Do you have to use PIR? Could you use a webcam and check for significant changes in the image? (for example)

Give us some more info? :)
 
Back
Top