I've tried to figure out the values for R1 and R2 for a while now but couldn't find an example nor an understandable explanation on how to calculate their values. I'd really appreciate if someone could point me to a possible solution.
your schematic looks so much cleaner. I can't spot the differences right away and need some time to analyze it.
@raschemmel post #1. The circuit is part of an IOT application where the power consumption is crucial. After some research I came to the above solution to switch all unused components off while the Atmega328P is in deep sleep (1 + 2). The LED was meant as an example of a consumer, in reality this would be at least an HC-12 433 MHz HF module and one or more sensors which together will probably use 1 A max (3).
The above is a catastrophe waiting to happen.
R1 is excessively high for a simple 5V logic driven 2n2222 . In that configuration you typically see values between 1k and 5k. The only reason to use 260k is to limit the base current and thus the collector current.I can't see any reason to do that. How did choose 260k ?