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.
  • NeverDieN Offline
    NeverDieN Offline
    NeverDie
    Hero Member
    wrote on last edited by NeverDie
    #20

    For Halloween, it would be pretty amusing to have the PIR turn on some eyeballs like this:
    https://cdn-shop.adafruit.com/product-videos/1200x900/3356-05.mp4
    especially if you had about 6 of them scattered about.

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

      Missed this thread last week...
      Just tested mine today with 3.3V supply and I have similar current consumption, around 15µA on my multimeter but the full board in sleep mode. It's staying active as long as there's movement detected, and seems stable: no interference from NRF24 radio when sending updated state to gateway.

      But I have poor range, I'm not sure why, maybe the orientation of sensor/lens, or maybe the hot temperature, over 30°C, I will do more tests tomorrow if I can.
      I tested with a not very well aligned fresnel lens from a SR501 I can detect at over 4m

      I've got some AM612 too, with extra setting for active duration & sensibility, and an OEN pin to enable output based on analog signal (on datasheet example they use it with a photoresistor). If I believe the very similar detection profiles in the datasheets it's the same sensor but the AS312 has settings hardwired in the "can".

      Not sure if 2 AA/AAA is the best solution, I would go for lithium cells. CR2032 would probably have too short battery life in a busy room (somewhere around 6 months) but bigger cells like 2477 or CR123 (>1000mAh) would last way over 1 year. Compared to AA they have the big advantage of staying over the 2.7V minimum value in the datasheet for most of their life.

      gohanG NeverDieN 2 Replies Last reply
      1
      • Nca78N Nca78

        Missed this thread last week...
        Just tested mine today with 3.3V supply and I have similar current consumption, around 15µA on my multimeter but the full board in sleep mode. It's staying active as long as there's movement detected, and seems stable: no interference from NRF24 radio when sending updated state to gateway.

        But I have poor range, I'm not sure why, maybe the orientation of sensor/lens, or maybe the hot temperature, over 30°C, I will do more tests tomorrow if I can.
        I tested with a not very well aligned fresnel lens from a SR501 I can detect at over 4m

        I've got some AM612 too, with extra setting for active duration & sensibility, and an OEN pin to enable output based on analog signal (on datasheet example they use it with a photoresistor). If I believe the very similar detection profiles in the datasheets it's the same sensor but the AS312 has settings hardwired in the "can".

        Not sure if 2 AA/AAA is the best solution, I would go for lithium cells. CR2032 would probably have too short battery life in a busy room (somewhere around 6 months) but bigger cells like 2477 or CR123 (>1000mAh) would last way over 1 year. Compared to AA they have the big advantage of staying over the 2.7V minimum value in the datasheet for most of their life.

        gohanG Offline
        gohanG Offline
        gohan
        Mod
        wrote on last edited by
        #22

        @Nca78 do you have any updates on the sensor?

        Nca78N 1 Reply Last reply
        0
        • Nca78N Nca78

          Missed this thread last week...
          Just tested mine today with 3.3V supply and I have similar current consumption, around 15µA on my multimeter but the full board in sleep mode. It's staying active as long as there's movement detected, and seems stable: no interference from NRF24 radio when sending updated state to gateway.

          But I have poor range, I'm not sure why, maybe the orientation of sensor/lens, or maybe the hot temperature, over 30°C, I will do more tests tomorrow if I can.
          I tested with a not very well aligned fresnel lens from a SR501 I can detect at over 4m

          I've got some AM612 too, with extra setting for active duration & sensibility, and an OEN pin to enable output based on analog signal (on datasheet example they use it with a photoresistor). If I believe the very similar detection profiles in the datasheets it's the same sensor but the AS312 has settings hardwired in the "can".

          Not sure if 2 AA/AAA is the best solution, I would go for lithium cells. CR2032 would probably have too short battery life in a busy room (somewhere around 6 months) but bigger cells like 2477 or CR123 (>1000mAh) would last way over 1 year. Compared to AA they have the big advantage of staying over the 2.7V minimum value in the datasheet for most of their life.

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

          @Nca78 said in PIR am312:

          Not sure if 2 AA/AAA is the best solution, I would go for lithium cells. CR2032 would probably have too short battery life in a busy room (somewhere around 6 months) but bigger cells like 2477 or CR123 (>1000mAh) would last way over 1 year. Compared to AA they have the big advantage of staying over the 2.7V minimum value in the datasheet for most of their life.

          In most cases I'm planning to use solar and a supercap. Then, no more batteries to change!

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

            it is all a matter of node size and if you like to have solar panels around the house (never forget the WAF :D )

            NeverDieN 1 Reply Last reply
            0
            • gohanG gohan

              it is all a matter of node size and if you like to have solar panels around the house (never forget the WAF :D )

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

              @gohan said in PIR am312:

              it is all a matter of node size and if you like to have solar panels around the house (never forget the WAF :D )

              Good point. Even a micro panel might be stretching it on the WAF.

              1 Reply Last reply
              0
              • gohanG gohan

                @Nca78 do you have any updates on the sensor?

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

                @gohan I didn't test more but I made a PCB for AM612 it will be much more convenient to make some real life testing :)
                Sending it tomorrow to PCB production with 11 other PCBs :D

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

                  How are you using the AM612?

                  Nca78N 1 Reply Last reply
                  0
                  • gohanG gohan

                    How are you using the AM612?

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

                    @gohan said in PIR am312:

                    How are you using the AM612?

                    I don't understand what answer you're expecting for this question :)
                    I made a PCB, send it to PCB production and when I receive it I will be able to solder the am612 on it and test it.

                    0_1495104606107_PCB_PIR.png

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

                      how about the lens? Did you make a case for it?

                      Nca78N 1 Reply Last reply
                      0
                      • gohanG gohan

                        how about the lens? Did you make a case for it?

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

                        @gohan said in PIR am312:

                        how about the lens? Did you make a case for it?

                        I will test using lens from AM312 & from SR501 (made the space and holes for that on the PCB). I have ordered some other ones from AliExpress, too.
                        No case yet as I just spent a lot of nearly sleepless nights finishing a lot of PCBs. Now time for code preparation before I receive the boards, then 3D design and tests while the 3D printer is printing :)

                        NeverDieN 1 Reply Last reply
                        0
                        • Nca78N Nca78

                          @gohan said in PIR am312:

                          how about the lens? Did you make a case for it?

                          I will test using lens from AM312 & from SR501 (made the space and holes for that on the PCB). I have ordered some other ones from AliExpress, too.
                          No case yet as I just spent a lot of nearly sleepless nights finishing a lot of PCBs. Now time for code preparation before I receive the boards, then 3D design and tests while the 3D printer is printing :)

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

                          @Nca78

                          I really like your PCB layouts. Is that Eagle, or some other package that you're using? I'm using Diptrace, which meets my needs and was easy to learn, but your package looks like it's more polished and easier to see both sides of the board at the same time.

                          Nca78N 1 Reply Last reply
                          0
                          • NeverDieN NeverDie

                            @Nca78

                            I really like your PCB layouts. Is that Eagle, or some other package that you're using? I'm using Diptrace, which meets my needs and was easy to learn, but your package looks like it's more polished and easier to see both sides of the board at the same time.

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

                            @NeverDie said in PIR am312:

                            @Nca78

                            I really like your PCB layouts. Is that Eagle, or some other package that you're using? I'm using Diptrace, which meets my needs and was easy to learn, but your package looks like it's more polished and easier to see both sides of the board at the same time.

                            Yes that's eagle, found it pretty easy to learn also.
                            But I made my last PCBs with it this week I think, I will switch to KiCad to avoid the annoying limitations in Eagle. It will be a pain to learn everything again, but at least I won't miss the autorouter as I love routing :D

                            1 Reply Last reply
                            0
                            • NeverDieN NeverDie

                              Me too. Based on AWI's report above, I just went ahead and ordered them.

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

                              @NeverDie said in PIR am312:

                              Me too. Based on AWI's report above, I just went ahead and ordered them.

                              I received mine yesterday: so, 16 days from order until receipt from banggood.

                              NeverDieN 1 Reply Last reply
                              0
                              • NeverDieN NeverDie

                                @NeverDie said in PIR am312:

                                Me too. Based on AWI's report above, I just went ahead and ordered them.

                                I received mine yesterday: so, 16 days from order until receipt from banggood.

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

                                @AWI Thank you for your photo. Without it, I'm not sure how I would have deduced the correct pinout.

                                So far I've only powered it up--and with merely a DMM attached to the output pin--but as a quick test it seems to work.

                                Nca78N 1 Reply Last reply
                                0
                                • NeverDieN NeverDie

                                  @AWI Thank you for your photo. Without it, I'm not sure how I would have deduced the correct pinout.

                                  So far I've only powered it up--and with merely a DMM attached to the output pin--but as a quick test it seems to work.

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

                                  @NeverDie said in PIR am312:

                                  @AWI Thank you for your photo. Without it, I'm not sure how I would have deduced the correct pinout.

                                  There are some tiny '+' and '-' signs on the breakout board near the pins but they are barely visible.

                                  NeverDieN 1 Reply Last reply
                                  0
                                  • Nca78N Nca78

                                    @NeverDie said in PIR am312:

                                    @AWI Thank you for your photo. Without it, I'm not sure how I would have deduced the correct pinout.

                                    There are some tiny '+' and '-' signs on the breakout board near the pins but they are barely visible.

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

                                    @Nca78 said in PIR am312:

                                    @NeverDie said in PIR am312:

                                    @AWI Thank you for your photo. Without it, I'm not sure how I would have deduced the correct pinout.

                                    There are some tiny '+' and '-' signs on the breakout board near the pins but they are barely visible.

                                    On mine I don't see any pinout markings at all.

                                    I used a uCurrent Gold to measure the current, and and at 3.3v my measurements came out at 13.1ua in standby mode and 14.3ua at "motion detected" mode. I haven't tested it for false positives yet (it may take a while to gather the data on that), but so far I'm impressed. Nice find!

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

                                      So, I made a little test jig to try it out. It seems to have roughly 4 detection "zones" with fairly wide gaps between them where it's more or less blind. Also, if I walk straight at it from the front, it doesn't detect me until I'm about 3 feet away. So, although I'm no expert, I'd say the detection coverage is kinda spotty. Maybe the small domed plastic optics are sub-optimal? Has anyone tried alternatives?

                                      Just thinking out loud, but maybe you can use two and by skewing their alignment try to make it so that the gaps in one are mostly covered by the detection zones of the other, and visa versa?

                                      Not sure how to make the best use of this yet, but I do like the very low power consumption. I think there's a pony in there somewhere, and we just need to find it.

                                      Anyone have ideas?

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

                                        Did that resonate with anyone? Has anyone else observed "the problem" I described? If not, maybe I set it up wrong.

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

                                          I have experienced similar behavior yes, didn't have time to check enough but from some directions it gave me the impression not to detect anything.
                                          It seemed better with lens from a SR501. I'm waiting for the PCB with am612 to be able to test with a properly aligned SR501 lens.

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


                                          12

                                          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