Working principle:
After connecting the charger to the mobile phone and the socket, the voltage is adjusted through the resistor, enters the voltage comparator with a small value and produces a nominal value, which is the normal charge of the mobile phone. When the mobile phone is fully charged, a higher voltage at the other end enters the voltage comparator and produces 0V. At this time, the relay attracts the armature to disconnect the circuit and realize automatic power off.