I need some help. I have the following circuit.
The highlighted area is what I am having trouble with. I understand that I cannot use the component (transistor) in the that area as it shows on the diagram but I hope you can push me in the right direction. Here is what I am trying to do. When the button (Switch) is pushed the whole circuit is powered. The MIC5219's enable pin activates the chip which is powering the ATMEGA. That way, when not needed I can power the whole chip/circuit down and preserve power. Once the chip starts up first thing I pull pin D8 high which keeps the MIC5219 powered. Then I can run my program and move the servo.
My issue: The 7805 uses about 2mA in standby mode even when nothing happens. I need to shut the power flow off somehow and was thinking using a transistor. The connection between the 7805 and the battery has to be cut off in order to save these 2mA but of course the transistor does not work that way. How can I design that part of the circuit to have a "switch" that I can control with pin D8 and activate the power flowing through the 7805 and provide the power to the servo?
Just in case you wonder why I want to do this? The MIC5219 does not provide enough current to the circuit and the voltage drop when the servo starts up causes the whole circuit to reset and start over. Not the desired behavior. That's why I want to provide the servo with its own voltage regulation.
Thank you very much for your help.
@justme @vtolentino could you guys please have another look at the updated circuit and advise if I got that right? Really appreciate your feedback.