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. Development
  3. Wake-up over radio
  • Getting Started
  • Controller
  • Build
  • Hardware
  • Download/API
  • Forum
  • Store

Wake-up over radio

Scheduled Pinned Locked Moved Development
5 Posts 3 Posters 2.9k Views 3 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.
  • E Offline
    E Offline
    edualc
    wrote on last edited by edualc
    #1

    Hi there,
    Is there any way to wake up from sleep when a radio message is received ? I run a battery powered motion sensor, and after a few months the battery is empty, due to a lot of motion triggering putting the arduino out from sleep mode : in the motion detector sketch - this is the sketch I'm actually using - the PIR output is connected to one of the two interruptable pins, so at each movement detected, there is an interrupt waking up the pro mini. I would like to put the node in std-by during the presence of someone in my house, and put the node in active mode when the house is empty, and I would like to do this over the air.
    Thanks for your ideas

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

      When the node is asleep radio message are not received (no interrupt from radio) I tackled you problem by having the node waking up every minute and check with the controller if Motion needs to be on/off and switch accordingly. An other (additional) measure is to put the motion detector hardware in the "non-retrigger" setting. This way you can avoid large amounts of on/off triggering. Depending on your motion detector there is probably a jumper (3) or solder area (marked red) to be bridged upload-dcebd4e5-c92a-48b9-b4ff-84fe5b6109e9 upload-345c8ffd-123e-4cb2-9105-182edf633e3e Take a look at PIR or link. (btw one of these pins/ areas is also the 3.3 connection, point marked "H" in first picture). There are a few variations in design make sure that your sensor is similar.

      1 Reply Last reply
      0
      • YveauxY Offline
        YveauxY Offline
        Yveaux
        Mod
        wrote on last edited by Yveaux
        #3

        I doubt if the ATMega is the big battery-depleter in this case. Most probably the nRF24 radio will consume the most power.
        See e.g. http://forum.mysensors.org/topic/250/how-do-i-use-the-interrupt (scroll down a bit) for PIR power consumption.

        http://yveaux.blogspot.nl

        E 1 Reply Last reply
        0
        • E Offline
          E Offline
          edualc
          wrote on last edited by
          #4

          @AWI : yes, the sleep is already implemented in my sketch, the fact is that I'm using an old fashioned PIR that I have hacked, removing the RF part and replacing it with an nRF. The whole think is powered by a 9v cell. The newest PIR's showed above are probably much more efficient regarding power needs. That's why I was really looking to have some possibility to play with the interrupt system from the nRF library

          1 Reply Last reply
          0
          • YveauxY Yveaux

            I doubt if the ATMega is the big battery-depleter in this case. Most probably the nRF24 radio will consume the most power.
            See e.g. http://forum.mysensors.org/topic/250/how-do-i-use-the-interrupt (scroll down a bit) for PIR power consumption.

            E Offline
            E Offline
            edualc
            wrote on last edited by edualc
            #5

            @Yveaux : interesting post with the current measurements, thanks. I was more focused to adapt the nRF library to try to have an interrupt possibility when a radio message is received

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


            14

            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