Pin 5 is an input serving only to read a low to high transistion from the wireless output which code interprets as signal to write pin 2 low powering down the chip. To be honest it should have an external 100k pulldown on it as it is currently being held low by the wireless receiver output. I think D3 was originally there to protect pin5 when I wasn't sure what voltage my circuit would be using. I will also refit a 100k to the Q2 base as you've suggested.I was curious about the purpose of D3 as well?? Does pin 5 have a pullup enables & you are using that to read data from the receiver?
I'm rather bemused about what you're trying to do? - the RF receiver is permanently powered, and will be drawing a 'reasonable' amount of current all the time - why add all this complexity, when you could just place the micro-controller in a VERY low power sleep mode, where it will use massively less than the RF receiver.
I presume the ATTiny has those facilities, certainly PIC's do, which you could use just as easily.
Have you measured the current consumption of the RF receiver?.
I use very similar power switching (but all bipolar) in many of our commercial products, but only in ones where there's any reason to do so - such as
To be clear power to the wireless was never switched.you were also switching the RF receiver
in your case you were also switching the RF receiver, which would prevent it working of course.
Have you measured the current consumption of the RF receiver?.
So why all the power OFF circuitry?, the ATTiny's current in sleep should be insignificant compared to 4.7mA for the receiver.I serve at the pleasure of the bemused Nigel.
The wireless is the one part of this circuit which must "never" be asleep.
It's measured current draw (4.7mA) was paramount in it's choosing.
More than familiar with putting Atmels to sleep thanks.
So why all the power OFF circuitry?, the ATTiny's current in sleep should be insignificant compared to 4.7mA for the receiver.
I presume you've already got the receiver?, and tested it? - as many RF receivers put out continuous noise which would continually trigger the power OFF circuitry to ON. It would also continually trigger the Tiny out of sleep, if you used my suggestion.
the ATTiny's current in sleep should be insignificant compared to 4.7mA for the receiver
I presume you've already got the receiver?, and tested it?
I'm not sure why you're still arranging a current draw comparison between the atmel and the wireless if I've said plainly the wireless must "never" be off. Your remaining issue would then only be should the atmel sleep (low current) or shutdown (no current). The typical circuit where the atmel is touched or timed to wake up and power up peripherals is not what's needed here.
The circuit has been up and working with no problems for a week even without the pulldowns which i will indeed add for peace of mind. My questions here were about removing unnecessary parts and about values.
No Nigel you're missing the point. the circuit is not within physical reach and can only be triggered by wireless. You made assumptions without asking proper questions about what I meant by "the wireless must be on" .You seem to be missing the point?.
I'm fully aware that the receiver has to be permanently powered, for the circuit to work - THAT's the point.
The receiver is drawing 4700uA continuously, an ATTiny, in sleep, presumably draws less than 47uA? - less than 1% of the RF receiver current (could be much less, depending low good Tiny's are). So you're adding 7 more component's to save less than 1% extra current, which is an insignificant amount.
You want to remove unnecessary components?, then remove the un-needed power switching ones - you're adding seven (or more) extra components, and gaining essentially nothing.
I would suggest adding a reservoir/decoupling cap across the battery though.
If an ATTiny isn't capable of doing the job (sitting in sleep using almost no power and waking on a pin change), then use a PIC instead - however, as Atmel's entire business plan was to try and compete with MicroChip PIC's I would expect it to have at least those similar capabilities.
No Nigel you're missing the point. the circuit is not within physical reach and can only be triggered by wireless. You made assumptions without asking proper questions about what I meant by "the wireless must be on" .
Hey Nigel with all due respect. I do electronics for fun and I don't want the fun removed from it. I have a wireless receiver which needs to be on all the time for my purposes. I have a microcontroller that needs to be on maybe twice for the week. I have opted to keep it powered down instead of sleeping. If i'm incorrect for doing it this way I'd like to hear from someone else why because you have provided me with no reason in a comprehensible language to do it differently. So I appreciate your time and thanks.
I don't know if you read this post from me. My atmel's job has to be human initiated, not routine, and the circuit is not physically accessible to humans. I'm sure I put that in another message as well. Hence the "wireless must always be on". I feel like we just haven't been on the same page. I've only read a million posts on putting atmels to sleep. I think it was Nick Gammon who did a comprehensive page on the how's and benefits which I read a long time ago. I also did a christmas circuit with code I wrote for an esp32 a little over a year ago where I put it to sleep. I think the principle of sleep is understood and I do appreciate your resolve. I'm not very different.The typical circuit where the atmel is touched or timed to wake up and power up peripherals is not what's needed here.
My application
I don't know if you read this post from me. My atmel's job has to be human initiated, not routine, and the circuit is not physically accessible to humans. I'm sure I put that in another message as well. Hence the "wireless must always be on". I feel like we just haven't been on the same page. I've only read a million posts on putting atmels to sleep. I think it was Nick Gammon who did a comprehensive page on the how's and benefits which I read a long time ago. I also did a christmas circuit with code I wrote for an esp32 a little over a year ago where I put it to sleep. I think the principle of sleep is understood and I do appreciate your resolve. I'm not very different.
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?
We use cookies and similar technologies for the following purposes:
Do you accept cookies and these technologies?