I have been working on a project and one of the ideas was to control power supply of LCD 16x2 module and IR sensor via I/O pin of microcontroller, basically to have them on/off when i need them to be. I know that that can be done using MOSFET and BJT transistors (aka. High/Low Side Switches). I am using pic18f4550 for this project.
In worst case those two modules consume around 30mA on 5V. I have done the math and made circuit that provides me output of 33.3mA on 5V.. Here is what i have done so far:
I have googled for high/low side switches but so far i haven't been satisfied with answers I found. Is this going to work or do i need something else to make this work? Thanks in advance.