Smart phone charger with Arduino uno

As the title suggests, I need help with the code of the project. When a sensor detects something a timer starts and charges a phone, when the timer ends it stops charging.

Ok, what have you done so far?

What parts are you using in your project?

Can you post your code and a schematic diagram showing how the various parts of your design are connected together - a hand drawn diagram that's photographed is fine.

@flaxteip
What is the point to make it yourself rather than just buying in the store?