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 AS 312 with 2 rechargeable AAA battery. Boost needed?

Pir AS 312 with 2 rechargeable AAA battery. Boost needed?

Scheduled Pinned Locked Moved Hardware
38 Posts 12 Posters 2.4k 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.
  • rvendrameR rvendrame

    When you sleep the node with a PIR connected, a small 'nap' before the main sleep helps to settle the Vbat, and it usually avoid false triggering. Maybe this will help:

    sleep(500);
    sleep(INTERRUPT,RISING, SLEEP_TIME);
    
    franz-unixF Offline
    franz-unixF Offline
    franz-unix
    wrote on last edited by
    #27

    @rvendrame Thanks, I have tried your small "nap" trick and in fact something is happened... but in the opposite direction! The number of false positive is increased :joy:

    But probably this is the way to solve the issue. Please note that, in order to stabilize the battery voltage, in the sketch I already have a cr2032_wait() function that sleep the MCU after each radio transmission, if the battery type is set to CR2032.

    1 Reply Last reply
    0
    • franz-unixF Offline
      franz-unixF Offline
      franz-unix
      wrote on last edited by franz-unix
      #28

      Hi guys, project finished! Now the led are under the Fresnel lens, so the design of the case is more clean (WAF +10 :sunglasses: ).

      The final result:

      2_1573854920253_case2.jpg 1_1573854920253_case1.jpg 0_1573854920253_case0.jpg

      With 2 x AAA batteries and the RFM69 radio module the node works very well and the total cost of the parts is about 10€.

      If someone is interested, here a detailed build guide, with the links to all the parts of the project (3d model of the case, Kicad project, gerber files, BOM, firmware).

      D 1 Reply Last reply
      2
      • H Offline
        H Offline
        huex
        wrote on last edited by huex
        #29

        few month ago ,i use tlv61220 step-up boost only for as312 is only 4ua, atmega328p ,battery cr2477 , then get 21ua ,
        but now ,i give up boost , i test use ER14335 3.6v CR16340LIPO 【4.2V with diode 0.7V Step-down then 3.5V+- 】 ,same as312 get 18ua,:relaxed: ,ER14335 cost much but 1600mah ! cr16340 750mah rechargeable best choose for me,,,,

        1 Reply Last reply
        1
        • franz-unixF franz-unix

          Hi guys, project finished! Now the led are under the Fresnel lens, so the design of the case is more clean (WAF +10 :sunglasses: ).

          The final result:

          2_1573854920253_case2.jpg 1_1573854920253_case1.jpg 0_1573854920253_case0.jpg

          With 2 x AAA batteries and the RFM69 radio module the node works very well and the total cost of the parts is about 10€.

          If someone is interested, here a detailed build guide, with the links to all the parts of the project (3d model of the case, Kicad project, gerber files, BOM, firmware).

          D Offline
          D Offline
          DenisJ
          wrote on last edited by
          #30

          @franz-unix
          This is wonderful work... thanks for inspiring me :-)
          I know that this is an old thread,
          but can you give me a link of the AAA battery holder please ?

          I just make a node sensor and I want to use it.
          Thanks a lot
          Denis

          franz-unixF 1 Reply Last reply
          0
          • D DenisJ

            @franz-unix
            This is wonderful work... thanks for inspiring me :-)
            I know that this is an old thread,
            but can you give me a link of the AAA battery holder please ?

            I just make a node sensor and I want to use it.
            Thanks a lot
            Denis

            franz-unixF Offline
            franz-unixF Offline
            franz-unix
            wrote on last edited by
            #31

            @DenisJ : Glad to know that this work has been useful for you in some way. :+1:

            Regarding the AAA battery holder, the footprints on the PCB are for a Keystone 5204 (negative) and Keystone 5226 (positive) contacts.

            I have purchased them on ebay; unfortunately the item that I have purchased is not more available, but this one appears to me like the same thing.

            1 Reply Last reply
            1
            • D Offline
              D Offline
              DenisJ
              wrote on last edited by
              #32

              Thanks a lot Franz... I have buy this one... maybe is more little

              Thanks again
              Denis

              franz-unixF 1 Reply Last reply
              0
              • D DenisJ

                Thanks a lot Franz... I have buy this one... maybe is more little

                Thanks again
                Denis

                franz-unixF Offline
                franz-unixF Offline
                franz-unix
                wrote on last edited by
                #33

                @DenisJ the link is broken, so I have not seen the contacts that you have bought, but if they are just a little bit smaller and they can fit the hole on the pcb, they should be OK.

                1 Reply Last reply
                1
                • D Offline
                  D Offline
                  DenisJ
                  wrote on last edited by
                  #34

                  I don't know... the link it's work on my side.
                  Anyway here is the pic:
                  2a967941-5544-49c4-82d9-056c13e4d596-image.png

                  Yes, I think will be ok... I hope :-)

                  Thanks a lot
                  Denis

                  1 Reply Last reply
                  0
                  • Diego SerranoD Offline
                    Diego SerranoD Offline
                    Diego Serrano
                    wrote on last edited by
                    #35

                    @franz-unix Hi, this post is very old I hope I can get an answer :)
                    I have ME2188 here but the behaviour of CE pin in extrange.
                    If I apply high to CE pin I get my correct 5v but if I change CE pin to low I get 4v on the output and I hope to get 0v.

                    Anyone can share your experience?

                    Nca78N 1 Reply Last reply
                    0
                    • Diego SerranoD Diego Serrano

                      @franz-unix Hi, this post is very old I hope I can get an answer :)
                      I have ME2188 here but the behaviour of CE pin in extrange.
                      If I apply high to CE pin I get my correct 5v but if I change CE pin to low I get 4v on the output and I hope to get 0v.

                      Anyone can share your experience?

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

                      @Diego-Serrano said in Pir AS 312 with 2 rechargeable AAA battery. Boost needed?:

                      @franz-unix Hi, this post is very old I hope I can get an answer :)
                      I have ME2188 here but the behaviour of CE pin in extrange.
                      If I apply high to CE pin I get my correct 5v but if I change CE pin to low I get 4v on the output and I hope to get 0v.

                      Hello, this is the normal behavior for this chip. CE will enable the step up, but with CE low it acts as a bridge so you get input voltage at output.
                      Pretty annoying :)

                      Anyone can share your experience?

                      My experience was to add an MT9700 power switch before the voltage input of the ME2188. The EN pin of the power switch is connected to the same signal than the CE pin of the MT2188, driven by the microcontroller.
                      It works fine like this driving a Plantower PM sensor not a PIR (don't pay too much attention at the caps at output I just wanted to have different footprints available).

                      ME2188.png

                      Diego SerranoD 1 Reply Last reply
                      0
                      • Nca78N Nca78

                        @Diego-Serrano said in Pir AS 312 with 2 rechargeable AAA battery. Boost needed?:

                        @franz-unix Hi, this post is very old I hope I can get an answer :)
                        I have ME2188 here but the behaviour of CE pin in extrange.
                        If I apply high to CE pin I get my correct 5v but if I change CE pin to low I get 4v on the output and I hope to get 0v.

                        Hello, this is the normal behavior for this chip. CE will enable the step up, but with CE low it acts as a bridge so you get input voltage at output.
                        Pretty annoying :)

                        Anyone can share your experience?

                        My experience was to add an MT9700 power switch before the voltage input of the ME2188. The EN pin of the power switch is connected to the same signal than the CE pin of the MT2188, driven by the microcontroller.
                        It works fine like this driving a Plantower PM sensor not a PIR (don't pay too much attention at the caps at output I just wanted to have different footprints available).

                        ME2188.png

                        Diego SerranoD Offline
                        Diego SerranoD Offline
                        Diego Serrano
                        wrote on last edited by
                        #37

                        @Nca78 said in Pir AS 312 with 2 rechargeable AAA battery. Boost needed?:

                        Pretty annoying

                        Thanks you very much.

                        1 Reply Last reply
                        2
                        • franz-unixF franz-unix

                          @nagelc The LiFePo4 batteries will be perfect (AA and AAA), but I arrived at your same conclusion: a little bit to exotic respect to standard alkaline or NiMH batteries.

                          @rozpruwacz Nice board, is similar to what I want, but unfortunately not exactly the same. I prefer to have one single board to simplify the build and external case design (3d-printable).

                          Thanks to your suggestion, I have modified a little bit the circuit:

                          0_1563104742468_output-1.rotated.jpg

                          Some consideration and board features:

                          • Added footprint for CR2032 coin cell and dedicated 100 uF capacitor to prevent problem related to the low discharge rate of the battery.

                          • Added a flyback diode across the inductor to discharge voltage spikes when the circuit is disconnected (mosfet Q3 - Pin D4). Not sure if it is strictly necessary... but just in case!

                          • Multiple power options: 2xAAA batteries, 1xCR2032, micro USB (phone charger), J6 pin header. When powered from an external source through USB port or J6, the voltage can be between 4 and 12V. When you power the board through FTDI or ICSP make sure that the voltage is 3.3V, otherwise the radio module will be damaged!

                          • Mosfet Q1 offers a reverse polarity protection to the board if the batteries are inserted in the wrong way. It cut off also the batteries compartment when an external power source is present, so you don't have to remove the batteries while powering the board via FTDI, ICSP, USB or J6

                          • When VCC is below 2.7V (AAA rechargeable batteries) the boost circuit is activated by the MCU (Pin D4). When VCC is above 2.7V (disposable AAA batteries or CR2032) the circuit is disabled and the PIR is powered directly form VCC (see Q3-Q4-Q5)

                          • To increase the battery life, the photoresistor is powered through PIN D5, only when the node is awake. During sleep D5 will be set to LOW, so no current waste.

                          • Two momentary switch: 1 for MCU reset and 1 to force the node to wake up

                          • Motion led (D3) and low battery / external powerl ed (D5) configurable in the firmware, plus radio activity LEDs

                          • Header for Si7021 breakout

                          • AS312 Pir with mounting holes for a standard fresnel lens like the one present in the HC-SR501

                          • MYSX 2.6 connector to add other sensors.

                          • ATSHA204A for security signing

                          • Size: 57x57 mm (not so small but also not so big)

                          This is how the board looks like

                          0_1563106285959_front.jpg

                          0_1563106300980_rear.jpg

                          It is still under development, but if someone is interested, the Kicad project is available on github.

                          ... Well the next step is to test the ME2188 boost converter... I hope that it can do its job without triggering false positive on the PIR sensors!

                          ali kakaA Offline
                          ali kakaA Offline
                          ali kaka
                          wrote on last edited by
                          #38

                          One Last (boring 😂 ) question... Have you placed a flyback diode across the inductor? I'm not sure if this component is strictly necessary.

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


                          16

                          Online

                          11.7k

                          Users

                          11.2k

                          Topics

                          113.1k

                          Posts


                          Copyright 2025 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