Help on a phone automatic charger project Answered
Im trying to build a circuit that allows a phone to be charged by a PowerBank automatically and I obviously need your help since Im kinda new to all this.
So the idea is to connect a phone to a powerbank using a relay. This relay is controlled by a PIC16F877A.
The Powerbank turns on once it is connected and off when disconnected. Im planning on using an android application to turn on the flash light once the phone is on 15% so that the LDR detects it and the PIC command the relay to switch. So once the powerbank gets connected it should turn on and start charging the phone. what do you think ? can i use a MOSFET instead of a relay ?
my problem is on the determination of the exact components I need so that the phone gets charged correctly.
Basically, the powerbank voltage is 5V and the phone draw a current of about 1.4A.
What is the best relay and transistor to use ? or should I simply use a MOSFET
Here I used a 5V relay but I need to determine the coil current to determines BJT collector current --> this determines useful BJT base current --> this determines useful base resistor values.
I hope you guys can help me pick the right components to use and advise me of how I can make this work perfectly.
PS : the simulation is working just fine