Relay versus direct logic for longer lifespan of product?
T Chap
Posts: 4,223
I use a Bosch PIR device and it is very reliable so far after a few years of in field use. However, I always remove the resistor that feeds the transistor which turns on the relay(5V) and run the voltage directly out to the Propeller. Several reasons for direct voltage, one is I do not want to hear the relay noise in some of the applications, but also I always feel like the relay has a finite number of clicks until it fails. This new project will be far greater detections than previous systems, and I am weighing if the standard off the shelf version may not be such a bad idea for ease of replacement down the road(if needed). If the Bosch dies for any reason, it is going to be a headache for the client as it is the door for the main entrance to a retail store, and it will be urgent to get it replaced. No problem with replacement, I can include a spare and avoid some of the stress. However, if you were making the decision, would you use a relay or direct output to hedge your bets?
Comments
-Phil
It's always a problem when you modify an existing device in a commercial installation. The manufacturer will not provide a warranty. It's extra work if it has to be replaced. If something goes wrong with a device connected to it (like your Propeller controller), you can't blame the sensor manufacturer. Relays are rated for a certain number of closures. The exact number depends on the relay and its construction. Worse case for a standard low voltage relay is over 100,000 cycles. With a reed relay, you may get over 5,000,000 cycles.
I would use the sensor as supplied by the manufacturer. If I didn't like some feature of the sensor, I'd look for someone else's product that fit my needs better. Sometimes you need to make compromises.
Mike, I am not concerned really about the warranty on the Bosch, PIR, it is a small expense to provide a spare to have on hand. Let's use 100,000 cycles as a lifespan reference. 250 detects a day * 365 = 91,250. The detects could be more, even double that.
Edit. In either case, the device can be removed with 2 screws, and three cables will be attached right behind the device with wire nuts for easy change out. The change out to a replacement has no bearing on what method is used, it is just three wirenuts.
Have the prop pin with a pullup resistor and debounce software so it would work with the unmodified PIR sensor. Modify the PIR sensor by removing the relay or cutting the trace from the transistor to the relay coil and using the transistor to pull the prop pin low.