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. Development
  3. Support for wake up by Timer2 instead of WD

Support for wake up by Timer2 instead of WD

Scheduled Pinned Locked Moved Development
3 Posts 3 Posters 1.3k Views 2 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
    ewasscher
    wrote on last edited by
    #1

    Hi all,

    Before coming to MySensors I've been experimenting with waking up my sketches from the atmega328p Timer2, clocked from a 32KHz crystal, instead of waking up from the watchdog timer. This reduces the MCU power consumption from about 4uA to about 1uA while "sleeping". As a result battery life of (coin cell powered) sensor nodes is substantially increased. For example the battery life for a Sensebender Micro, powered from a CR2032, reporting temperture and humidity every minute would (theoretically) be more than doubled.

    Now I'm thinking of implementing support for this in MySensors. Regarding this I have some questions:

    • Are other people interested in this?
    • What would be the preferred way to implement this? I'm thinking of creating a new hardware type derived from the current MyHwATMega328.
    • Is there any chance of this being included in MySensors if implemented properly?

    Regards,

    Ewald

    1 Reply Last reply
    0
    • S Offline
      S Offline
      Samuel235
      Hardware Contributor
      wrote on last edited by
      #2

      Even if this didn't get 'officially implimented' into the MySensors library, i'm very interested in this as i'm currently designing coincell powered light switch nodes.

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

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

        @ewasscher said:

        Are other people interested in this?

        Apparently yes

        What would be the preferred way to implement this? I'm thinking of creating a new hardware type derived from the current MyHwATMega328.

        Better not implement it this way, as your implementation is still just ATMega328 hardware based.
        How about e.g. passing an extra parameter to the sleep() method, which defaults to watchdog?

        Is there any chance of this being included in MySensors if implemented properly?

        Ofcourse. MySensors is a community effort, and any useful addition/bugfix can make it into the library.

        http://yveaux.blogspot.nl

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


        29

        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