Internet of Things Phone Smart Charger

I pre-ordered one of the Samsung Galaxy Note7 phones. The ones in the news recently for being an explosion hazard.

I love the new phone – pocket computer really, the way I use it. I wasn’t about to give it up over some silly thing like spontaneous combustion.

I had read that Tesla runs their car batteries between 40%-80% for normal use to maximize the lifetime of their very expensive car batteries. I figured that cell phone batteries would benefit from similar treatment. A bit of research generally confirmed this, with http://batteryuniversity.com/learn/article/how_to_prolong_lithium_based_batteries being the most concise write-up. The first half basically demonstrates that you can get the same amount of total power to flow through the battery regardless of how much you charge it – summed over the total life of the power draw in the data tables. The 2nd half is more interesting. It says that high voltage charges and heat shorten the overall lifespan of the battery.

The Note7 is a sealed phone wihtout a replaceable battery. I can’t pull my usual trick of replacing the battery after a year of abusing it.

Heat seams to be the trigger for the phone explosions. So I can make my phone more safe, and make it last longer by managing the top voltage and heat in the battery.

I can do this.

I bought a wireless Qi charger to charge the phone because it charges slower. The fast charger can charge the phone crazy fast, but it gets HOT when it does this. Hot is bad. Thus, slow is good. The wireless charger will also reduce wear on the USB C port. A nice side benefit. No phone explosions while I sleep and burn the house down – this is a good thing.

I bought a Belkin WEMO wifi controlled outlet. It is If-This-Than-That (IFTTT.com) capable so I can control it from my phone. There are other smart plugs available that will work, this is simply the one I could find in a store that I could verify would work with IFTTT.

I configured IFTTT to have 2 different actions. One for turning the WeMo on, the other off. I set these up as Maker Channel triggered recipes. There are other triggers that you can use such as email or SMS, but I am a web developer, so web-based triggers are a natural fit for me.

Image of The Rules set up in IFTTT
The Rules set up in IFTTT
Photo of the IFTTT Off rule
The OFF rule in IFTTT. It uses the Maker Chanel for the trigger, which means a web request will trigger this. It turns off the WeMo controlling the wireless phone charger.

I installed Tasker on the phone and configured it to monitor charge state and battery temperature.

I created 3 tasks, one to turn the charger on, and two to turn it off.

photo of Tasker rules
The rules in Tasker to control the phone charging.

The ON trigger looks for the battery to be below 80% charged, and below 35 degrees Celsius. This will make a request to the IFTTT.com Maker Chanel URL for ON.

One OFF trigger looks at the battery temperature. 35.1 degrees or higher. The other OFF trigger looks for the battery charge to be 90% or higher. These two both make a web request to the IFTTT.com Maker Chanel OFF URL I set up.

So now as the phone battery heats up or gets close to full, the phone tells the charger to turn off. I let the phone have a 10% charge window so I am not toggling the switch and charger on and off all night long.

Tasker with both OFF rules turned on. The phone is both charged to 90% or more as well as running hotter than I would like.
Tasker with both OFF rules turned on. The phone is both charged to 90% or more as well as running hotter than I would like.

I also programed the WeMo to turn itself on a little while before my alarm is set to go off. This is to let the battery be closer to 90% charged rather than 80% charged when I wake up. I haven’t found the right time for this yet. I still need to play with it a bit.

I know there are other ways to make a smart phone charger. This is what I came up with. I will be getting an additional smart plug and building one for at the office so I don’t over-charge my phone when at work. I will try a different brand likely to see if I can come up with a cheaper way.

Leave a comment

Your email address will not be published. Required fields are marked *

WordPress Appliance - Powered by TurnKey Linux