Skip to content
  • 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
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

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.
  • gohanG gohan

    maybe make a mock pcb board of a SR501 with a hole in the middle so you can attach the lens on the board and stick the am312 in the center hole

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

    @gohan said in PIR am312:

    maybe make a mock pcb board of a SR501 with a hole in the middle so you can attach the lens on the board and stick the am312 in the center hole

    Or, as a POC, just drill a hole in the middle of an SR501 board, since the lens already snaps smartly to that board.

    Does PCB need a special kind of drill bit, like for glass or something?

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

      I didn't want to sacrifice a working sensor :D
      PCB is quite fragile, so any sharp bits should be fine, just don't push too much.

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

        So I guess this may mean we won't be using the bangood sensors after all. Instead we'll be buying chips and mounting them to custom PCB's, like NCA78 is doing. That is, unless there's a better lens cap that just naturally fits the body of the banggood sensor.

        Which means I should order some of those PIR sensor IC's soon, given the long shipping lead times.

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

          It depends on how you want to use them. Maybe for some people are fine while for others they need a longer range. It is all part of the DIY "fun" :D

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

            For a preliminary POC, I made a lens holder with cardboard and hot glue:
            0_1495565659053_lens1.jpg

            and drilled a 15/32" hole in the middle for the PIR element, which I shoved in the back:
            0_1495565134674_lens2.jpg

            Obviously it's still crude, but it's better than my first attempt. It also performs better. It still has spotty coverage, but not as bad as before. Obviously a more properly installed and aligned lens should perform better still.

            Anyhow, that's as far as I'm going to take it for now. I look forward to hearing what others might come up with, as well as their impressions about the coverage.

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

              maybe removing the smaller lens could improve the sensor?

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

                I did. What you see is just the holder that the regular lens snaps onto.

                1 Reply Last reply
                1
                • wallyllamaW Offline
                  wallyllamaW Offline
                  wallyllama
                  wrote on last edited by
                  #51

                  Here is my version of a holder. It is for the bigger PIR. But it holds a dhtXX, ds18b20, and a light sensor as well.

                  0_1495566620542_PSX_20170523_140911.jpg
                  0_1495566645730_PSX_20170523_140946.jpg

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

                    Nice!

                    On my holder, the sensor depth is presumably wrong from a focusing point of view--at least if the SR501 is a proper guide for how it should be done. The sensor should really be deeper into the cavity. I suppose that alone might make a meaningful improvement. Alas, I think that may call for mounting the sensor element onto a PCB, so that it sits flush on top.

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

                      @Nca78
                      Have you worked out the dimensions for the four holes that the SR501 lens fits into? I'm guessing so, given your shield above. I could of course try measuring the distances with a micrometer and the hole diameters with some gauged wire, but it might take a few PCB iterations to get it right. However, if you know the exact hole diameter and distance between the holes, it would be helpful if you shared that info so that we can get cracking on making custom PCB's that incorporate it.

                      1 Reply Last reply
                      0
                      • scalzS Offline
                        scalzS Offline
                        scalz
                        Hardware Contributor
                        wrote on last edited by scalz
                        #54

                        @NeverDie
                        This is what i'm using here for my boards, and fits ok
                        0_1495621609523_holes pitch for sr501 lens.png

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

                          Searched a bit and found this. Guess my measurements were a bit off, hope it will fit with 17.4 and a bit over 22...
                          I should have searched while doing the PCB :D

                          Real measurements are 17.5mm and 23.3-1.45 = 21.85

                          0_1495624530497_8002-2-human-body-infrared-sensor-switch-lens-Fresnel-lens-PIR-series-of-Fresnel-lens.jpg

                          NeverDieN 1 Reply Last reply
                          1
                          • Nca78N Nca78

                            Searched a bit and found this. Guess my measurements were a bit off, hope it will fit with 17.4 and a bit over 22...
                            I should have searched while doing the PCB :D

                            Real measurements are 17.5mm and 23.3-1.45 = 21.85

                            0_1495624530497_8002-2-human-body-infrared-sensor-switch-lens-Fresnel-lens-PIR-series-of-Fresnel-lens.jpg

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

                            I ran a banggood PIR sensor off my 3.3v boosted 10F supercap solar node last night and, as you would expect, the extra load was so low that it's practically a rounding error. :) These PIR's would have no problem being powered for days from a supercap.

                            @Nca78 I guess what you're calling "sensibility" on your board above is another name for sensitivity? i.e. you figured out how to adjust the sensitivity of the PIR detector? That's something not obviously accessible on the banggood PIR's, as they don't seem to come with a sensitivity adjustment. If you've already figured out how to adjust the sensitivity, would you mind sharing the schematic? It might help us avoid re-inventing the wheel if we were to follow the path you've already blazed.

                            Nca78N 1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              I ran a banggood PIR sensor off my 3.3v boosted 10F supercap solar node last night and, as you would expect, the extra load was so low that it's practically a rounding error. :) These PIR's would have no problem being powered for days from a supercap.

                              @Nca78 I guess what you're calling "sensibility" on your board above is another name for sensitivity? i.e. you figured out how to adjust the sensitivity of the PIR detector? That's something not obviously accessible on the banggood PIR's, as they don't seem to come with a sensitivity adjustment. If you've already figured out how to adjust the sensitivity, would you mind sharing the schematic? It might help us avoid re-inventing the wheel if we were to follow the path you've already blazed.

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

                              @NeverDie haha yes it's the sensitivity sorry sometimes my English fails and I mix with French words :D
                              I will fix on the PCB.

                              This can be set only on am612, I bought the sensor only (no breakout board) on AliExpress. It has 6 pins for the extra settings instead of the 3 of the am312.

                              NeverDieN 1 Reply Last reply
                              1
                              • Nca78N Nca78

                                @NeverDie haha yes it's the sensitivity sorry sometimes my English fails and I mix with French words :D
                                I will fix on the PCB.

                                This can be set only on am612, I bought the sensor only (no breakout board) on AliExpress. It has 6 pins for the extra settings instead of the 3 of the am312.

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

                                @Nca78 said in PIR am312:

                                @NeverDie haha yes it's the sensitivity sorry sometimes my English fails and I mix with French words :D
                                I will fix on the PCB.

                                This can be set only on am612, I bought the sensor only (no breakout board) on AliExpress. It has 6 pins for the extra settings instead of the 3 of the am312.

                                Good to know. Does it draw the same or comparable amount of current as the am312? If so, you've just saved me from ordering the wrong sensor! :)

                                Nca78N 1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  @Nca78 said in PIR am312:

                                  @NeverDie haha yes it's the sensitivity sorry sometimes my English fails and I mix with French words :D
                                  I will fix on the PCB.

                                  This can be set only on am612, I bought the sensor only (no breakout board) on AliExpress. It has 6 pins for the extra settings instead of the 3 of the am312.

                                  Good to know. Does it draw the same or comparable amount of current as the am312? If so, you've just saved me from ordering the wrong sensor! :)

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

                                  @NeverDie said in PIR am312:

                                  Good to know. Does it draw the same or comparable amount of current as the am312? If so, you've just saved me from ordering the wrong sensor! :)

                                  The datasheets are similar for everything that is not related to the extra pins of course: same electrical specs, same detection profile, ... My guess is it's the same PIR sensor but on am312 some of the settings are just hardwired inside the "can".

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

                                    Cool! I'm going to follow your lead and order some of the am612's then. Thanks for the heads up!

                                    1 Reply Last reply
                                    0
                                    • scalzS Offline
                                      scalzS Offline
                                      scalz
                                      Hardware Contributor
                                      wrote on last edited by
                                      #61

                                      sensitivity can be adapted in sw

                                      Nca78N 1 Reply Last reply
                                      0
                                      • scalzS scalz

                                        sensitivity can be adapted in sw

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

                                        @scalz said in PIR am312:

                                        sensitivity can be adapted in sw

                                        For am312 ? How would you do that when all you have are Vcc, GND and signal pin ?

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

                                          I ordered these:
                                          https://www.aliexpress.com/item/10pcs-AM612-DIP6-human-infrared-sensor-module-pyroelectric-infrared-sensors-Sensor/32604041429.html?spm=2114.01010208.3.15.vPmcAS&ws_ab_test=searchweb0_0,searchweb201602_5_10152_10065_10151_10130_10068_5010014_10136_10157_10137_10060_10138_10155_10062_10156_437_10154_10056_10055_10054_10059_303_100031_10099_10103_10102_10096_5170015_10147_10052_10053_10107_10050_10142_10051_5190015_10084_10083_10119_10080_10082_10081_10178_10110_519_10111_10112_10113_10114_10037_10183_10182_10185_10033_10032_10078_10079_10077_10073_10123_10120_142,searchweb201603_4,ppcSwitch_4&btsid=99796fa2-b6d9-451b-89ee-c690f3ec0542&algo_expid=357f8654-d7b8-423c-8af7-8a8a924a49a5-2&algo_pvid=357f8654-d7b8-423c-8af7-8a8a924a49a5

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


                                          11

                                          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
                                          • OpenHardware.io
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular