A few years back one a customer had a PIR sensor designed by a third party, I'm not an analog guy so was happy enough with that. We took the schematic, did the layout and integrated it into a little housing. It's low volume but there were occasional field failures 1-2% where the sensor would oscillate indefinitely (i.e. for weeks until service team gets to it), as volume has increased it's becoming more of a pain for the service team as most of the units are very remote.
Where Murphy strikes is that we can't replicate the problem and have never seen it in production units. Even returned units power up fine for us.
The unit passed EMC immunity at the test house, although I can get it to oscillate by blasting it with 800-900MHz in a TEKBOX TEM cell at full power it doesn't stay oscillating when I turn the amplifier off. It's fine outside this band up to 1600MHz
It's battery powered so it can't be supply ripple, it even behaves on a noisy SMPS. Units are remote and as far away from electrical noise as you can get.
The circuit as provided to us is as attached. Apologies for the format I tidied it as best I could.
Layout is 4-Layer with internal ground and power planes, close attention paid to the routing of the sensitive signals.
It seems the original designer used this as a reference design:
https://www.st.com/resource/en/application_note/dm00096551-signal-conditioning-for-pyroelectric-passive-infrared-pir-sensors-stmicroelectronics.pdfTwo stages amplifier then into two comparators to give the two outputs, lowpass filters on both amplifier stages.
My thoughts/questions on the source of the issue (bearing in mind I'm no Op-Amp expert)
(1) The gain is set quite high, the customer wanted long range. Could this be the root cause? It doesn't explain why some units work totally fine for years Even increasing the gain to the point it occasionally false activates doesn't induce oscillation
(2) The 22nf on the outputs were part of the design handed to us. Could this capacitance be having a negative effect?
(3) The ESD diodes are ESDLIN1524BJ and were my idea in case static was the issue, though it seems to have had no effect.
(4) The outputs go to a PIC24F (via a shielded 250mm cable) which interrupt it from sleep mode, it does it's thing then goes back to sleep. We have ruled out firmware bug as the customer has had units on his bench which he observed oscillating. He was able to see the output go high/low on a meter.
My plan of attack is to try to replicate the problem by making the circuit "worse". Once I can replicate reliably I can figure countermeasures.
We have already tried and failed to replicate with:
- Increased gain
- Supply noise
- Increased Output capacitance
- EMI
Any analogue experts have any suggestions?