AM312 mini PIR?
Moderators: grovkillen, Stuntteam, TD-er
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
AM312 mini PIR?
Anyone able to help me out getting one of these working with ESP Easy?
https://www.aliexpress.com/item/Mini-IR ... 688bb8ffcf
https://www.aliexpress.com/item/Mini-IR ... 688bb8ffcf
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AM312 mini PIR?
I have used one of those, lots of false alarm. But you might get someone else to help since it should be possible to fix some of those false triggers.
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: AM312 mini PIR?
Same here. I've tested those sensors.
They work, simply as a switch. So just connect the output to a free GPIO and configure it to a pushbutton switch.
See https://www.letscontrolit.com/wiki/index.php/Switch
As Grovkillen said these modules a lot of false positives. Sensivity is not changeable so just some filtering of powersupply might help.
See https://www.letscontrolit.com/wiki/inde ... _positives.
Regards
Shardan
They work, simply as a switch. So just connect the output to a free GPIO and configure it to a pushbutton switch.
See https://www.letscontrolit.com/wiki/index.php/Switch
As Grovkillen said these modules a lot of false positives. Sensivity is not changeable so just some filtering of powersupply might help.
See https://www.letscontrolit.com/wiki/inde ... _positives.
Regards
Shardan
Regards
Shardan
Shardan
-
- Normal user
- Posts: 307
- Joined: 06 Nov 2016, 13:45
Re: AM312 mini PIR?
This PIR seems a simplified module of the HC-SR505 PIR sensor.
I use this one:
https://nl.aliexpress.com/item/HC-SR505 ... 22745.html
The HC-SR505 PIR sensor is sensitive to the 2.4Ghz WiFi.
To solve the false positives problem, I have added a 47pF cap over the input voltage.
With a shielding of isolation plus ALU tape connected to earth In this box, 230V conversion is on the left, ESP on the right.
So WiFi antenna and HC-SR505 PIR are very close to each other.
Thanks to the shielding, no false positives.
I use this one:
https://nl.aliexpress.com/item/HC-SR505 ... 22745.html
The HC-SR505 PIR sensor is sensitive to the 2.4Ghz WiFi.
To solve the false positives problem, I have added a 47pF cap over the input voltage.
With a shielding of isolation plus ALU tape connected to earth In this box, 230V conversion is on the left, ESP on the right.
So WiFi antenna and HC-SR505 PIR are very close to each other.
Thanks to the shielding, no false positives.
30+ ESP units for production and test. Ranging from control of heating equipment, flow sensing, floor temp sensing, energy calculation, floor thermostat, water usage, to an interactive "fun box" for my grandson. Mainly Wemos D1.
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
Re: AM312 mini PIR?
So any advice on how to set it up in ESP Easy?
I've connected it to GPIO 15 and set it up as a switch on the Devices tab.
I must have done something wrong because it's not working.....
Can I see the state getting updated in the web interface or do I need to check the MQTT traffic?
I've connected it to GPIO 15 and set it up as a switch on the Devices tab.
I must have done something wrong because it's not working.....
Can I see the state getting updated in the web interface or do I need to check the MQTT traffic?
Re: AM312 mini PIR?
For first testing i'd prefer to use GPIO-12/13/14.
GPIO-0/2/9/10/15/16 have additional functions. The connected sensor might lead to unpredicted results like not booting or crashing.
You can see the actual state in the "Devices" page.
Please remember this site is static and needs reloading (F5) to show changes.
GPIO-0/2/9/10/15/16 have additional functions. The connected sensor might lead to unpredicted results like not booting or crashing.
You can see the actual state in the "Devices" page.
Please remember this site is static and needs reloading (F5) to show changes.
Regards
Shardan
Shardan
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
Re: AM312 mini PIR?
Okay so taking this back to complete basics.... I've used a jumper cable and am just connecting D7 (GPIO13) to GND and I'd assume the following setup should allow me make the state change from 0 to 1?
Re: AM312 mini PIR?
Yes correct
Domoticz on Raspi 2 -- 14 ESP units (hacked Sonoff,NodeMCUs, Wemos, self-built units) running with RC140- Mega 2.0.0 dev8
-
- Normal user
- Posts: 19
- Joined: 20 Oct 2017, 14:30
Re: AM312 mini PIR?
Okay, cool well I'm not seeing any sort of change when I complete the GPIO13 and GND connection so I must have something else not quite right....
- grovkillen
- Core team member
- Posts: 3621
- Joined: 19 Jan 2017, 12:56
- Location: Hudiksvall, Sweden
- Contact:
Re: AM312 mini PIR?
Yes I got the same experience. Some tinkering gave me a trigger signal but gave me tons of false triggers = I simply tossed that device into my trash bin (to be sorted as electronic waste, just to be clear!).
ESP Easy Flasher [flash tool and wifi setup at flash time]
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
ESP Easy Webdumper [easy screendumping of your units]
ESP Easy Netscan [find units]
Official shop: https://firstbyte.shop/
Sponsor ESP Easy, we need you
Re: AM312 mini PIR?
Maybe I misunderstood but:
- If you short GPIO to GND the PIN state I can guess will always be LOW (zero).
- To have a real pull-down you should have a resistor (I normally use 10k) between GND and the GPIO.
My TINDIE Store where you can find all ESP8266 boards I manufacture --> https://www.tindie.com/stores/GiovanniCas/
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
My Wiki Project page with self-made PCB/devices --> https://www.letscontrolit.com/wiki/inde ... :Papperone
Re: AM312 mini PIR?
this module has DC4.5-20V supply voltage ?Domosapiens wrote: ↑23 Oct 2017, 19:45 This PIR seems a simplified module of the HC-SR505 PIR sensor.
I use this one:
https://nl.aliexpress.com/item/HC-SR505 ... 22745.html
If so, then it's inconvenient.
Re: AM312 mini PIR?
I spent a lot of time, I tried 3 AM312 modules, but they didn't work.
But as soon as I connected the SR602 and lo and behold, everything works.
But as soon as I connected the SR602 and lo and behold, everything works.
Re: AM312 mini PIR?
I think espeasy supports the SR series only. https://espeasy.readthedocs.io/en/lates ... ensor.html
Re: AM312 mini PIR?
ESPEasy supports any PIR sensor that provides a high or low output signal when movement is detected, as it is picked up by the Switch plugin that can detect both low- or high-active state.bidrohini wrote: ↑09 Mar 2023, 16:43I think espeasy supports the SR series only. https://espeasy.readthedocs.io/en/lates ... ensor.html
For PIR sensors outputting an analog signal (probably related to the detection-distance) the Analog input plugin, probably using a voltage divider on the input pin, can be used. That might need some rules to trigger at the desired level.
/Ton (PayPal.me)
Who is online
Users browsing this forum: No registered users and 1 guest