
- A very basic, BASIC question
- 06-15-2007
![]() Re: A very basic, BASIC question
| Lord Garth | 06-15-2007 |
![]() Re: A very basic, BASIC question
| Jan Nielsen | 06-15-2007 |
Please Register and login to reply and use other advanced options
I'm using a PICAXE 08M for a circuit that sits idle wating for an
input.
e.g.
Main:
If Pin1=1 then Flash 30
Goto Main
Since it will sit in this state for hours/days, can someone please
explain how to put the chip to rest to conserve battery power? I've
seen the commands Sleep, Wait, and Pause but am not sure they would do
the trick (or how to use them). I also read you could slow down the
processor somehow, and that might conserve power. Does anyone know
how much power is used in the above example? If it's not much. maybe
there's little benefit to making changes.
Thanks for any help,
Mike
present sets a limit as to how long you can sleep your processor.
For instance, if your processor is asleep for 4 seconds and awake for 1,
you'll save power but you'll likely miss a quarter second input.
The solution to the above example is to set a flip flop with the input.
This
will hold the data until the processor wakes up, reads it then resets the
flip flop.
Use a low power flip flop as the battery drain is almost inconsequential.
mperline@comcast.net skrev:
Hi,
rev-ed has a very active forum for the PICAXE chip where you may get
faster and better help ( at http://www.rev-ed.co.uk/picaxe/forum/ )
I believe the commands you are looking for is NAP and SLEEP, however
they are both very inacurate in their timing.
The new HIBERNATE should be better, but only on x1 parts.
/Jan
mperline@comcast.net wrote:
Hmm, well, I think you'll need to build a little signal switch
circuit on the board that will switch on the Vcc for the pic.
in turn, the Pic will boot and use one output to keep the switch
on.
You'll need some diode isolation so that you can also monitor the
input signal to the pic. If the signal goes away for a set time , you
can then switch off the Pic's power via the electronic switch..
basically , an PMOS type switch with low signal switching.
Use a diode on the input to isolate the loop back from the PIC
so that you will see the actually external signal appear at the PIC's
input and not the loop back signal to the switch..
P-HEX fet comes to mind for that with low voltage switching.
--
"I'm never wrong, once i thought i was, but was mistaken"
Real Programmers Do things like this.
http://webpages.charter.net/jamie_5
- suggest basic func/signal generator for basic scope test/setup ?
- October 5, 2007, 11:08 am
- Basic question
- October 16, 2006, 6:00 am
- basic question
- February 12, 2007, 7:37 pm
- REALLY basic question...
- January 15, 2008, 3:53 pm
- basic TV question
- June 3, 2010, 8:16 pm
- Basic multimeter question
- September 10, 2004, 11:19 pm
- A Very Basic NMOS question
- October 8, 2004, 10:36 am
- Basic question about volts
- December 30, 2004, 1:49 am
- A Basic MOSFET question
- April 30, 2005, 3:42 am
- Need help with these basic electronics question?
- August 7, 2005, 12:10 am
- Basic Circuit Question
- October 28, 2005, 6:26 am
- Basic Transformer Question
- November 15, 2005, 6:28 am
- Basic Wiring Question
- January 10, 2006, 6:39 pm
- some basic question about communication
- June 9, 2006, 6:41 am
- Basic current question
- June 12, 2006, 12:11 pm



> input.
> e.g.
> Main:
> If Pin1=1 then Flash 30
> Goto Main
> Since it will sit in this state for hours/days, can someone please
> explain how to put the chip to rest to conserve battery power? I've
> seen the commands Sleep, Wait, and Pause but am not sure they would do
> the trick (or how to use them). I also read you could slow down the
> processor somehow, and that might conserve power. Does anyone know
> how much power is used in the above example? If it's not much. maybe
> there's little benefit to making changes.
> Thanks for any help,