Skip to content
  • MySensors
  • OpenHardware.io
  • Categories
  • Recent
  • Tags
  • Popular
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Brand Logo
  1. Home
  2. Hardware
  3. PIR am312

PIR am312

Scheduled Pinned Locked Moved Hardware
96 Posts 13 Posters 45.6k Views 10 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • scalzS Offline
    scalzS Offline
    scalz
    Hardware Contributor
    wrote on last edited by
    #68

    @Nca78
    oki. lol i messed a bit with terms too :blush: yes for "on" time.
    for 5m instead of 3m, this will depends of sensor quality and its lens. I think in datasheet they give a max range for an ideal lens, or that wouldn't make sense to get long range with a crappy lens..

    NeverDieN 1 Reply Last reply
    1
    • scalzS scalz

      @Nca78
      oki. lol i messed a bit with terms too :blush: yes for "on" time.
      for 5m instead of 3m, this will depends of sensor quality and its lens. I think in datasheet they give a max range for an ideal lens, or that wouldn't make sense to get long range with a crappy lens..

      NeverDieN Offline
      NeverDieN Offline
      NeverDie
      Hero Member
      wrote on last edited by NeverDie
      #69

      @scalz said in PIR am312:

      @Nca78
      oki. lol i messed a bit with terms too :blush: yes for "on" time.
      for 5m instead of 3m, this will depends of sensor quality and its lens. I think in datasheet they give a max range for an ideal lens, or that wouldn't make sense to get long range with a crappy lens..

      So, Scalz, are you saying that out of the box, the am312 is hard-wired for max sensitivity, and then to get lower sensitivity, you add impairments, such as a lower duty cycle (less "ON" time) and/or a crappier lens? Wow, is that how this stuff is actually meant to work? I was hoping that maybe the am612 could be optionally tweaked for more sensitivity than the am312. If I'm understanding you (and if you're right), though, then I guess that won't be possible. I had assumed (perhaps wrongly) that the am312 defaulted to a "medium" amount of sensitivity, not a maximum amount of sensitivity. Do you happen to know whether am312 defaults to maximum sensitivity or not?

      1 Reply Last reply
      0
      • NeverDieN Offline
        NeverDieN Offline
        NeverDie
        Hero Member
        wrote on last edited by NeverDie
        #70

        Anyhow, looking at the reference circuit design in the am612 "sensor manual" (see page 7 of http://akizukidenshi.com/download/ds/senba/Pir-Am612.pdf), I see that there is a photoresistor (a GL5528) there. Is it somehow adjusting the sensitivity based on the ambient light level? The GL5528 appears to be sensitive to 540nm light (i.e. green light) according to its datasheet
        (http://akizukidenshi.com/download/ds/senba/GL55 Series Photoresistor.pdf). I'm not sure that's a trick that the am312 can do. Can it?

        I just love these Ford vs. Chevy debates. :)

        By the way, where should that photoresistor be positioned? Under the IR lens, or should it have its own window? I'm guessing under the IR lens to keep things "tidy".

        Nca78N 1 Reply Last reply
        0
        • NeverDieN NeverDie

          Anyhow, looking at the reference circuit design in the am612 "sensor manual" (see page 7 of http://akizukidenshi.com/download/ds/senba/Pir-Am612.pdf), I see that there is a photoresistor (a GL5528) there. Is it somehow adjusting the sensitivity based on the ambient light level? The GL5528 appears to be sensitive to 540nm light (i.e. green light) according to its datasheet
          (http://akizukidenshi.com/download/ds/senba/GL55 Series Photoresistor.pdf). I'm not sure that's a trick that the am312 can do. Can it?

          I just love these Ford vs. Chevy debates. :)

          By the way, where should that photoresistor be positioned? Under the IR lens, or should it have its own window? I'm guessing under the IR lens to keep things "tidy".

          Nca78N Offline
          Nca78N Offline
          Nca78
          Hardware Contributor
          wrote on last edited by
          #71

          @NeverDie said in PIR am312:

          I just love these Ford vs. Chevy debates. :)

          We are French, we only have Peugeot vs Citroën debates, or Renault vs Peugeot :D

          Else @scalz misunderstood what we were talking about, he was just talking about changing the "on" duration of the sensor by software (as it's fixed on the am312). No the sensitivity.

          About the photoresistor in the doc is connected to the OEN pin (Output ENable) of the AM612 (one more pin the am312 doesn't have), so that with the reference design it will only trigger and switch on the light when it's dark.

          1 Reply Last reply
          2
          • sundberg84S Offline
            sundberg84S Offline
            sundberg84
            Hardware Contributor
            wrote on last edited by sundberg84
            #72

            I recieved mine today and changed a HC-SR501 on a working Slim node to this but I failed to make it work.
            I then tried to remove the voltage regulator (red arrow) and solder the jumper (blue) to power it from the bat but even with fresh batterys... no go! I watched the circuit to make sure i found VCC/GND and out but maybe i understood something wrong.

            0_1496166572713_1.png

            The second i put the old HC pir back that one worked again.
            Any ideas?

            Controller: Proxmox VM - Home Assistant
            MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
            MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
            RFLink GW - Arduino Mega + RFLink Shield, 433mhz

            NeverDieN 1 Reply Last reply
            0
            • sundberg84S sundberg84

              I recieved mine today and changed a HC-SR501 on a working Slim node to this but I failed to make it work.
              I then tried to remove the voltage regulator (red arrow) and solder the jumper (blue) to power it from the bat but even with fresh batterys... no go! I watched the circuit to make sure i found VCC/GND and out but maybe i understood something wrong.

              0_1496166572713_1.png

              The second i put the old HC pir back that one worked again.
              Any ideas?

              NeverDieN Offline
              NeverDieN Offline
              NeverDie
              Hero Member
              wrote on last edited by NeverDie
              #73

              @sundberg84

              Any chance you hooked up the polarity wrong when you tried it out? I did that to one of my three and completely fried it. It's dead.

              Your PCB looks the same as mine, but the silkscreen is different. The polarity you marked on your photo looks correct to me, and it agrees with the "+" sign on your silkscreen. Mine didn't come with a "+" on the silkscreen.

              Unrelated to your question, but I notice that yours came with a different lens. Do you have a link to where you bought yours?

              sundberg84S 1 Reply Last reply
              0
              • NeverDieN NeverDie

                @sundberg84

                Any chance you hooked up the polarity wrong when you tried it out? I did that to one of my three and completely fried it. It's dead.

                Your PCB looks the same as mine, but the silkscreen is different. The polarity you marked on your photo looks correct to me, and it agrees with the "+" sign on your silkscreen. Mine didn't come with a "+" on the silkscreen.

                Unrelated to your question, but I notice that yours came with a different lens. Do you have a link to where you bought yours?

                sundberg84S Offline
                sundberg84S Offline
                sundberg84
                Hardware Contributor
                wrote on last edited by
                #74

                @NeverDie http://www.ebay.com/itm/262527326905?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                I had two and tested them, maybe I fried them... but i dont think so.

                Controller: Proxmox VM - Home Assistant
                MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                NeverDieN 2 Replies Last reply
                0
                • sundberg84S sundberg84

                  @NeverDie http://www.ebay.com/itm/262527326905?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                  I had two and tested them, maybe I fried them... but i dont think so.

                  NeverDieN Offline
                  NeverDieN Offline
                  NeverDie
                  Hero Member
                  wrote on last edited by NeverDie
                  #75

                  @sundberg84

                  Check to see how much current it's drawing when you have it powered up. If it's fried, it will be drawing more than expected.

                  Also, try connecting a voltmeter between the middle pin and ground with it powered on. When it detects motion, you'll notice a change in voltage.

                  1 Reply Last reply
                  0
                  • sundberg84S sundberg84

                    @NeverDie http://www.ebay.com/itm/262527326905?_trksid=p2057872.m2749.l2649&ssPageName=STRK%3AMEBIDX%3AIT

                    I had two and tested them, maybe I fried them... but i dont think so.

                    NeverDieN Offline
                    NeverDieN Offline
                    NeverDie
                    Hero Member
                    wrote on last edited by NeverDie
                    #76

                    @sundberg84

                    The lens in your photo doesn't appear to match the lens in the ebay listed where you got it from. The lens in the ebay listing is the kind I have, which I'm not happy with. I hope you get yours working, as it would be nice to know if your lens works better than mine.

                    sundberg84S 1 Reply Last reply
                    0
                    • NeverDieN NeverDie

                      @sundberg84

                      The lens in your photo doesn't appear to match the lens in the ebay listed where you got it from. The lens in the ebay listing is the kind I have, which I'm not happy with. I hope you get yours working, as it would be nice to know if your lens works better than mine.

                      sundberg84S Offline
                      sundberg84S Offline
                      sundberg84
                      Hardware Contributor
                      wrote on last edited by
                      #77

                      @NeverDie thanks for your tips!
                      Will try it out and let you know about the lens.

                      Controller: Proxmox VM - Home Assistant
                      MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                      MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                      RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                      1 Reply Last reply
                      0
                      • NeverDieN Offline
                        NeverDieN Offline
                        NeverDie
                        Hero Member
                        wrote on last edited by NeverDie
                        #78

                        I just now threw together a primitive barebones breakout board for the AM612:
                        0_1496168944700_am612_top.png 0_1496168961769_am612_bottom.png

                        It wastes a lot of space because of the large SR501 lens cover that it's meant to go with. Also, it's really just "Plan B", as I'm hoping Version 1 of NCA78's PIR shield will work.

                        Nonetheless, if anyone wants the PCB files for my primitive breakout board, I can post them.

                        sundberg84S 1 Reply Last reply
                        1
                        • NeverDieN NeverDie

                          I just now threw together a primitive barebones breakout board for the AM612:
                          0_1496168944700_am612_top.png 0_1496168961769_am612_bottom.png

                          It wastes a lot of space because of the large SR501 lens cover that it's meant to go with. Also, it's really just "Plan B", as I'm hoping Version 1 of NCA78's PIR shield will work.

                          Nonetheless, if anyone wants the PCB files for my primitive breakout board, I can post them.

                          sundberg84S Offline
                          sundberg84S Offline
                          sundberg84
                          Hardware Contributor
                          wrote on last edited by sundberg84
                          #79

                          @NeverDie - well both modules draw 12uA and changes to 111uA on motion... reading on VCC. That would suggest they are working... strange I cant get an interupt then... I also see the battery voltage in motion and 0v when not on signal out... so thanks for the tips... the module is working. I just need to figure out why it doesnt trigger the interrupt.

                          I will work some more on this later... only thing that can trigger a interrupt is me touching the metal pinheader. Tried adding a capcitor but no luck.

                          Controller: Proxmox VM - Home Assistant
                          MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                          MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                          RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                          NeverDieN 1 Reply Last reply
                          0
                          • sundberg84S sundberg84

                            @NeverDie - well both modules draw 12uA and changes to 111uA on motion... reading on VCC. That would suggest they are working... strange I cant get an interupt then... I also see the battery voltage in motion and 0v when not on signal out... so thanks for the tips... the module is working. I just need to figure out why it doesnt trigger the interrupt.

                            I will work some more on this later... only thing that can trigger a interrupt is me touching the metal pinheader. Tried adding a capcitor but no luck.

                            NeverDieN Offline
                            NeverDieN Offline
                            NeverDie
                            Hero Member
                            wrote on last edited by NeverDie
                            #80

                            @sundberg84 said in PIR am312:

                            @NeverDie - well both modules draw 12uA and changes to 111uA on motion... reading on VCC. That would suggest they are working... strange I cant get an interupt then... I also see the battery voltage in motion and 0v when not on signal out... so thanks for the tips... the module is working. I just need to figure out why it doesnt trigger the interrupt.

                            I will work some more on this later... only thing that can trigger a interrupt is me touching the metal pinheader. Tried adding a capcitor but no luck.

                            Maybe your circuit needs a pull-up or pull-down resistor on the interrupt pin to make it work? That's what it sounds like.

                            sundberg84S 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              @sundberg84 said in PIR am312:

                              @NeverDie - well both modules draw 12uA and changes to 111uA on motion... reading on VCC. That would suggest they are working... strange I cant get an interupt then... I also see the battery voltage in motion and 0v when not on signal out... so thanks for the tips... the module is working. I just need to figure out why it doesnt trigger the interrupt.

                              I will work some more on this later... only thing that can trigger a interrupt is me touching the metal pinheader. Tried adding a capcitor but no luck.

                              Maybe your circuit needs a pull-up or pull-down resistor on the interrupt pin to make it work? That's what it sounds like.

                              sundberg84S Offline
                              sundberg84S Offline
                              sundberg84
                              Hardware Contributor
                              wrote on last edited by
                              #81

                              @NeverDie - A good idea again... just took for granted that was handeled in the sensor since im used to that with the other pirs... silly me. I will give it a shot later.

                              Controller: Proxmox VM - Home Assistant
                              MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                              MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                              RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                              maghacM 1 Reply Last reply
                              0
                              • gohanG Offline
                                gohanG Offline
                                gohan
                                Mod
                                wrote on last edited by
                                #82

                                I got my am312 and I confirm the blind spots and a range of about 3 meters. I'll have to try to use a bigger lens from the 501 and see what happens.
                                PS I also compared side by side with a radar sensor and have to say I am impressed with the sensibility and the "all-around" visibility

                                1 Reply Last reply
                                1
                                • sundberg84S sundberg84

                                  @NeverDie - A good idea again... just took for granted that was handeled in the sensor since im used to that with the other pirs... silly me. I will give it a shot later.

                                  maghacM Offline
                                  maghacM Offline
                                  maghac
                                  wrote on last edited by
                                  #83

                                  @sundberg84 Did you get it working? I have exactly the same problem.

                                  I added a 10K pullup resistor but still no luck.

                                  sundberg84S 1 Reply Last reply
                                  0
                                  • maghacM maghac

                                    @sundberg84 Did you get it working? I have exactly the same problem.

                                    I added a 10K pullup resistor but still no luck.

                                    sundberg84S Offline
                                    sundberg84S Offline
                                    sundberg84
                                    Hardware Contributor
                                    wrote on last edited by
                                    #84

                                    @maghac - no and I didnt have time to try the pulldown either. My next step would be a transistor. I see a current reaching 114uA when triggered so the module works but maybe 114uA isnt enough to trigger the interupt? Someone that knows?

                                    Controller: Proxmox VM - Home Assistant
                                    MySensors GW: Arduino Uno - W5100 Ethernet, Gw Shield Nrf24l01+ 2,4Ghz
                                    MySensors GW: Arduino Uno - Gw Shield RFM69, 433mhz
                                    RFLink GW - Arduino Mega + RFLink Shield, 433mhz

                                    NeverDieN 1 Reply Last reply
                                    0
                                    • sundberg84S sundberg84

                                      @maghac - no and I didnt have time to try the pulldown either. My next step would be a transistor. I see a current reaching 114uA when triggered so the module works but maybe 114uA isnt enough to trigger the interupt? Someone that knows?

                                      NeverDieN Offline
                                      NeverDieN Offline
                                      NeverDie
                                      Hero Member
                                      wrote on last edited by
                                      #85

                                      @sundberg84 said in PIR am312:

                                      @maghac - no and I didnt have time to try the pulldown either. My next step would be a transistor. I see a current reaching 114uA when triggered so the module works but maybe 114uA isnt enough to trigger the interupt? Someone that knows?

                                      I never actually hooked mine up to an atmega328p. I just had it in a test jig, where an nfet turned on/off an LED based on the voltage of the middle pin. That worked fine.

                                      1 Reply Last reply
                                      0
                                      • Nca78N Offline
                                        Nca78N Offline
                                        Nca78
                                        Hardware Contributor
                                        wrote on last edited by
                                        #86

                                        So I soldered an am612 to NModule PIR shield, put an SR501 lens but unfortunately I experience a similar behavior with some blind zones where I can move with the PIR bothering to trigger. I'll do more tests (especially when playing with sensitivity, it's supposed to be at max value now) but it is disappointing at the moment :(

                                        1 Reply Last reply
                                        0
                                        • gohanG Offline
                                          gohanG Offline
                                          gohan
                                          Mod
                                          wrote on last edited by
                                          #87

                                          If you move across its field of view it triggers without many problems but when moving towards the sensor in those "blind spots" you can get almost in front of it without being detected. Agreed it is very annoying

                                          1 Reply Last reply
                                          1
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          6

                                          Online

                                          11.7k

                                          Users

                                          11.2k

                                          Topics

                                          113.0k

                                          Posts


                                          Copyright 2019 TBD   |   Forum Guidelines   |   Privacy Policy   |   Terms of Service
                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • MySensors
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular