I am designing a battery charger circuit controlled by a microcontroller. Once the battery charges at constant current it switches to constant voltage and hence I need to design a switch that will be controlled by the microcontroller to switch between these two circuits.
I designed the following circuit, where an NPN transistor will act as a switch to control the PNP transistor connected to it. It will basically switch it on and off. However, the circuit works well for up to 0.35Amps. Increasing the current beyond 0.35A, will cause very inaccurate readings. What might bevthe problem? Am I biasing the transistors wrongly or taking incorrect readings/decisions in my circuit that will cause the switching circuit to function badly beyond that certain point? I want my circuit to work up to max around 0.8A.