Alarm System:Motion Detector

Digital Fiber, Photoelectric, Laser Range, Optical, Temperature, Rotary Encoder, Ultrasonic, Gas, Gyro, Accelerometer, FlexiBend, Flexiforce, Compass......

Alarm System:Motion Detector

Postby alexander » Fri Mar 25, 2011 4:41 am

if i want to change the PIR sensor with ultrasonic sensor Maxbotic LV-EZ1 and using only the pulse width output from the sensor, what things i suppose to do or change in this DIY Alarm System:Motion Detector project?
alexander
Fledgling
 
Posts: 1
Joined: Fri Mar 25, 2011 4:27 am

Re: Alarm System:Motion Detector

Postby shiyan » Fri Mar 25, 2011 11:25 pm

You will need to explain a bit on current setup you have. What is the DIY alarm system using to detect the PIR sensor? Which IO pin? Not all of us know all the product from Cytron, as I am not Cytron staff.

PWM output normally can tie to CCP, use the capture mode and measure the rising edge and falling edge of PWM pulses. You can also use interrupt such as interrupt on change or external interrupt to capture the pulses, and calculate the time in ISR. You can also use any of the digital input pin to do that if you can afford to waste the code just to monitor the pulses :)
User avatar
shiyan
Amateur
 
Posts: 189
Joined: Wed Jun 09, 2010 10:59 am


Return to Sensor

Who is online

Users browsing this forum: No registered users and 6 guests

cron