First thing is to go through the datasheet and disable as many features as you can. That should save energy.
I have no experience with sleep feature.
Robert
First thing is to go through the datasheet and disable as many features as you can. That should save energy.
I have no experience with sleep feature.
Robert
I can suggest to switch off everything when not used, so you will have no power drain. When you press any button to activate the proper command, you will switch on the system via a small fet activated with an array of diodes so that any button will switch on the fet. Your pic as activated will retain the fet on for all the time necessary to process the comand then it will switch off the fet again.
Cheers
Al.
All progress began with an idea
Here is a thread on the subject: http://www.picbasic.co.uk/forum/showthread.php?t=6134
I liked the idea (coolness factor) of a "touch sensitive" case...
BTW. If you're not using the USB part of the Mikro board, you can save most of the $26 ($17.10 plus $9) and make a smaller board if you build the whole thing on stripe board. Also, you might find it easier to mount the RF module securely. Just a thought, although perhaps the convenience is worth it to you.
Something like this should be a good starting point.
Cheers
Al.
Last edited by aratti; - 25th June 2014 at 12:31.
All progress began with an idea
Thanx
Can it also be done with a N-ch FET like the 2N7000 in some way?
Will this schematic work?
When u press a button the FET will switch on the 7805 and the PIC, and then I hold RA4 low as long I want the PIC to run.
The +BATT terminal is from a 9V battery and the datasheet says that RA4 can handle up to 14 volts if I have understand it right, so 9V on RA4 will be OK?
It wont work. Because if PIC doesn't have power supply, current still can be drown from pin, and that will be probably enough to turn on fet. Even if RA4 is open drain, you can put more than VDD+0.6 on that pin. If you do this, you will damage input buffer.
So you need to to put transistor to bring down gate. Depending on P FET you use and battery voltage, maybe you need to put another resistor to create voltage divider for gate.
EDIT:
![]()
Last edited by pedja089; - 28th June 2014 at 19:13.
Bookmarks