I build a cheap pir sensor based on a HC-SR501 and a ESP8266 usb powered triggering a variable with the pimatic api over Wifi. In total it cost a €6,- when buying in China using ebay. I had to build in some false positives filters in the code and pimatic because pir sensors generate false positives due wifi radiation, power spikes and direct sunlight exposure.
-
Kabelloser Bewegungsmelder PIR
-
I have purchased a Xiaomi gateway and one PIR sensor, just to see how that works out. Battery life seems to be very good with these small devices Currently waiting for delivery from China.
Big plus for these Xiaomi devices the battery status and lux (although the lux is not reported to be stable by users).In the meantime I have the 2 China PIR’s on 315 Mhz running with the old/used battery’s. For both devices I changed the receiving protocol matching with that it’s sending when using a used battery.
It works, but I have the feeling the signal is weaker and I have to enlarge the retractable antenna to get good reception.
First test was with a PIR in the hallway, now I have added one to the livingroom, in just 5 days that PIR got 1790 hits, but this PIR has no timeout or whatsoever. If it sees movement it will send, regardless of the fact it did a send just 7 seconds ago.Having PIR’s is so damn nice I love it when I wakeup in the morning and stumble down the stair and instantly see all the lights go on.
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
@leader21 Thanks for the feedback. I agree the battery life time depends much on the number of triggers and this way the acceptance depnds much on the usage setting. Like @koffienl pointed out a PIR in the hallway you may have a high frequency of triggers which may finish the battery in a few days/weeks. It may be ok though for a less frequenctly occupied space, e.g. the cellar. To be able to roughly compare battery it is required to count the number of triggers/hits like @koffienl did.
@koffienl Regarding Xiaomi gateway I am also testing this right now which may be a good choice if you use it for several smart home applications as sensors/actors are relatively cheap. My biggest dislike right now is the “chattiness” of the gateway which talks to several hosts on Amazon Cloud and China and produces a lot of traffic.
My advice is to block this traffic which is relatively easy to accomplish if your access router allows for blocking internet access for LAN devices. You may need to open it up again, however, if you need to pair new devices (haven’t tested this yet, however)."It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Good point about the cloud connections. I already read about the Xiaomi gateway and plan to do the developer trick so I can grab the UDP multicast in my local LAN en tell my router to forbid internet access for that MAC address.
I really don’t understand why such devices should talk to some server just to handle local traffic of devices.Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
I have a PIR GS - WMS08 Wireless PIR Motion Detection in the kitchen, where the 9V battery left after 8427 trips.
-
Try to see in the homeduino debug log if it’s not still sending some other protocols, just like my China PIR does
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Hello,
I have also a Kerui P819 without a manual - it was a present. How can i get the right values (protocol, unit & ID)
for my device, in order to registrate it as a motion detector? I am an absolute beginner and i don’t know how to
read out the signals from the pir. BTW: Homeduino is installed and working (with switches from Elro and Brennenstuhl).Best regards!
Und jetzt vorsichtshalber alles noch mal auf Deutsch, da fühle ich mich wohler
Ich habe auch den von @leader21 verwendeten Bewegungsmelder Kerui P819. Leider finde ich an diesem Gerät keine Einstellungsmöglichkeiten, wie beispielsweise DIP-Schalter bei Funksteckdosen, um den Gerätecode festzulegen.
Wie erhalte ich die benötigten Werte, also Art des verwendeten Protokolls, unit & ID, um den Kerui in pimatic
anmelden zu können? Homeduino ist installiert und wird erfolgreich zum Schalten von Funksteckdosen genutzt.Ich wäre dir sehr dankbar, wenn du deinen Eintrag für deinen pir von Kerui hier posten und mir
erklären könntest, wie ich an die relevanten Anmeldedaten gelange. Habe da ein großes bewegungsloses Brett vorm
Kopp.Vielen Dank im Voraus und beste Grüße
-
Habe es jetzt doch selbst hinbekommen, dass mir was angezeigt wird, wenn ich den Kerui nah genug an den Funkempfänger halte. Gestern klappte das komischerweise nicht. Muss jetzt nur noch aus den unzähligen Ergebnissen das beste/passende auswählen und hoffen, dass der ganze Spaß auch dann klappt, wenn sich der PIR ca. 10m entfernt vom Empfänger befindet.
Beste Grüße.
-
Do you have an external antenna attached to the receiver? What kind of receiver do you use?
-
I am using a cheap (1 EUR) pair of Tx/Rx modules. The transmitter is good, the super regenerative receiver
however is a bit crappy: without antenna the reach is maybe no further than a meter, but even with
a 17,2cm long antenna (a wire) it is marginally more, round about 2-3m, even with free line of sight.
Now I ordered a super heterodyne receiver (rx6). -
@alter_knochen said in Kabelloser Bewegungsmelder PIR:
now I ordered a super heterodyne receiver (rx6).
Yes, that will work much better.
-
@alter_knochen said in Kabelloser Bewegungsmelder PIR:
Now I ordered a super heterodyne receiver (rx6).
Good choice.
I also recommend to use capacitors to denoise the power rail. See the following page for details (a bit further down, section “RXB6”): http://www.rflink.nl/blog2/wiringIt is also better to have a shielded version of the receiver.
"It always takes longer than you expect, even when you take into account Hofstadter's Law.", Hofstadter's Law
-
Now I have found a good instruction how to make a 433MHz (air cooled) antenna.
–> http://www.byvac.com/downloads/RLnn/How-to-make-a-Air-Cooled-433MHz-antenna.pdf
Many people confirm to the author of this instruction that it dramatically increased the range of the cheap
Tx/Rx pair. The distance (with the cheap receiver as well as the transmitter) that can be covered easily goes
to 25 m with line of sight, but also in-house the distance will be increased reaching other rooms with concrete
walls in between, were earlier 3 meters with line of sight would be pushing the limits already. Says one of the
testers …I will try it.
-
I bought two of those antennas and soldered them to my sender/receiver. No difference between a single wire and an “antenna”.
-
Currently testing the Xiaomi PIR, and I have to say : I’m impressed. Very good stuff, a smart PIR that knows when and what to send. The lux transmission is also a plus.
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
@koffienl
I totally agree with you - a great device.
But I was surprised about the brightness sensor - I didn’t get any data.
Until I noticed that there are 2 versions - one with and one without brightness sensor.Greetings
Revo -
Correct, the v1 dose not have a lux sensor, the v2 does.
How do you gather data from the gateway? If you are able to see the realtime traffic that your program/script/plugin/whatever receives from the gateway you should see something about the version of the sensor and, if it does send, the lux.
Modelname of my v2 sensor issensor_motion.aq2
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm
-
Although I have made up my mind to move to the Xiaomi devices, the test is still running.
The cheap Chinese PIR’s are still functioning on their ‘low battery’ mode. the one in the living room has 22102 hits registered in the past 50 days.
I have a Chinese PIR in the hallway, about 1 meter above my RF receiver (receiver behind wooden door/wall), but still sometimes issues with reception - even with the antenne a bit retracted.
Pimatic is programmed to turn on some lights in the morning when some requirements are met.
When I walk down the stairs in the morning I see the red LED on the PIR noticing my movement. But nothing happens. Usually I stay a few seconds in the hallway to disarm my alarm. Enough time for a second detection. Most of the time the second detection is picked up by RF and the lights turn on.
I have not seen this kind of reception issues with the Xiaomi PIR, while the distance between PIR and 2.4Ghz gateway is much more compared with the PIR in the hallway.Waiting for another 2 xiaomi PIR’s on transit from China
Like my projects and help? Consider donating electroneum etnjwAKGPqF6omQWRmpp9u2BPyVDG9VuyRQjNJ1S8yfBdfR9qeUQ46kRy8KS2CNqbpNLRrsgmNW6F2TMzxmZgPrh6KctrkrYbm