Not the two-board solution I discussed a while ago that never really worked – this is a small, neat single board called an RCWL-0516 and here’s a Chinese link though if you get in touch with the fellow I mentioned at the Faire where I got mine – ABX-LABS (Ebay shop) he might have them. About £1 anyway.
So this board has 5 wires and not a lot of information out there, some of which is in Russian. I did found out enough to know that this unit is oscillating at around 3 Gig and you only need to use 3 of the 5 wires!
The unit will pick up movement up to 7m away and in the right circumstances can see right through wood! No silly comments about being irradiated please.
So I set it up on my bench, the 3 wires of interest are ground (obviously) VIN and VOUT. Stick 5v on VIN (will not work on 3v3) and a LED on VOUT – and you’re done – it works.
Well, that was easy and of course it WAS too easy. I took the board and applied it to one of our ESP8266 boards which have 5v – and took the output to Pin 14 which in the case of my software, is a de-bounced input which can send an automatic MQTT message on change. Job done – except – it would not work. It seemed over-sensitive but after more careful checking – it really wasn’t taking too much notice of movement – instead triggering fairly regularly ALL ON IT’s OWN! I tried putting a cap across the power, I tried putting a cap across the output – all to no avail.
In the process of having a gripe with Aidan that we’d been ripped, I put the board on my standalone test to show him it working – and decided to route ground and signal back to the ESP – it worked perfectly – then it twigged – ESP8266 boards are prone to putting spikes on the power lines when transmitting! I put a 10r resistor in series with the power and a tiny 330u 6v cap to ground at the Microwave board end – problem solved.
If you want to do something clever, the 16 pin logic chip – I stuck a scope on it and pin 12 gives off some interesting analog stuff!
In terms of sensitivity it pretty much works 360 degrees though supposedly it is most sensitive on the component side of the board direct on.
I spend half of my time waving my arms about at the normal room IR sensor to keep lights running – this I think will be MUCH better.