Click here to Skip to main content
15,889,480 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi guys I'm not sure if this is the best place to post this but I couldn't find anywhere else.

Would it be possible to program a cell phone charger to detect when a phone is at 20% and then it will start charging? But it won't start charging before 20%. Then it will charge it up to 99% and then stop charging until the phone reaches 20% again.

Let me know if you have an idea how to go about this. Specifically for iPhones and Galaxies, etc. The most popular phones.
Even if you can't give me specifics maybe just give me an idea of how to do it? I am not a programmer so maybe try to keep the lingo somewhat easy for me to understand, Thanks!

-Brandon
Posted
Comments
Sergey Alexandrovich Kryukov 17-Jan-16 20:12pm    
It's not about the phone, it's about the platform. With iPhone, it's clear, but other can carry different OS. But even browsers support standard battery API...
Also, I don't understand why control charging. Phones are usually not connected to the power outlet. The users connect them.
—SA
Richard MacCutchan 18-Jan-16 4:12am    
You don't program the charger, you program the phone.

1 solution

There is no ability to control the charging process by software running on the system.

The charger is part of the phone hardware. There is usually an integrated circuit that does all the charging without any software involved. So there is no need for the system to be running while charging. However, that IC has some status outputs connected to the phone system (battery low, charging, battery full, external power present). Additional sensors for battery voltage, load current, and battery temperature are used to estimate the current discharge state based on the discharge characterics of the used battery type.

The charging algorithm is hard coded in that IC according to some specification (a common specification is: JEITA (Japan Electronics and Information Technology Industries Association) Standard, A Guide to the Safe Use of Secondary Lithium Ion Batteries on Notebook–Type Personal Computers, April 20, 2007).

So it would not be a good idea to user other (non-standard) charging algorithms even if it would be possible.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900