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. My Project
  3. 3dprint case for motion, temp and humidity sensors with radio and batteries

3dprint case for motion, temp and humidity sensors with radio and batteries

Scheduled Pinned Locked Moved My Project
18 Posts 10 Posters 6.5k Views 9 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.
  • ikkeTI Offline
    ikkeTI Offline
    ikkeT
    wrote on last edited by
    #4

    I'm going to test how long such would work with button batteries (CR2032, 3V), and if it's long time, I could make smaller case. So far it's been on about half an year at least with two AA batteries.

    One could actually stack e.g. three of those CR2032 batteries and wire them parallel in half of the size casing. Creating like "Shelves" for the batteries in the case, where they could slide in.

    ? 1 Reply Last reply
    0
    • ikkeTI ikkeT

      I'm going to test how long such would work with button batteries (CR2032, 3V), and if it's long time, I could make smaller case. So far it's been on about half an year at least with two AA batteries.

      One could actually stack e.g. three of those CR2032 batteries and wire them parallel in half of the size casing. Creating like "Shelves" for the batteries in the case, where they could slide in.

      ? Offline
      ? Offline
      A Former User
      wrote on last edited by
      #5

      @ikket Just getting the parts for this. As it has been 10 months, what are the results of using smaller batteries?

      1 Reply Last reply
      0
      • ikkeTI Offline
        ikkeTI Offline
        ikkeT
        wrote on last edited by
        #6

        @Ngwpower after 10 months experience, I've modified things a bit. I never got to smaller batteries, as my access to 3D printer is quite rare. I have run into some problems with this setup.

        1. PIR sensor is picky about the voltage. It starts soon creating false alarms after batteries get a bit lower on voltage. It expects good 3.3V. To fix this I added voltage boster to suck out all the power from batteries to keep it in steady 3.3V. It worked (for a while).

        2. The 2.4Ghz radio is not a good idea in concrete house, along with neighbors wifis. I have lost signal from 1/3 sensors. I don't know really why, I suspect the radio signal strength and interference.

        3. I think batteries won't last now for so long after putting in the voltage pump. I really don't know why, I haven't investigated, but devices disappear after some weeks. The one without voltage pump stays there for months.

        4. PIR sensors again give false alerts. I don't know if it's due the heating during the winter, or dirty voltage that the voltage pump outputs.

        It could be that I should just change the batteries and reboot all of them, but I haven't got around to do it now. But if you add the voltage pump, make sure to add capacitor to steady the radio power.

        Temperature and door open/closed circuit works well. I wish I get the motivation to fix all the above one day soon :)

        Good luck, and report back the enhancements!

        Nca78N 1 Reply Last reply
        1
        • ikkeTI ikkeT

          @Ngwpower after 10 months experience, I've modified things a bit. I never got to smaller batteries, as my access to 3D printer is quite rare. I have run into some problems with this setup.

          1. PIR sensor is picky about the voltage. It starts soon creating false alarms after batteries get a bit lower on voltage. It expects good 3.3V. To fix this I added voltage boster to suck out all the power from batteries to keep it in steady 3.3V. It worked (for a while).

          2. The 2.4Ghz radio is not a good idea in concrete house, along with neighbors wifis. I have lost signal from 1/3 sensors. I don't know really why, I suspect the radio signal strength and interference.

          3. I think batteries won't last now for so long after putting in the voltage pump. I really don't know why, I haven't investigated, but devices disappear after some weeks. The one without voltage pump stays there for months.

          4. PIR sensors again give false alerts. I don't know if it's due the heating during the winter, or dirty voltage that the voltage pump outputs.

          It could be that I should just change the batteries and reboot all of them, but I haven't got around to do it now. But if you add the voltage pump, make sure to add capacitor to steady the radio power.

          Temperature and door open/closed circuit works well. I wish I get the motivation to fix all the above one day soon :)

          Good luck, and report back the enhancements!

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

          @ikket using a step up is not a good idea when using a PIR as it's very sensible to noise. A better solution is to add one more battery so even when they are nearly empty (1V) you've still got enough voltage to run your PIR.

          ikkeTI 1 Reply Last reply
          1
          • T Offline
            T Offline
            therik
            wrote on last edited by
            #8

            My solution was to use a low drop out voltage high ripple rejection ratio voltage regulator 3V0 to power the PIR. That special voltage regulator is fed from the booster 3V3, that keeps the voltage to the PIR rock solid. The booster is noisy especially when the arduino goes from sleep to wake and back.

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

              @therik I saw your old post about that. But the regulator you used has a 35uA quiescent current which is not "low" for a battery powered sensor ;)
              With similar waste in your booster you are probably reaching a point where you would have similar battery life with 2 CR2450 and a simple xc6206 3.3V regulator, without a booster.

              1 Reply Last reply
              0
              • ikkeTI Offline
                ikkeTI Offline
                ikkeT
                wrote on last edited by
                #10

                Just to give an update anyone building similar setup. I managed to find a day to fix the systems. I thought the step-up booster is causing noise, so I added a capasitor to step-up output. It stabilised it enough so PIR doesn't give false alarms any more. Pheeeew... Finally working properly.

                0_1522694807480_Kuvakaappaus - 2018-04-02 21-45-05.png

                1 Reply Last reply
                0
                • Nca78N Nca78

                  @ikket using a step up is not a good idea when using a PIR as it's very sensible to noise. A better solution is to add one more battery so even when they are nearly empty (1V) you've still got enough voltage to run your PIR.

                  ikkeTI Offline
                  ikkeTI Offline
                  ikkeT
                  wrote on last edited by
                  #11

                  @nca78 You can't really add one more battery, or you fry the radio which can handle only 3 and some Volts, right? If doing so, one needs to add step down regulator, so again loosing voltage. Or am I wrong?

                  Nca78N 1 Reply Last reply
                  0
                  • ikkeTI ikkeT

                    @nca78 You can't really add one more battery, or you fry the radio which can handle only 3 and some Volts, right? If doing so, one needs to add step down regulator, so again loosing voltage. Or am I wrong?

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

                    @ikket said in 3dprint case for motion, temp and humidity sensors with radio and batteries:

                    @nca78 You can't really add one more battery, or you fry the radio which can handle only 3 and some Volts, right? If doing so, one needs to add step down regulator, so again loosing voltage. Or am I wrong?

                    You are not wrong, but XC6206 has a very low quiescent current (around 1uA) so you're losing voltage but not current and you can enjoy the full capacity of the CR2450/CR2477 batteries.

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

                      If you want stable noise free 3.3v, go for LiFePO4 AA batteries ;)

                      1 Reply Last reply
                      0
                      • R Offline
                        R Offline
                        ricorico94
                        wrote on last edited by
                        #14

                        @ikkeT : would you mind sharing full details of your sketch and hardware setup (diagrams, ..) ?
                        That would be great since you already share the 3D case print.
                        Thanks,
                        ricorico94

                        1 Reply Last reply
                        0
                        • ikkeTI ikkeT

                          Hi home automators,

                          I thought I share back my case here from thingiverse for those who do want to monitor home with sensebenders and alike. I draw and 3d printed this case for my sensebender and motion + door trap sensors. One of them is running with arduino pro mini, as I didn't have sensebender for that. It's a bit tight for that, but does it's job. Feel free to modify it, and please notify me if you enhance it, so I'll get the enhancements as well :)

                          http://www.thingiverse.com/thing:2144946

                          alarm casing on side of door

                          The angle on the motion sensor allows me to point the PIR range to certain parts where I want it, by placing the case in different ways. Turn to left, right or put it above the door to aim all over.

                          It's not state of art, but my first 3d drawing and my first arduino job. Code is pretty much copy paste from here. The device sleeps until sleep timer hits, or motion or door trap interrupts the sleep. To get the interrupt for both, you need to leave arduino pin 2 unused from the NRF24L01+ radio, as that reserves the edge interrupt pin from sensebender. There are only 2 edge interrupt pins on those arduinos.

                          The code is here for the devices, like said mostly copy paste (fork): https://github.com/ikke-t/sensebender

                          Mysensors GW on raspi forwards the traffic as MQTT forward to my node-red. That then sends gtalk messages of events if alarm is on. I recently also added openhab to listen to MQTT bus just out of curiosity.

                          L Offline
                          L Offline
                          Llaskuci Llaskuci
                          wrote on last edited by
                          #15

                          @ikket greate Design
                          i have made some check out my designs
                          https://www.thingiverse.com/albaniac/designs

                          1 Reply Last reply
                          0
                          • CrankyCoderC Offline
                            CrankyCoderC Offline
                            CrankyCoder
                            wrote on last edited by
                            #16

                            I am about to put some door sensors up around my place. I love this idea of battery powered motion+door sensor. Just wondering if anyone has looked at something like the 18650's? The reason I ask is I have literally HUNDREDS of them from another on going project. Tons that aren't big enough for what I am working on but for uses like this it could work.

                            Home Automation Tinkerer
                            www.CrankyCoder.net

                            Controller: HomeAssistant in Kubernetes
                            Gateway: MQTTClientGateway
                            MySensors: 2.3

                            Nca78N 1 Reply Last reply
                            0
                            • CrankyCoderC CrankyCoder

                              I am about to put some door sensors up around my place. I love this idea of battery powered motion+door sensor. Just wondering if anyone has looked at something like the 18650's? The reason I ask is I have literally HUNDREDS of them from another on going project. Tons that aren't big enough for what I am working on but for uses like this it could work.

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

                              @crankycoder there are very cheap holders for those on AliExpress/eBay etc
                              Then you just need a 3.3V regulator (I suggest XC6206 it's perfect for that) and an undervoltage protection if your batteries are not protected.

                              The only problem is size, it's pretty hard to make a compact sensor with those :)

                              1 Reply Last reply
                              0
                              • S Offline
                                S Offline
                                stevefury
                                wrote on last edited by
                                #18

                                @ikkeT what cap did you put on the nrf?

                                because i also did have problems with transmission and i solved it with other caps in parrallel on vcc and gnd!
                                when on batteries:
                                10uf elektrolitic
                                0.1nf ceramic
                                100uf tantalum

                                on the voltage regulator i think also before 0.1nf and a 10uf to lower the noise on the power line output

                                what you think about that?

                                grtz

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


                                18

                                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