HC-SR501 PIR issue's
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
HC-SR501 PIR issue's
Anybody who can help me :
Used a hc-sr501 (PIR) on a ESP (sonoff) :
, But this sensors detects movement, while i know for sure there's no movement
As you find out, its every x seconds .
Anybody who can help me
Used a hc-sr501 (PIR) on a ESP (sonoff) :
, But this sensors detects movement, while i know for sure there's no movement
As you find out, its every x seconds .
Anybody who can help me
Re: HC-SR501 PIR issue's
Yep same issues I had/have.
I wrapped the pir wires in foil then grounded the foil and that worked pretty much so then I tried using coax to connect the pir and that also worked.
I wrapped the pir wires in foil then grounded the foil and that worked pretty much so then I tried using coax to connect the pir and that also worked.
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Could you send me some pictures ? You only wrapped the PCB i think ?cherowley wrote:Yep same issues I had/have.
I wrapped the pir wires in foil then grounded the foil and that worked pretty much so then I tried using coax to connect the pir and that also worked.
And did you use COAX as connector cable instead of the standard cable ( dev board)
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
I just changed the singal cable to a piece of coax, but still it detects motion while there absolutely no motion.cherowley wrote:Yep same issues I had/have.
I wrapped the pir wires in foil then grounded the foil and that worked pretty much so then I tried using coax to connect the pir and that also worked.
Did you also ground this coax cable to the earth?
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Even more strange : when I completely disconnect this PIR thereally still some detected motion .......
Looks like interference or something
Looks like interference or something
Re: HC-SR501 PIR issue's
Same for me.
I'm running ESPEasy 107.
In my case the PIR sensor is almost constantly on "ON".
I used to run it on a arduino pro mini but decided to put it on an espeasy (nodemcu 1.0)
If I simply put it back on the pro mini it functions flawless. When I reconnect it to the espeasy it goes haywire.
On the pro mini it requires no extra actions, so I did not try coax cable or whatever on the espeasy.
The espeasy also runs 2 ds18b20 for my freezer/cooler combi.
I'm running ESPEasy 107.
In my case the PIR sensor is almost constantly on "ON".
I used to run it on a arduino pro mini but decided to put it on an espeasy (nodemcu 1.0)
If I simply put it back on the pro mini it functions flawless. When I reconnect it to the espeasy it goes haywire.
On the pro mini it requires no extra actions, so I did not try coax cable or whatever on the espeasy.
The espeasy also runs 2 ds18b20 for my freezer/cooler combi.
Re: HC-SR501 PIR issue's
Did you try to experiment with the pullup tickbox?
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Yep i did:manjh wrote:Did you try to experiment with the pullup tickbox?
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Anybody with a working solution ?
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Nobody a working solution? Pull down resistor? One other solutions please?the cosmic gate wrote:Anybody with a working solution ?
(Getting sick of the lamp which switches on etc when not needed)
Re: HC-SR501 PIR issue's
I had the same problems in a test set-up - as long as the PIR sits behind / next to the ESP, a lot of false alarms
This has nothing to do with Software / Pull-Ups,..., but it´s because of the cheap design of the PIR
You could either try to, as suggested, put some shielding metal (grounded) between ESP and PIR, or find another set-up where the ESP is a few centimeters away from the PIR
This has nothing to do with Software / Pull-Ups,..., but it´s because of the cheap design of the PIR
You could either try to, as suggested, put some shielding metal (grounded) between ESP and PIR, or find another set-up where the ESP is a few centimeters away from the PIR
Re: HC-SR501 PIR issue's
(Was a week on holiday)
Please read this article. It describes how to use the PIR sensor on 3.3V without soldering. I already did that on my arduino pro mini but used the 5V on my nodemcu (well, actually: I tried to use 5V but that didn't work).
I now connected the PIR data wire to GPIO14 (~D5) and the power (via PIR sensor 3.3V connection) to 3.3V and GND to GND (of course). It works flawless. I also tried with GPIO0 (~D3) and that works just as well.
No shielding, no special cables. First with 3 short dupont wires, now with unshielded 1½ meter wires.
Config:
Please read this article. It describes how to use the PIR sensor on 3.3V without soldering. I already did that on my arduino pro mini but used the 5V on my nodemcu (well, actually: I tried to use 5V but that didn't work).
I now connected the PIR data wire to GPIO14 (~D5) and the power (via PIR sensor 3.3V connection) to 3.3V and GND to GND (of course). It works flawless. I also tried with GPIO0 (~D3) and that works just as well.
No shielding, no special cables. First with 3 short dupont wires, now with unshielded 1½ meter wires.
Config:
Re: HC-SR501 PIR issue's
That`s why it works, the cable doesn´t have to be shielded, but you need a certain distance between ESP and PIRnow with unshielded 1½ meter wires.
Most critical, in my experience, is if the PIR sits in front of the ESP
Re: HC-SR501 PIR issue's
No, that's why I mentioned:kr0815 wrote:That`s why it works, the cable doesn´t have to be shielded, but you need a certain distance between ESP and PIRnow with unshielded 1½ meter wires.
Most critical, in my experience, is if the PIR sits in front of the ESP
It doesn't make any difference for me: short (10 cm) or long wires.hvdwolf wrote:I now connected the PIR data wire to GPIO14 (~D5) and the power (via PIR sensor 3.3V connection) to 3.3V and GND to GND (of course). It works flawless. I also tried with GPIO0 (~D3) and that works just as well.
No shielding, no special cables. First with 3 short dupont wires, now with unshielded 1½ meter wires.
Edit: Now I understand the confusion. I should have typed: "both with 3 short dupont wires as well as with unshielded 1½ meter wires."
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
are there people with the same problem and even beter a solution for this problem
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Just did one other mod on the pir side, soldered on the pin Instead of the voltage divider.
But there's still the same issue every 3 seconds on/off.
Also replacedo the pir, but nothing
More/ other solutions?
But there's still the same issue every 3 seconds on/off.
Also replacedo the pir, but nothing
More/ other solutions?
Re: HC-SR501 PIR issue's
As i said earlier, you need distance between PIR and ESP - Did you try that ?
Re: HC-SR501 PIR issue's
I had a similar problem with different hardware.
Used a standalone PIR sensor, that gives it's signal thru 433MHz. It was located about 1 meter from the RFLink unit: the PIR was triggered far too often, also when there was nobody at home to trigger it.
It might have been the LED on the RFLink that triggered it, or maybe some other kind of interference.
Fact was that when I moved the PIR sensor to another location, it worked just fine...
Used a standalone PIR sensor, that gives it's signal thru 433MHz. It was located about 1 meter from the RFLink unit: the PIR was triggered far too often, also when there was nobody at home to trigger it.
It might have been the LED on the RFLink that triggered it, or maybe some other kind of interference.
Fact was that when I moved the PIR sensor to another location, it worked just fine...
-
- Normal user
- Posts: 320
- Joined: 15 Apr 2015, 14:17
Re: HC-SR501 PIR issue's
Okay,
I ordered a few days ago this item:
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
I attached it to a test esp module, i must say, it works great.
Have it running for two days now, no false positives, it's mounted inside a closet.
After a little ajustments it covers my whole living room, it's sensitive enough to notice people when watching tv on the couch.
At first, it also noticed when a walked outside, trough the glass after a little adjusting it works fine.
I realy like the fact that it's sensitive, it can be mounted inside a closet, totaly invisible but still very responsive
No more pir's for me.. looking trough walls / windows, how nice is that
I ordered a few days ago this item:
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
I attached it to a test esp module, i must say, it works great.
Have it running for two days now, no false positives, it's mounted inside a closet.
After a little ajustments it covers my whole living room, it's sensitive enough to notice people when watching tv on the couch.
At first, it also noticed when a walked outside, trough the glass after a little adjusting it works fine.
I realy like the fact that it's sensitive, it can be mounted inside a closet, totaly invisible but still very responsive
No more pir's for me.. looking trough walls / windows, how nice is that
-
- Normal user
- Posts: 102
- Joined: 14 Nov 2015, 20:17
Re: HC-SR501 PIR issue's
Can you share the adjustments you made ?rtenklooster wrote:Okay,
I ordered a few days ago this item:
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
I attached it to a test esp module, i must say, it works great.
Have it running for two days now, no false positives, it's mounted inside a closet.
After a little ajustments it covers my whole living room, it's sensitive enough to notice people when watching tv on the couch.
At first, it also noticed when a walked outside, trough the glass after a little adjusting it works fine.
I realy like the fact that it's sensitive, it can be mounted inside a closet, totaly invisible but still very responsive
No more pir's for me.. looking trough walls / windows, how nice is that
I want to have a "pir" alike solution for just the hall / Lobby, when somebody entered it ( to go outside - exit the house / or enter the hall on the first floor)
-
- Normal user
- Posts: 320
- Joined: 15 Apr 2015, 14:17
Re: HC-SR501 PIR issue's
I replaced the sensitivity resistor with a 47K
The time resistor with 4.7K.
Need to finetune a little bit because i just noticed, when my wife goes to the toilet at night, i got a (false) positive from the sensor one floor lower in the living room.
The time resistor with 4.7K.
Need to finetune a little bit because i just noticed, when my wife goes to the toilet at night, i got a (false) positive from the sensor one floor lower in the living room.
-
- Normal user
- Posts: 103
- Joined: 16 Sep 2015, 20:32
Re: HC-SR501 PIR issue's
Just be glad it only tranfers movement, not smellrtenklooster wrote:I when my wife goes to the toilet at night, i got a (false) positive from the sensor one floor lower in the living room.
Re: HC-SR501 PIR issue's
@ NietGiftig
I believe you are mistaken a radarsensor for this type of sensor:
http://www.aliexpress.com/item/DC-5V-MQ ... dc9826dc88
I believe you are mistaken a radarsensor for this type of sensor:
http://www.aliexpress.com/item/DC-5V-MQ ... dc9826dc88
Re: HC-SR501 PIR issue's
i ordered six of these from rtenkloosters post:
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
and will try them out...
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
and will try them out...
-
- Normal user
- Posts: 320
- Joined: 15 Apr 2015, 14:17
Re: HC-SR501 PIR issue's
Nice The sensor in my living room is very stable and has no false positives. It's mounted behind the sofa, so its:tozett wrote:i ordered six of these from rtenkloosters post:
http://www.aliexpress.com/item/5-8GHZ-M ... 85648.html
and will try them out...
outside | wall | central heating radiator | RADAR | Sofa
The central heating radiator act's as a shield, so no false positives when someone walks outside.
The sensor on the upper floor however, is giving some false positives.
I'm thinking about some minor tweaking te resolve the false positive's when there's movement detected downstairs.
My plan is to set the delay to the 1 second minimum, and use rules + timers to filter the output.
The idea: only send data to domoticz when x number of triggers appeared in x seconds.
Maybe my device is faulty, i ordered a few new ones. However if the new one is a little to sensitive i might give this idea a try.
In order for this to work, i need global variables, for as far as i know those are not present in the rules section.
I have seen this as a feature request somewhere, this might be a good idea.
So the rule i have in mind wil look something like this (just for the idea):
Code: Select all
On Rules#Timer=1 do
Globl#Motion 0
endon
On Radar#Switch=1 do
timerSet,1,30
Global#Motion++
if [Global#Motion]>2
// Send to domoticz
endif
endon
Re: HC-SR501 PIR issue's
Is the radar 5.8Ghz the best option?
Re: HC-SR501 PIR issue's
Would be glad about FEEDBACK....rtenklooster wrote:I replaced the sensitivity resistor with a 47K
The time resistor with 4.7K.
Need to finetune a little bit because i just noticed, when my wife goes to the toilet at night, i got a (false) positive from the sensor one floor lower in the living room.
because i finally managed to try one of my 6 month old "new" RADAR sensors.
i used some info from CNX and Scargill
i assumed they would trigger all the time, if i sit directly in front of them.
instead it seems to me, they are not "that" sensitive at all.
i made a rule to switch a led, if the RADAR switch goes to 1, but it does this only sometimes. i feel.
do i have any mistake in my config, or is this "slow" as a real PIR...?
i would be glad, if anybody could share some experience with the RADAR module...
- Attachments
-
- radar.png (174.04 KiB) Viewed 29256 times
-
- radar2.png (29.36 KiB) Viewed 29256 times
-
- radar3.png (10.09 KiB) Viewed 29256 times
Re: HC-SR501 PIR issue's
i left all default resistors in place,
means probably 20k for sensitivty (10-100k, higher resistance is less sensitivity, like a comment wrote)
and also default for time (30s) (as i checked later, on my pcb there is _no_ resistor ~ 30sec ??)
means probably 20k for sensitivty (10-100k, higher resistance is less sensitivity, like a comment wrote)
and also default for time (30s) (as i checked later, on my pcb there is _no_ resistor ~ 30sec ??)
- Attachments
-
- Microwave_Radar_Module.jpg (62.35 KiB) Viewed 29255 times
Last edited by tozett on 17 Dec 2016, 11:19, edited 2 times in total.
Re: HC-SR501 PIR issue's
new info from aliexpress seller website:
- Attachments
-
- HTB1Y54.JFXXXXX3aXXXq6xXFXXXq.jpg (122.99 KiB) Viewed 29239 times
Re: HC-SR501 PIR issue's
any updates?
Located in Belgium, Bruges. Working on a full DIY domoticz setup with ESPEasy.
Re: HC-SR501 PIR issue's
i played with the radar-pir.
looks they are working ok, but they have 360 degree observation.
i put one in a tin-can and tried to limit it to 100 degree with that.
but i had to put this on hold. i am short of time ...
meanwhile i had a problem with rfid on my frontdoor and i am trying to get this solved first.
the rfid-reader has a longer range, buti cant get it to work as wiegand-input to espeasy.
must solve this first...
looks they are working ok, but they have 360 degree observation.
i put one in a tin-can and tried to limit it to 100 degree with that.
but i had to put this on hold. i am short of time ...
meanwhile i had a problem with rfid on my frontdoor and i am trying to get this solved first.
the rfid-reader has a longer range, buti cant get it to work as wiegand-input to espeasy.
must solve this first...
Who is online
Users browsing this forum: No registered users and 4 guests