A simple cell phone charger with timer circuit is presented in the following article, which could be used for charging a given Mobile phone for a specified predetermined length of time. The idea was requested by Mr. Saad.
Circuit Objectives and Requirements
- Could you design me this charger circuit ? Input 230V 60 Hz, and the output 3 USB port for charging Smartphones.
- What I need in this circuit is a Timer (Three sets of time), 30 mins, 60 mins and 120 mins.
- So I connect my phone to any of the three usb port and press (on/off) switch then the time start for example 60 mins then the power cut off.
- Hope you understand my request.
Circuit Diagram
Circuit Operation
The proposed cellphone charger circuit with timer can be seen in the above figure, the design primarily comprises of an IC 4060 timer stage and a DC to DC multi cell phone charger stage.
The cell phone charger section is a standard LM338 based charger circuit, wherein the output is bifurcated into 5 individual charging outputs facilitating charging 5nos individual cellphones. From these outputs 3 channels could be utilized for the intended 3 cell phone charging, at a rate of 1500mAH each. The series resistors may be accordingly calculated using Ohms law, as given below
R = V/I = 5/1.5 = 3.33 ohms, 10 watts each
R2 in the LM338 circuit must be appropriately adjusted to achieve around 5V across the output terminals or across C2 terminals.
The timer stage is made up of the IC 4060 whose pinouts are also configured in its standard timer/counter mode.
P1 may be adjusted to get a delay time of around 120 minutes on pin#3, which would allow pin#2 to produce a delay of 60 minutes, and pin#1 a delay of 30 minutes.
Initially when power is applied across the indicated mains input terminals, the cellphone charger circuit with timer does not respond and stays deactivated.
However, the moment the given push button is pressed, causes the N/O side of the relay to get connected with the other unconnected mains wire.
This momentarily connects the AC mains with the transformer leads, which in turn powers the rectifier stage enabling a momentary DC supply input for the IC 4060 timer stage.
This momentary supply to the IC 4060 stage activates the counting of the timer, and simultaneously produces an initial zero potential at the base of the relay driver BC557 transistor, switching ON the relay from N/C to N./O points.
As soon as this happens, the relay contacts now take-over the push-to-ON switch connections and allows the AC to flow through these contacts into the transformer primary.
This ensures that, now even if the push button is released, the circuit is able to get latched into the powered position enabling the LM338 to begin charging the attached cell phones and the timer IC 4060 to count the stipulated amount of time via the pot P1.
As soon as the counting of the IC 4060 gets elapsed, pin#3 (pin#1/2 whichever is selected) turns high, switching of the BC557 and the reverting relay contacts from N/O to N/C.
This action instantly switches OFF and disconnects the mains AC from the transformer, deactivating the whole process and bringing the whole system into its original standby position.
This cellphone charger timer circuit could be yet again initiated simply by pressing the push button for the next charging cycle.
Time Delay for the IC 4060 can be calculated using the formula:
f(osc) = 1 / 2.3 x Rt x Ct
where Rt = R2 +P1 (in Ohms)
Ct = C1 (in Farads)
Parts List
Resistors, All 1/4 watt 5%
2M2 = 1
22K - 1
10K = 1
1M = 1
120 ohms = 1
1M pot= 1
5K pot = 1
Capacitors
1uF/50V non-polar = 4
0.33uF = 1
470uF/25V = 1
1uF/25V electrolytic = 1
Diodes, 1N4007 = 5
Transistor, BC557 = 1
IC, LM338 = 1
Relay,12V/400 ohm = 1
Push button = 1
Transformer = 0-12V/5 amp
Output resistors as per the given formula
Dear sir
i have one USB TYPE C1 (16P) connector which is connected with PD ( power delivered) Power bank for high speed charge as a input, i want to use second USB type C2 16Pin for charge mobile with high speed & I want to charge mobile only for 1 Hours & for that i used MCU with TIMER & I control Negative Terminal of C2 via N mosfet & MCU.
Now it work well But high speed charge is not work bcz i have low idea about CC pin & data pin . so can u please shows me both C1 & C2 pin connection for high speed charging ? How to connect CC pin of C1 & C2 , and Data + & Data _ & pull down or pull high etc….
Nitesh, here’s howw you need to connect it:
" rel="ugc">
If you are using PD voltages (9V, 12V) then use a buck converter to bring it to 5V/9V for mobile.
Mobile will only draw high current if it detects CC pull-down and correct voltage levels on D+/D−.
Do not switch VBUS or CC with MOSFETs….. switch GND only or use a proper load switch IC.
Remember:
If CC not pulled down then mobile will never fast charge.
If D+/D− float then some phones will still charge fast… others will fallback to slow mode.
Dear sir.
pl down load my sch & inform is it true . I shows 2 pulll down Resistor both side at C1 &C2 side but at the time of placement & solder i do only one. for better coinvent of design i place both on CC1 &CC2 .
https://limewire.com/d/nXbWZ#Ul5FsGLZWU
Dear Nitesh,
It looks good to me, as far as the connections are concerned…
Thanks
Dear sir
sorry for repeat. But just inform does my attached file schematic’s is ok ? with this may PD will automatic switch voltage according to load? May i choose 24 PIN or 16PIN c type. Bcz in 24 pin there are some extra pin for data fast transfer. i think no need to choose 24 pin..
But pl conformed last.
https://limewire.com/d/nXbWZ#Ul5FsGLZWU
Nitesh,
I checked your attached schematic PDF and it looks OK overall, and your circuit might work for controlling USB PD 5V output through timer ON/OFF system.
No, in your circuit PD will not change voltage automatically based on load.
Your schematic not using any such PD controller IC like STUSB4500 or similar, so no voltage changing will happen.
if you just want simple 5V output from PD source, and no high speed data or no real PD feature then no need to use 24-pin. Just go with 16-pin USB C connector.
Dear
i have in my mind that ready made PD came with insight that types of ic u suggested. & while we connect mobile it works as fast charge.
Now I want to make a circuit which has a real PD feature while I connect mobile on output side & input side PD.
So can you give me revised schematics which have a Real PD feature.?
I want to use the Oukitel WP100 Titan mobile. For that i am using PD but finally control fast charging for 1 hours only & then cut for 3 hours.
it’s different when mobile becomes more discharged then fast charge & when mobile charges then charging current is changed or different or low level.
But for this function I am looking for Real PD charging schematics.
i am awning for finial circuit diagram which has real PD with CPin both side either 16P or 24Pin
so pl guide.
Nitesh,
Sorry, it looks difficult for me to create the schematic for your requirement, because I do not 100% information about this concept….
Dear
I think i move in wrong direction. Actually when i connect my power bank who has PD4.0 / QC4.0 include inside & when i charge my mobile then it show fast charge. Now my aim is just control charge time 1 Hours ON & 3 Hours off. so why i choose STUB4500 or any other shrink ic. ? i just regulate PD voltage to 5v for mcu & mcu thrue mos control & MOS thrue GND control of Mobile( load ) & other all line like Vbus , CC1 ,CC2, D+ & D- & If use 16 pin C type connector to both end then not possible? suppose at the timer off at that time my PD entire in stand by mode , so prevent this i connect some dummy load resistance on 5v output .. Now i think u understand well what actually i do.
Nitesh, your method is fully OK. No need STUSB4500 or shrink PD IC because your power bank already give 5V fast charge when mobile connect. So no need to negotiate anything.
You just want to control charging time, like 1 hour ON, 3 hour OFF and for that you use timer with MCU to switch GND using MOSFET. That trick is simple and smart, it will work.
PD going standby during OFF time is normal. So your 100 ohm dummy load on 5V is perfect idea to keep it alive. That fix is good.
Using 16-pin USB-C is fine, just use VBUS, GND, CC1, CC2. D+ D- not needed if no data.
So your setup is clean, cheap and working. No need for extra PD IC.
Dear sir
Can u please modify my schematics with Real PD feature with STUSB 4500.
I want to use with input PD 5 to 20 v & high speed charge upto 100W
Good day Sir
I have a transformer rated 7v 550watts. I want to use it to make a multiple USB port charger for mobile phones.
Each phone needs 5v, 1.5A to 2A. I need your help.
Thanks
Hi Aminu,
you can try the following design:
" rel="ugc">
Replace the zener with a 5.1V zener, the resistors can be a 1K 1 watt resistor
Replace the solar panel with your 7 V DC supply
Thanks very much.
So, does that mean each mobile phone charger should have a separate circuit like
" rel="ugc">
Or, I can connect as many mobile phones as possible to one circuit.
Thank you sir
Aminu, Preferably each mobile must have a separate circuit as shown above. Instead of TIP35 you can try TIP122
hi
thank you for this I was looking for something like this
I am trying to use quick charge module for charging but I am kinda confused and have couple of questions
1. should the NC and NO of relay be connected?
2. I made this but when i press the push button the relay activates from NC to NO but after 3 to 5 secondes it turns off, I don’t know whats the problem cause I tested the board outside of circuit and it worked fine
Hi, thanks for trying the above circuit.
1) As shown in the diagram, the N/C contact of the relay is unconnected. The N/O contact of the re;lay is used for powering the transformer.
2) The resistor and capacitor connected on pin#9 and pin#10 of the IC 4060 determine the time delay at its pin#3. Did you use these parts as given in the diagram.
To confirm whether the IC 4060 is operating correctly or not you can connect one LED in series with the base of the BC557, and another LED between pin#3 and ground with a 1k resistor
When you press the switch the base LED must illuminate initially and remain illuminated until the time elapses, then this LED should shut off and the other LED must illuminate. The relay should correspondingly switch ON and switch OFF.
Let me know the results once you complete the above procedures.
Hi, thanks for your amazing website and all the effort you put into articles. Would you be kind and explore the QuickCharge or other similar protocols enabling chargers and powerbanks to deliver 9 or 12 volts? I’ve found only one person (embedblog.eu/?p=504) who has made the circuit himself and yet he did it with a special IC and considering I’m in iran and there’s little to no chance I can get my hands on a special IC or order it from china without spending a fortune on it I wanted to ask you to figure out if theres a way to implement the QC 2.0 or 3.0 with an arduino or an attiny85. thanks again and have nice day
Hi, fast charging concept is not so difficult and can be implemented using ordinary ICs. It is just about applying high current at the initial stages until the battery voltage reaches a specific value, and then gradually reduce the current until the battery fully charged.
3 Step Automatic Battery Charger/Controller Circuit
Make this Fast Battery Charger Circuit
I am tasked to oversee an electric motor-propelled feed pellet disperser that is powered by a 6V rechargeable battery (solar panel power source). The device performs well and delivers feed at intervals dictated by an existing timer. This timer is limited however, in that it can only actuate the feed dispenser for 1,2, … , or 6 whole seconds at a time; no fractions of a second allowed. I want to refine the feed intervals by programming to tenths of a second.
I purchased a DROK timer relay. I programmed it to turn OFF for time “CL” (0.5 seconds) after getting a trigger signal, and then turn ON for 2.0 seconds time “OP”. Relay turns OFF after finishing timing.
I checked all this out at home on a breadboard and the circuit (less the timer, of course) worked flawlessly using an LED load.
I couldn’t get the circuit to work in the field! I am connecting the (+)BATT to the timer (default), but now interposing the preconfigured DROK between positive terminal and timer. I figure something is either amiss with my design, or I need to go into the newly fashioned wire connections/splices and replace solder for the wire nuts.
I’d like to use the DROK and not home build a timer relay myself.
>Could you diagram a circuit for me that I can use on this project?
If you can replace the external timers with a single IC 4060 based timer, then probably you can achieve the desired results. A IC 4060 can provide 10 selectable outputs with each output having a delay 50% less than the preceding one, or vice versa. You can either get this in repeatable form or a one-shot latching manner.
https://www.homemade-circuits.com/how-to-understand-ic-4060-pin-outs/
Hi Mr. Swagatam, great circuit !
Please help me to making timer and autocut off phone charger circuit (specialy with super tiny components as single 4060&0.1uf,thats awesome).
Iam using fast charging (5-9V 1-3A) with indicator cable but im NOT SURE ITS SAVE after batterys full at overnight charging (i think thats bad for phone battery).
What should i make to have 2 hour charging but can auto cut off even before time out if batterys full? Also please part list if theres any changes of existing components (for 2 hour timer)
Thank you for your big help
Regards.
Thanks Farrel, All phones have built in state-of-the-art battery protection system with auto cut off so need of adding any external cut off circuit…but if you still want it then I can add it in the above article
Thank you Mr Swagatam.
As we know is yes new phones are have built in auto cut off (I) feature..i just want to add that feature to next circuit that i make from both your design. Please contact me if you made it but i already sub your youtube channel&fb.
Once again thank you a lot..
Hi Farrel, you can try the second circuit from this article, the charger adapter’s mains 2-pin will go the points indicated as “load”:
https://www.homemade-circuits.com/simple-triac-timer-circuit/
Sir Good Morning!! could i ask you a image or schematics on what to do with unconnected pin of any IC?
thank you very much Sir, im sorry to ask because i cant understand when you say it has to be connected to a logic level.
jindro, the inputs of a CMOS IC such as which start with 74XX or, 40XX or 4XXX consist of logic gates in them, for example nand gate, NOT gates etc. When one of these gates are not used or are unconnected, their input pins should be terminated either to the positive line or to the negative supply line…in order to keep them stable.
One more thing, could you edit the design to be UK pluge type which contains 3 pins!
Hope you help me.
Thanks.
the indicated transformer/switch wires will become the inputs for the 220V AC, and a 3rd earthing pin could be included which could be connected with the chassis or the enclosure if a metal enclosure is used, or simply with the body of the transformer.
Hello mr. Swagatam,
Hope you are doing well.
Would you kindly provide me with a software that I could use to design this circuit.
Regards.
Hello Saad,
Do you mean PCB? Sorry I am not practically familiar with any PCB designing software that I can recommend, although you could find plenty if you search online
I mean simulation software.
Thanks for your response.
sorry I do not use simulators, I simulate my circuits in my mind, and according to me the above designis perfect… just needs to be built and tested practically
thanx.i will.
how to calculate capacitor and resistor in transformerless power supply.thnx
you can read this
https://www.homemade-circuits.com/calculating-capacitor-current-in/
hi swag.i have a rechargeable flahlight with capacitor of 584J 400V .it always puff up.it has no resistor across it.what value should i use.
Hi Dennis, It is happening simply because the capacitor is a bad quality capacitor, change it with a good quality one, preferably from some reputed brand. because if it is rated at 400V it can never puff up. the resistor is not compulsory, it may be included to discharge the cap while it is unplugged from mians, to avoid a discharge shock to the user in case he touches the plug pins accidentally.
thanx .hope u don’t mind me asking for electronic circuits because you are such a BIG HELP . i’m just starting to hook in electronics.till next request.god bless.
you are most welcome Dennis, keep up the good work!
hi swag,thanx for reply,what i mean was simple wifi signal booster antenna for cellphone or laptop using usb cable.
Hi Dennis, it may be any related item but still it will require a lot of accuracy and calculations to build it…
by the way I have seen that whenever I sit beside my wifi 4G device it becomes faster…it seems my body acts a like an antenna.
and can you help me design a signal booster circuit for laptop and cellphone to boost internet and wifi.thanx
sorry, I do not have this kind of circuit with me at the moment, and moreover designing such circuits can be really complex…
hi swag.thanx for fast response.i just opened my email now since my last message to you. can you help me decide what is the best soldering iron wattage and soldering lead diameter to use
in pcb’s.thanx
Hi Dennis, I prefer the following type of soldering iron, It is a 25 watt soldering iron which is normally recommended for most sensitive and normal PCB soldering work
" rel="nofollow ugc">
gud day swagatam.can u help me provide:
1. a circuit for rechargeable battery operated soldering iron like ISOTIP with adjustable current to vary wattage from 30w to 60w with digital wattage display using 4.2v lithiun or 3.7v 18650 if possible.
2.circuit for adjustable current to vary wattage soldering iron with digital watts display directly on 220 v. thanx
Good day Dennis, you can accomplish it with a simple IC 555 PW circuit as shown below:
https://www.homemade-circuits.com/2012/05/make-this-pwm-based-dc-motor-speed.html
you can replace the motor with your soldering.
I do not have a digital watt meter circuit at the moment, however you can use a digital ammeter which will allow you to get reading equivalent to watts…you can calibrate the meter range into watts…so basically it will show amps but the modified calibration will enable it to convert the readings into watts…as per my assumption.
how to calculate the resistor and capacitor values for 4hours
please provide me the formula
what is your battery AH rating??
Nice post
Great! Thank You.
Thank you Sir. Would you please provide me with the part list!
Hi Saad, I'll try to update the info soon…
Hi mr swag..great timer circuit..i’ve few question.
1. What should i do If i want to use it for timing my dc fan or my dc motor from 4.5v to 12v and using adaptor or charger (transformless, no relay) coz i want to make smallest circuit timer. maybe cut the transformer and give the (+) (-)voltage to the 470uf caps?
2. If i need that voltage range, are there any component to be replace?
3. I still dont understand at the output. What you mean are few usb output arrange by pararel right?.
Thank you mr swag, you are my big help
Hi Aindra, the above circuit is intended for charging cellphone, if you want to control only a motor in that case you wouldn’t this complex design, rather you can use the last circuit from the following article:
https://www.homemade-circuits.com/how-to-make-simple-timer-circuit-using/
You can replace the relay with a power transistor such as TIP31, depending on the motor rating. use a 470 ohm for the base of the transistor, and make sure to connect a freewheeling diode across the motor.
Ok. Thanks for the help.
Would you please add it for me.
Sorry for bothering you.
Saad, you will have to practically check and identify which pinout of IC 4060 gives the required pulses equivalent to seconds or minutes…but before that you will need to build the 4033 counter circuit successfully….
Sir, Thank you for the design.
Can you add LCD screen showing a Digital countdown of a certain time!
You are welcome Saad,
You can add the following design for counting the pulses from one of the outputs of the IC 4060 which may be corresponding to seconds or minutes
https://www.homemade-circuits.com/2013/11/cascading-ic-4033-in-multiple-digit.html