Jee Labs Talk

Discussion about Jee Labs projects

Register or log in - lost password?

Jee Labs Talk » Success stories

Weather station using a JeeNode

(24 posts) (5 voices)
  • Started 8 months ago by amvv
  • Latest reply from amvv
  • Related Topics:
    1. RTC Plug Battery Socket Improvement
    2. Temperature logging
    3. Where to buy sensors?
    4. Using a jeenode in a protoboard
    5. using 5 volt home-made MAX232/programming cable with 3.3 volt JeeNode?

Tags:

  • battery
  • interrupts
  • sensors
  • sleep
  • weather
« Previous123
  1. Jean-Claude
    Key Master

    You can also use the power down mode, then TIMER0 is automatically disabled. I'll be going back to this soon since the RF12 watchdog approach isn't good enough yet. See http://news.jeelabs.org/2009/05/16/power-consumption-more-savings/ etc.

    I wouldn't worry too much about waking up, even once a millisecond - the trick it to start up fast (fuse settings), to do little, and to go back to sleep as quickly as possible.

    Posted 7 months ago #
  2. amvv
    Member

    Thanks for the hints Kellerza!! I will try to check properly what is happening and compare with the current situation.

    But yesterday I was too eager to just verify that the timer was indeed waking it up every msec, so I uploaded the sketch into another JeeNode, and added a serial port output on the loop. I was expecting a lot of output in between the 2 seconds wakeup of the watchdog, but these didn't come - all I got was a print every 2 seconds...so maybe indeed the power down mode is switching off the TIME0 like the key-master :) Jean-Claude said above.
    I will try to investigate better these cases.

    Meanwhile, just would like to report that the station has been outside, during the polar weather spell we are having here with consistent negative temperatures, for 25 days now, and still broadcasting! next time I open it I will try to implement the battery measuring with the 2 big resistors divider.

    Posted 7 months ago #
  3. kellerza
    Member

    Sorry amvv, missed the power down mode in your code - Jean-Claude is right about that one disabling all timers.

    Posted 7 months ago #
  4. amvv
    Member

    I decided to implement the extra power saving by switching off the radio while sleeping, so today I opened up the weather station.

    Good news: the battery, after more than one month is still at 4.08V while the system sleeps, which is the same as when I opened it a couple of weeks ago for water proofing...I start to think that they will last long!

    So I put in the RF12_sleep() with no radio watchdog, and did some optimizations in the code, e.g. to switch off the light sensor as soon as possible, and reduce the processing instructions in the loop (there was one unnecessary "for"). I am also now sleeping for 8 seconds between cycles, and sending the packet 3 times in a row, to decrease lost packages...I was getting about 50% reception recently...Lets see if it improves.

    I will put the code on the wiki soon.

    With the multimeter, I could read 1.2uA, but it is not a very good multimeter...I could not make a reading when the sketch didn't have the rf12_sleep...couldn't figure out why...

    Posted 7 months ago #

RSS feed for this topic

« Previous123

Reply

You must log in to post.

Jee Labs Talk is powered by bbPress.