So I got an Arduino board for Christmas, and as my first project, I'm trying to make a timed phone charger. So that it will only charge my phone something like 2 hours prior to me waking up, as to not destroy the battery life. So what I've done so far:
- Cut and stripped a Micro-USB cord.
- Found the Ground wire and 5V wire, hooked it into the bread board, then hooked it up with the Arduino board, this allows for it to charge.
- Connected a relay so that I can have it turn on and off every 5 minutes, or I could increase the time.
But now, I'm a little bit lost. Is a relay actually neccasary to do this? All it needs to do is not send power so if there would be a way to do that, that'd be cool. But also I generally wake up at 6 but not always, is there a way that I could hook up an alarm clock to it? This way if I set the alarm for 6 it'd start charging at 4? Also what is the plausibility of hooking the data wires of the USB cable so that it can read the battery life and then stop charging once it's full?
Thanks in advance!