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. OpenHardware.io
  3. 💬 Ikea Molgan Hack

💬 Ikea Molgan Hack

Scheduled Pinned Locked Moved OpenHardware.io
motionmolganhackpirmysensorsikea
90 Posts 16 Posters 27.4k Views 15 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 Offline
    gohanG Offline
    gohan
    Mod
    wrote on last edited by gohan
    #30

    Agreed on the capacitor on the vcc, I had some random triggers on a pir sensor and they were gone when I added a cap to the 5v pin

    1 Reply Last reply
    1
    • L Offline
      L Offline
      LastSamurai
      Hardware Contributor
      wrote on last edited by
      #31

      @scalz and @gohan thank you very much! I added a 47uF electrolytic cap which helped a little. Afterwards I also added another 22nF ceramic cap. After that it seems to working just fine (for about 2 days now).
      @Yveaux perhaps you could create a new version including some caps to fix this problem for anyone? I am still glad to finally be able to use this good looking cheap sensor. Thanks again for your work

      YveauxY 1 Reply Last reply
      0
      • L LastSamurai

        @scalz and @gohan thank you very much! I added a 47uF electrolytic cap which helped a little. Afterwards I also added another 22nF ceramic cap. After that it seems to working just fine (for about 2 days now).
        @Yveaux perhaps you could create a new version including some caps to fix this problem for anyone? I am still glad to finally be able to use this good looking cheap sensor. Thanks again for your work

        YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by
        #32

        @LastSamurai Great to hear it runs stable so far!
        As I understood the capacitor is placed on the Molgan PCB, and that's a PCB I cannot redesign...
        Where execactly did you plave the capacitor? Could you post a picture, so I can add it as a hint to the build guide.

        http://yveaux.blogspot.nl

        1 Reply Last reply
        0
        • L Offline
          L Offline
          LastSamurai
          Hardware Contributor
          wrote on last edited by
          #33

          As the Molgan PCB works fine without the addon PCB it has to be its "fault" so I guess it makes sense to add them there. I placed the caps between GND and VCC of your pcb (which is linked to the molgan pcb). I also noticed that your pcb doesn't have any caps at the radio (right?). Normally you would add a 47uF caps there. Might that be part of the problem?

          Here is a quick picture. I can take a better one later.
          0_1488219882399_caps.jpg

          YveauxY 1 Reply Last reply
          0
          • L LastSamurai

            As the Molgan PCB works fine without the addon PCB it has to be its "fault" so I guess it makes sense to add them there. I placed the caps between GND and VCC of your pcb (which is linked to the molgan pcb). I also noticed that your pcb doesn't have any caps at the radio (right?). Normally you would add a 47uF caps there. Might that be part of the problem?

            Here is a quick picture. I can take a better one later.
            0_1488219882399_caps.jpg

            YveauxY Offline
            YveauxY Offline
            Yveaux
            Mod
            wrote on last edited by
            #34

            @LastSamurai said in 💬 Ikea Molgan Hack:

            As the Molgan PCB works fine without the addon PCB it has to be its "fault" so I guess it makes sense to add them there. I placed the caps between GND and VCC of your pcb (which is linked to the molgan pcb).

            Well, not too sure about that. In your case the PIR seems to suffer from disturbances introduced by the addon board (quick conclusion), so I would try to buffer there.
            The PIR seems already buffered at two places (red & green caps):

            0_1488220742916_upload-2933de08-8c55-4dd1-bf49-5cc25c454a00

            Adding an extra cap in parallel to the existing one(s) on the PIR-side of the PCB could be a simple solution.
            I have to dive into the Molgan's PCB layout to see if that's possible.

            I also noticed that your pcb doesn't have any caps at the radio (right?). Normally you would add a 47uF caps there. Might that be part of the problem?

            The radio has 100nF for decoupling on its own PCB.
            I never mount a 47uF buffering cap (or some similar value) for battery powered sensors.

            http://yveaux.blogspot.nl

            1 Reply Last reply
            0
            • L Offline
              L Offline
              LastSamurai
              Hardware Contributor
              wrote on last edited by
              #35

              I still have the second molgan on my desk waiting to be finished. I will experiment with that one adding caps in parallel to the once you marked and/or adding one directly across the +/- pads.

              1 Reply Last reply
              0
              • L Offline
                L Offline
                LastSamurai
                Hardware Contributor
                wrote on last edited by
                #36

                So I finally came around to testing with the second molgan. I put a small 22nF cap in parallel to the (in your picture) red cap on the board just on the backside of it. I also added a bigger 47uF electorlytic cap to the green one.
                I have only had it running for about a day now and it helped at least partly. It doesn't seem to get into constantly triggering anymore (although this only happened after longer periods of time with the other one) but I still get multiple triggers every time. If I shortly move inside the range I get 2-3 triggers (30s pause). So I guess the problem isn't fixed yet. I will wait some time to see how this works out and then try to add a cap between the + and - pads of the pcb.

                Any other ideas? (Btw I find it strange that its working for you without any problems while I have the same problem with bost molgans)

                YveauxY 1 Reply Last reply
                0
                • L LastSamurai

                  So I finally came around to testing with the second molgan. I put a small 22nF cap in parallel to the (in your picture) red cap on the board just on the backside of it. I also added a bigger 47uF electorlytic cap to the green one.
                  I have only had it running for about a day now and it helped at least partly. It doesn't seem to get into constantly triggering anymore (although this only happened after longer periods of time with the other one) but I still get multiple triggers every time. If I shortly move inside the range I get 2-3 triggers (30s pause). So I guess the problem isn't fixed yet. I will wait some time to see how this works out and then try to add a cap between the + and - pads of the pcb.

                  Any other ideas? (Btw I find it strange that its working for you without any problems while I have the same problem with bost molgans)

                  YveauxY Offline
                  YveauxY Offline
                  Yveaux
                  Mod
                  wrote on last edited by
                  #37

                  @LastSamurai said in 💬 Ikea Molgan Hack:

                  I find it strange that its working for you without any problems while I have the same problem with bost molgans

                  I'm sorry that you're experiencing problems, but mine are running rock solid for months. Maybe there's variation in the Molgans produced by Ikea?
                  What PIR's do yours have? Mine are marked "PIR D203B" on top.

                  I do have some issues with an outdoor D-SUN HC-SR501 based sensor.
                  This node starts to produce random bursts of triggers every now and then, which I tried to fix by replacing every part of the sensor.
                  After help from @scalz I found out the 47uF capacitor C102 (see schematics below, supposedly the schematic of the HC-SR501 from http://www.electrodragon.com/w/PIR_sensor) was only 100nF.

                  0_1488822219762_upload-1f2da113-c2b0-41cd-b1cc-8684ca52d6af

                  I replaced C102 with 100uF and added an extra cap to GND (connected to R1), to stabalize the power to the PIR.
                  First results show it runs stable, but time will have to tell if it keeps running that way.

                  Maybe the Molgan also contains some cost reductions (like replacing C102 by 100nF).
                  To know for sure the schematic of the Molgan has to be known first... Any volunteers?

                  http://yveaux.blogspot.nl

                  1 Reply Last reply
                  1
                  • L Offline
                    L Offline
                    LastSamurai
                    Hardware Contributor
                    wrote on last edited by
                    #38

                    I just spend an hour tracing the routes on the pcb. I am pretty sure I missed some (and there might be some errors) but here are my results for now. Ill redo them with KiCad later. Can someone measure the capacitors? They are unlabeled.

                    0_1488836803988_MolganSchematicsFullHD.jpg

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

                      @LastSamurai
                      i already said it but you can try to solder a capa (100uf) to the Drain "Vcc" pin and the GND pin of the PIR sensor itself.
                      Maybe you could tweak R9 on your schema, even if i don't think it's exactly connected like this in real.
                      Why?
                      Combined with the resistor, the capa does filtering and buffering/storing energy.
                      You can find infos on google, this is about the capacitor RC time constant.
                      So, increasing res&capacitor value, you will increase the time it takes for charging capacitor (so the time to settle the PIR at startup), and what you want, it will take more time to discharge, regarding for example power consumption spikes etc..
                      Ideally, it gives better result by using the right resistor, but if you're not sure about the resistor and the schematic, easy route is to increase the capa like i said. At the right place, the sensor ic, also easier because it's through hole . Molgan board was not created for handling another circuit i think, so the hack.

                      1 Reply Last reply
                      0
                      • L Offline
                        L Offline
                        LastSamurai
                        Hardware Contributor
                        wrote on last edited by
                        #40

                        @scalz Yes, I am pretty sure the part of my schematics around the pir isn't complete yet.
                        I'll try the capacitor. Does it have to be the 100uF value? Atm I only have a 47uF cap that might be small enough to fit under the pcb.

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

                          you can try, that could help, sure.

                          1 Reply Last reply
                          0
                          • YveauxY Yveaux

                            @GertSanders Awesome! Thanks for the tip man!

                            S Offline
                            S Offline
                            Samuel235
                            Hardware Contributor
                            wrote on last edited by
                            #42

                            @Yveaux - Get yourself on the adafruit show and tell series dude! I for one, watch this series with intent to learn and discover new devices and how to recreate them for myself. I'm pretty sure that most of the audience that join into those are there for the same reason as me. Congrats on making it to their site full stop though :)

                            MySensors 2.1.1
                            Controller - OpenHAB (Virtual Machine)
                            Gateway - Arduino Mega MQTT Gateway W5100

                            YveauxY 1 Reply Last reply
                            0
                            • S Samuel235

                              @Yveaux - Get yourself on the adafruit show and tell series dude! I for one, watch this series with intent to learn and discover new devices and how to recreate them for myself. I'm pretty sure that most of the audience that join into those are there for the same reason as me. Congrats on making it to their site full stop though :)

                              YveauxY Offline
                              YveauxY Offline
                              Yveaux
                              Mod
                              wrote on last edited by
                              #43

                              @Samuel235 said in 💬 Ikea Molgan Hack:

                              Get yourself on the adafruit show and tell series dude!

                              Which episode? I normally don't watch them :satisfied:

                              http://yveaux.blogspot.nl

                              S 1 Reply Last reply
                              0
                              • YveauxY Yveaux

                                @Samuel235 said in 💬 Ikea Molgan Hack:

                                Get yourself on the adafruit show and tell series dude!

                                Which episode? I normally don't watch them :satisfied:

                                S Offline
                                S Offline
                                Samuel235
                                Hardware Contributor
                                wrote on last edited by Samuel235
                                #44

                                @Yveaux - This is the series that i'm talking about https://www.youtube.com/watch?v=lrcNW2MaelM&list=PL7E1FAA9E63A32FDC

                                They just have random people on video link talking about their products. Might even get some more interest into the MySensors movement let alone your own hardware. Its your choice on what product to get on there i suppose :)

                                They normally give you a slot on their air time to just explain your product - not sure how you get on though, application maybe? Let us know if you decide to go for it!

                                Check out their other series, something else may be more interest to your hardware or personal interest.

                                MySensors 2.1.1
                                Controller - OpenHAB (Virtual Machine)
                                Gateway - Arduino Mega MQTT Gateway W5100

                                YveauxY 1 Reply Last reply
                                0
                                • S Samuel235

                                  @Yveaux - This is the series that i'm talking about https://www.youtube.com/watch?v=lrcNW2MaelM&list=PL7E1FAA9E63A32FDC

                                  They just have random people on video link talking about their products. Might even get some more interest into the MySensors movement let alone your own hardware. Its your choice on what product to get on there i suppose :)

                                  They normally give you a slot on their air time to just explain your product - not sure how you get on though, application maybe? Let us know if you decide to go for it!

                                  Check out their other series, something else may be more interest to your hardware or personal interest.

                                  YveauxY Offline
                                  YveauxY Offline
                                  Yveaux
                                  Mod
                                  wrote on last edited by
                                  #45

                                  @Samuel235 Ah, I misunderstood; thought it was featured on the series already :see_no_evil:
                                  Anyway, today my outside sensor felt like proving I didn't fix its issues yet:
                                  0_1488906648749_upload-1034c732-4ade-4bcf-9f17-9e1c79bec622
                                  The yellow spikes is one continuous burst of roughly 4 hours in which it continuously triggers. After that it resumes normal operation...
                                  Again, not a Molgan but an HC-SR501. However electronics are comparable.

                                  http://yveaux.blogspot.nl

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

                                    Thanks @Yveaux for the Molgan Hack board. I was my first experience in soldering an smd atmega ;-) Conclusion... need some more exercise. Finally got the thing working and now ready for the next steps. Some considerations:

                                    • The PIR is very sensitive to power fluctuations. Voltages below 3.1V will certainly cause instability.
                                    • I want to keep the light feature of the Molgan but make it accessible from MySensors. Same with the light sensor.
                                    • Power the Molgan with low selfdischarge rechargeable batteries (The led's will drain the batteries faster)
                                    • Maybe add a few other sensors (temp/ hum/ light effects)

                                    With the help of the excellent analysis work of @LastSamurai I'm thinking of the following "Ikea Molgan Hack Hacks"

                                    • add a 3.3V ldo (XC6206, 1uA ldd, 0.08V dropout) to power the Hack board and sensors.
                                    • a voltage divider for measuring real battery voltage.
                                    • drive the Led's from a pwm output on the base of transistor connected to R17
                                    • Measure the photodiode voltage one way or another.
                                    • breakout the SCL and SDA pins for more sensors.

                                    Any suggestions? (for sure a breadboarding exercise)

                                    1 Reply Last reply
                                    1
                                    • L Offline
                                      L Offline
                                      LastSamurai
                                      Hardware Contributor
                                      wrote on last edited by
                                      #47

                                      @Yveaux did you find a fix for your spikes in the pir readings?

                                      I now have the molgan with the 2 caps added in parallel to the existing one running for some weeks and it works reliably. It still triggers several times though when I only move once.
                                      Some days ago I also added a small electrolytic cap of 10uF (biggest value I had for the small form factor) directly across the gnd/power pin of the pir on the second molgan and ... it seems to do exactly the same as the first one (perhaps even slightly worse with nearer to 4-5 triggers for every real trigger, where the other one produces ~3).
                                      Has anyone tried something different? I mean this solution works reasonably well but its not really perfect... and just a hack imo.

                                      @AWI welcome to the "molgan club" ;). How did you solder the smd atmega? I found out that using flux helps a lot but it still takes way too much time and effort to solder by hand :astonished:
                                      Your ideas sound nice! Though it might be a little difficult to design the pcb to fit inside the case...

                                      YveauxY 2 Replies Last reply
                                      0
                                      • L LastSamurai

                                        @Yveaux did you find a fix for your spikes in the pir readings?

                                        I now have the molgan with the 2 caps added in parallel to the existing one running for some weeks and it works reliably. It still triggers several times though when I only move once.
                                        Some days ago I also added a small electrolytic cap of 10uF (biggest value I had for the small form factor) directly across the gnd/power pin of the pir on the second molgan and ... it seems to do exactly the same as the first one (perhaps even slightly worse with nearer to 4-5 triggers for every real trigger, where the other one produces ~3).
                                        Has anyone tried something different? I mean this solution works reasonably well but its not really perfect... and just a hack imo.

                                        @AWI welcome to the "molgan club" ;). How did you solder the smd atmega? I found out that using flux helps a lot but it still takes way too much time and effort to solder by hand :astonished:
                                        Your ideas sound nice! Though it might be a little difficult to design the pcb to fit inside the case...

                                        YveauxY Offline
                                        YveauxY Offline
                                        Yveaux
                                        Mod
                                        wrote on last edited by
                                        #48

                                        @LastSamurai I just kept it running unmodified and it seems to behave better now.
                                        I have a feeling it might be related to environmental humidity. I'll monitor it over a longer period and see if I can find a pattern.

                                        http://yveaux.blogspot.nl

                                        1 Reply Last reply
                                        0
                                        • L LastSamurai

                                          @Yveaux did you find a fix for your spikes in the pir readings?

                                          I now have the molgan with the 2 caps added in parallel to the existing one running for some weeks and it works reliably. It still triggers several times though when I only move once.
                                          Some days ago I also added a small electrolytic cap of 10uF (biggest value I had for the small form factor) directly across the gnd/power pin of the pir on the second molgan and ... it seems to do exactly the same as the first one (perhaps even slightly worse with nearer to 4-5 triggers for every real trigger, where the other one produces ~3).
                                          Has anyone tried something different? I mean this solution works reasonably well but its not really perfect... and just a hack imo.

                                          @AWI welcome to the "molgan club" ;). How did you solder the smd atmega? I found out that using flux helps a lot but it still takes way too much time and effort to solder by hand :astonished:
                                          Your ideas sound nice! Though it might be a little difficult to design the pcb to fit inside the case...

                                          YveauxY Offline
                                          YveauxY Offline
                                          Yveaux
                                          Mod
                                          wrote on last edited by
                                          #49

                                          @LastSamurai I recently fixed a couple of bugs in the external interrupt handling for sleeping sensors.
                                          In short, the sensor could wake within a few milliseconds after going to sleep, because of an interrupt that occurred in the past. For details see this thread.
                                          I'm not completely sure, but this could be the cause of your Molgan triggering all the time.
                                          Could you give the development branch a try and see if things improve?

                                          http://yveaux.blogspot.nl

                                          L 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