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. Multisensor PIR based on IKEA Molgan

Multisensor PIR based on IKEA Molgan

Scheduled Pinned Locked Moved My Project
112 Posts 21 Posters 49.8k Views 37 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.
  • gijssG gijss

    I have build a couple of these and they work fine. Replacing batteries with the baseplate is really a huge advantage, and battery life seems to be pretty good.

    I have one issue though: I have built one including an LDR. But this seems to freeze after a random time, no longer reacting to movement.
    @dynamite , can you may be share your code and the way you have attached your LDR to the arduino etc?

    Many thanks!

    dynamiteD Offline
    dynamiteD Offline
    dynamite
    wrote on last edited by
    #84

    @gijss Hi I will try to find the code tonight and post it on github.

    1 Reply Last reply
    0
    • Mark SwiftM Offline
      Mark SwiftM Offline
      Mark Swift
      wrote on last edited by
      #85

      Guys,

      This is fantastic. Can someone summarise the best practises for using an Arduino Pro mini, to benefit from maximum battery life and voltage monitoring?

      Thank you!

      mfalkviddM 1 Reply Last reply
      0
      • Mark SwiftM Mark Swift

        Guys,

        This is fantastic. Can someone summarise the best practises for using an Arduino Pro mini, to benefit from maximum battery life and voltage monitoring?

        Thank you!

        mfalkviddM Offline
        mfalkviddM Offline
        mfalkvidd
        Mod
        wrote on last edited by
        #86

        @Mark-Swift https://www.mysensors.org/build/battery has information on how to get good battery life

        1 Reply Last reply
        0
        • gijssG gijss

          I have build a couple of these and they work fine. Replacing batteries with the baseplate is really a huge advantage, and battery life seems to be pretty good.

          I have one issue though: I have built one including an LDR. But this seems to freeze after a random time, no longer reacting to movement.
          @dynamite , can you may be share your code and the way you have attached your LDR to the arduino etc?

          Many thanks!

          dynamiteD Offline
          dynamiteD Offline
          dynamite
          wrote on last edited by
          #87

          @dynamite , can you may be share your code and the way you have attached your LDR to the arduino etc?

          @gijss the code can be found here. But I don't know the actual status of this code as I have not used it for a while and I was busy creating a dimmer. But maybe you can copy parts out of it.

          https://github.com/rspaargaren/My-sensors-IKEA/blob/master/multisensor.ino

          gijssG 1 Reply Last reply
          0
          • dynamiteD dynamite

            @dynamite , can you may be share your code and the way you have attached your LDR to the arduino etc?

            @gijss the code can be found here. But I don't know the actual status of this code as I have not used it for a while and I was busy creating a dimmer. But maybe you can copy parts out of it.

            https://github.com/rspaargaren/My-sensors-IKEA/blob/master/multisensor.ino

            gijssG Offline
            gijssG Offline
            gijss
            wrote on last edited by
            #88

            @dynamite said:

            @gijss the code can be found here. But I don't know the actual status of this code as I have not used it for a while and I was busy creating a dimmer. But maybe you can copy parts out of it.

            https://github.com/rspaargaren/My-sensors-IKEA/blob/master/multisensor.ino

            @dynamite Thanks for the code, I am sure it will prove to be useful. Will try to experiment this weekend. Can you also share how you connected the LDR to the arduino? I have the feeling I might be using a suboptimal wiring scheme (or wrong resistor) resulting in shorter battery life.

            gijssG 1 Reply Last reply
            0
            • Cliff KarlssonC Offline
              Cliff KarlssonC Offline
              Cliff Karlsson
              wrote on last edited by
              #89

              @Yveaux Did you finish the PCB for the molgan?, If so is it possible for you to share the files?

              YveauxY 2 Replies Last reply
              0
              • L Offline
                L Offline
                LastSamurai
                Hardware Contributor
                wrote on last edited by
                #90

                I would be interested too!

                1 Reply Last reply
                0
                • Cliff KarlssonC Cliff Karlsson

                  @Yveaux Did you finish the PCB for the molgan?, If so is it possible for you to share the files?

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

                  @Cliff-Karlsson Yes, works like a charm!
                  It has been on my ToDo list for quite a long time to publish the files -- please hold on a little longer ;-)

                  http://yveaux.blogspot.nl

                  dynamiteD 1 Reply Last reply
                  0
                  • YveauxY Yveaux

                    @Cliff-Karlsson Yes, works like a charm!
                    It has been on my ToDo list for quite a long time to publish the files -- please hold on a little longer ;-)

                    dynamiteD Offline
                    dynamiteD Offline
                    dynamite
                    wrote on last edited by
                    #92

                    @Yveaux great as my project was on hold for a while but still on the to do list...:-)

                    1 Reply Last reply
                    0
                    • Cliff KarlssonC Cliff Karlsson

                      @Yveaux Did you finish the PCB for the molgan?, If so is it possible for you to share the files?

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

                      @Cliff-Karlsson @LastSamurai @dynamite I just published the PCB on [OpenHardware.io].(https://www.openhardware.io/view/274/Ikea-Molgan-Hack)
                      A sketch will follow soon.

                      Enjoy!

                      http://yveaux.blogspot.nl

                      1 Reply Last reply
                      1
                      • gijssG gijss

                        @dynamite said:

                        @gijss the code can be found here. But I don't know the actual status of this code as I have not used it for a while and I was busy creating a dimmer. But maybe you can copy parts out of it.

                        https://github.com/rspaargaren/My-sensors-IKEA/blob/master/multisensor.ino

                        @dynamite Thanks for the code, I am sure it will prove to be useful. Will try to experiment this weekend. Can you also share how you connected the LDR to the arduino? I have the feeling I might be using a suboptimal wiring scheme (or wrong resistor) resulting in shorter battery life.

                        gijssG Offline
                        gijssG Offline
                        gijss
                        wrote on last edited by
                        #94

                        @dynamite

                        It has been a while (mainly because the PIR was out of order for other reasons) but now I am restarting the project and again it happened that the PIR no longer responded. So I took a look at your code, but it seems your are using a BH1750 light sensor, is that correct? And are you using that in fact at the moment, or did you switch to LDR and is this perhaps not the latest version of the code?

                        Thanks!

                        Gijss

                        dynamiteD 1 Reply Last reply
                        0
                        • gijssG gijss

                          @dynamite

                          It has been a while (mainly because the PIR was out of order for other reasons) but now I am restarting the project and again it happened that the PIR no longer responded. So I took a look at your code, but it seems your are using a BH1750 light sensor, is that correct? And are you using that in fact at the moment, or did you switch to LDR and is this perhaps not the latest version of the code?

                          Thanks!

                          Gijss

                          dynamiteD Offline
                          dynamiteD Offline
                          dynamite
                          wrote on last edited by
                          #95

                          @gijss Hi let me check upon that as the PIR has not been on the top of my priority list. I have one of the PIR based on LDR sensor. But I was working on a BH1750 sensor. So most probably the code is related to that version.

                          1 Reply Last reply
                          0
                          • R Offline
                            R Offline
                            ricmail85
                            wrote on last edited by
                            #96

                            Hi to all,
                            I've realized my hacked version of the Ikea Molgan but the PIR sensor stays always HIGH.
                            Everything works apart of this... Do you have any idea howto investigate?

                            could I have broken it?

                            dynamiteD YveauxY 2 Replies Last reply
                            0
                            • R ricmail85

                              Hi to all,
                              I've realized my hacked version of the Ikea Molgan but the PIR sensor stays always HIGH.
                              Everything works apart of this... Do you have any idea howto investigate?

                              could I have broken it?

                              dynamiteD Offline
                              dynamiteD Offline
                              dynamite
                              wrote on last edited by
                              #97

                              @ricmail85 hi iT has been a while ago but as far as I recollect I had the same problem with one of my sensors ...

                              In normal situation the sensors gives a high signal for approx 30 sec.

                              In the bricked PIR I have replace the pir board by a cheap and modified pir from Ali.

                              1 Reply Last reply
                              0
                              • R Offline
                                R Offline
                                ricmail85
                                wrote on last edited by
                                #98

                                Ok thanks for your reply. I'll check the board for some weak connection and try again...
                                bye!

                                1 Reply Last reply
                                0
                                • R ricmail85

                                  Hi to all,
                                  I've realized my hacked version of the Ikea Molgan but the PIR sensor stays always HIGH.
                                  Everything works apart of this... Do you have any idea howto investigate?

                                  could I have broken it?

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

                                  @ricmail85 I also have one Molgan that I just can't get to work correctly. Put it aside, thinking it was an incident, but if more people have issues, this might be a structural thing...

                                  http://yveaux.blogspot.nl

                                  R 1 Reply Last reply
                                  0
                                  • YveauxY Yveaux

                                    @ricmail85 I also have one Molgan that I just can't get to work correctly. Put it aside, thinking it was an incident, but if more people have issues, this might be a structural thing...

                                    R Offline
                                    R Offline
                                    ricmail85
                                    wrote on last edited by
                                    #100

                                    @Yveaux said in Multisensor PIR based on IKEA Molgan:

                                    @ricmail85 I also have one Molgan that I just can't get to work correctly. Put it aside, thinking it was an incident, but if more people have issues, this might be a structural thing...

                                    I'll give it a try. I have to check that the wires I soldered on the back of the breadboard are just fine...
                                    I'll let you know.

                                    bye!

                                    dynamiteD 1 Reply Last reply
                                    0
                                    • R ricmail85

                                      @Yveaux said in Multisensor PIR based on IKEA Molgan:

                                      @ricmail85 I also have one Molgan that I just can't get to work correctly. Put it aside, thinking it was an incident, but if more people have issues, this might be a structural thing...

                                      I'll give it a try. I have to check that the wires I soldered on the back of the breadboard are just fine...
                                      I'll let you know.

                                      bye!

                                      dynamiteD Offline
                                      dynamiteD Offline
                                      dynamite
                                      wrote on last edited by
                                      #101

                                      @ricmail85 @Yveaux basically mine was shortcut by testing Some connection which I should not have Done....🙄

                                      R 1 Reply Last reply
                                      0
                                      • dynamiteD dynamite

                                        @ricmail85 @Yveaux basically mine was shortcut by testing Some connection which I should not have Done....🙄

                                        R Offline
                                        R Offline
                                        ricmail85
                                        wrote on last edited by
                                        #102

                                        @dynamite @Yveaux Ok I've done some testing. Here my results.

                                        I checked the wire connections between the Arduino and the PIR and they were ok. Actually when powering everything with batteries I always get HIGH from PIR.

                                        Then I tried to leave only the PIR without the Arduino and its radio (disconnected the GND wire) and the PIR (alone) was working! I checked with multimeter it oscillates between 0V and 3V if a movement was detected.

                                        So I concluded that the failure was due to the Arduino. If arduino+radio are powered (by the same battery source) i get always HIGH.

                                        Looking at this post https://forum.mysensors.org/topic/5273/ikea-molgan-hack/36 I found similar problems due to ripples. I added a capacitor (100uF) in parallel to the PIR capacitor and a 10uF capacitor between the + and - of the battery pack.

                                        By doing so I still cannot move from HIGH signal from PIR when everything was connected. So I've done more debugging and I found that everything works like a charm if I put a sleep (1000 ms) after sending a message (in my sketch I send 4 different message types when the Molgan wake up).

                                        Maybe there is still some disturb arising from the radio (sending a message require some power at least)? Now my project is working, actually with the sleep(1000) trick after each send.

                                        I don't know if the capacitors were effectively needed at this point...

                                        Hope this can help!
                                        bye!

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

                                          I am the one from your post and the capacitors only helped a little. One of my molgans simply doesn't seem to work.
                                          But you are right sending takes a lot of energy (vs doing nothing) so a bigger capacitor and/or pauses in between definitely should help!

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


                                          9

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