Digital charger using arduino UNO

Hello,

I am trying to make a digital charger using arduino UNO,that will function according to a pre-set time input by t the user and will stop power supply once the countdown reaches the time being set. But i need help in figuring out how to connect the charger with the breadboard/arduino to make it function ?
Also do i need to use any timer sensor in this project?
And which things are used in this project?

Kindly help and thanks in advance.

Charger for what.

An Arduino has a millis() counter that starts from power-up.
That might be accurate enough for a battery charger.

Leo..

I am trying to make a digital mobile charger using arduino UNO,that will function according to a pre-set time input by t the user and will stop power supply once the countdown reaches the time being set. But i need help in figuring out how to connect the charger with the breadboard/arduino to make it function ?
Also do i need to use any timer sensor in this project?
And which things are needed for this?

Kindly help and thanks in advance.

Seems to me you want to re-invent the wheel.

The charger inside a mobile phone (if that's what you're talking about) already has a charge controller that stops charging when the battery is full.

If you're talking about a mobile (portable) charger, powerbanks also have auto-off when charge current falls below a certain value.

I think you need to explain beter what you have in mind.
Leo..

I am trying to make an arduino controlled mobile charger that would cut off power supply once the countdown reaches zero.I will set the charging time by uploading codes into the arduino Uno.I need help with as to how to connect the charger with arduino uno for it to function?

Kindly watch the video link as to get an idea of what i am trying to make.

We got a very similar request to this one recently. I think it got stopped after the discussion explained how mobile phones charge their batteries. Have you found anything else in your searching?

You don't need precise timing, so you don't need an RTC (real-time clock.)

You need a power supply which will supply the power that your end device needs, plus a little extra for the Arduino and any inefficiencies in the switch.

You need some way for the Arduino to switch that power. A MOSFET is easy but requires a little knowledge. A relay is even simpler, so long as you buy a relay shield that has the necessary relay driver on board.

Then you probably need a socket that your device can plug in to. USB or whatever. That may be the most difficult part.