Netduino home hardware projects downloads community

Jump to content


The Netduino forums have been replaced by new forums at community.wildernesslabs.co. This site has been preserved for archival purposes only and the ability to make new accounts or posts has been turned off.
Photo

Code fails when battery powered.


  • Please log in to reply
4 replies to this topic

#1 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 28 October 2011 - 09:54 AM

I have some code which reads from an analog temperature sensor, then displays the result (converted to F) on a small LCD. When I run the code with the USB attached it will run fine for hours, however when I run it on battery power it stops working after a few minutes, until I reset it. When this happens I can ping it from MFDeploy (after I reattach the USB cable). I have attached the project that I'm using.

Attached Files


When you talk EE use small words, I'm just a Software Developer :)
My Blog/Site and Everything Else

If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.

 

Oh my. So many things, so little money!!

 


#2 haxburgen

haxburgen

    Member

  • Members
  • PipPip
  • 21 posts

Posted 28 October 2011 - 10:34 AM

This happens to me when I try to get a HttpWebResponse. I know this doesn't help you, but I think there might be an underlying connection.

#3 Chris Walker

Chris Walker

    Secret Labs Staff

  • Moderators
  • 7767 posts
  • LocationNew York, NY

Posted 28 October 2011 - 10:38 AM

Hi Arron, What type of battery and voltage are you running it off of? Using the DC power barrel? Also--if you run the program powered via USB--but not connected to the debugger--does it work fine there? Chris

#4 Arron Chapman

Arron Chapman

    Advanced Member

  • Members
  • PipPipPip
  • 289 posts
  • LocationOregon, USA

Posted 28 October 2011 - 08:51 PM

This happens to me when I try to get a HttpWebResponse. I know this doesn't help you, but I think there might be an underlying connection.

I'm certainly not using HtthWebResponse, however there may be a related issue. Also have you posted about this somewhere else, I'd like to take a look at your code.

Hi Arron,

What type of battery and voltage are you running it off of? Using the DC power barrel?

Also--if you run the program powered via USB--but not connected to the debugger--does it work fine there?

Chris


I'm using a 7.2V battery pack with the barrel jack. I powered the setup with USB (no debugging, used an iPod wall adaptor), so far it's run longer than I recall it ever running on the battery.

When you talk EE use small words, I'm just a Software Developer :)
My Blog/Site and Everything Else

If my post helped you please consider pressing the "Like This" button in the bottom right-hand corner.

 

Oh my. So many things, so little money!!

 


#5 Stefan W.

Stefan W.

    Advanced Member

  • Members
  • PipPipPip
  • 153 posts

Posted 28 October 2011 - 09:24 PM

7.2V is below the specs - the netduino asks for at least 7.5V as unregulated input (which means in case of battery you should aim for more since the voltage drops as the battery discharges). This might be the cause for your stability issues ...
I believe that no discovery of fact, however trivial, can be wholly useless to the race, and that no trumpeting of falsehood, however virtuous in intent, can be anything but vicious.
-- H.L. Mencken, "What I Believe"




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users

home    hardware    projects    downloads    community    where to buy    contact Copyright © 2016 Wilderness Labs Inc.  |  Legal   |   CC BY-SA
This webpage is licensed under a Creative Commons Attribution-ShareAlike License.