• Skip to main content
  • Skip to primary sidebar

Homemade Circuit Projects

Need circuit help? Post them in the comments! I've answered over 50,000!

Blog | Categories | About | Contact | Calculators-online
You are here: Home / Power Supply Circuits / 220V SMPS Cell Phone Charger Circuit

220V SMPS Cell Phone Charger Circuit

Last Updated on January 19, 2025 by Swagatam 220 Comments

In this post I have explained how to make a simple, cheap yet extremely reliable smps based 220V/120V mains operated cell phone charger circuit.

Table of Contents
  • Why TNYxxx Tiny Switch is Used
  • How the SMPS Circuit Works
  • How to wind the ferrite transformer
  • 220V Mobile Charger Circuit using Viper22E IC

Why TNYxxx Tiny Switch is Used

The TNY series of tiny switch ICs provide us with an option of making perhaps the smallest possible smps circuits with high reliability. The tiny switch series includes the following ICs: TNY267P, TNY263, TNY264, TNY265, TNY266, TNY267, TNY268, TNY280.

The above ICs have an integrated in-built mosfet switching control circuit, protection against over current and thermal overshoot, along with rugged voltage and current specifications.

The IC comes in a DIP8 package that's exactly how a 555 is enclosed. The maximum tolerable voltage limit of the TNY series ICs is a massive 700V, a margin that's way beyond our normal household AC specs. The operating frequency is at about 132kHz.

The IC is specifically designed and built for implementing compact and reliable 120/220V mains operated SMPS flyback converters.

Although the application of the proposed simplest SMPS design could be huge, it could be best used as a mains operated 5V cell phone charger circuit.

The proposed cell phone charger design using the IC TY 267 can be visualized in the below shown diagram.

How the SMPS Circuit Works

The circuit can be understood as follows:

The mains input which could be anywhere between 100 and 280V is half wave rectified and filtered through shown 1N4007 diode and 10uF/400V input rectifier stage.

The 10 ohm/1watt resistor is included to provide some sort of restriction against the surge current inrush during power switch ONs and also forms like a fuse in case of a catastrophic situation.
The switching voltage is acquired via the BA159 diode at pin5 of the IC.

The IC instantly locks into the specified 132kHz switching frequency when switched ON across the input winding of the switching ferrite transformer.

The 180V zener diode safeguards the IC from peak switching voltages.

The above switching generates the calculated stepped down low voltage across the output winding of the transformer.

The BA159 diode at the output rectifies the 132kz pulsed DC while the 220uF capacitor filters the high frequency ripples to produce a clean DC.

The optocoupler acts like a feedback link between the output and the IC in order to ensure that the output never exceeds a certain predetermined voltage level.

This feedback limit is decided by the adjoining 4.7V zener diode, which ensures that the output stays well within the 5 V range just suitable for charging any attached cell phone.

warning message: electricity is dangerous, proceed with caution
220V SMPS Cell Phone Charger Circuit diagram

How to wind the ferrite transformer

The shown ferrite transformer along with the IC forms the heart of the circuit, however due to its simple configuration winding this transformer is much easier compared to other mains operated cell phone charger circuit topologies.

The input primary winding consists of around 140 turns of 36 SWG, while the output secondary winding is made up of 8 turns of 27SWG super enameled copper wire turns.

The core used can be a small E19 type ferrite core with bobbin having a central core area section measuring 4.5 by 4.5mm.

The primary is wound first. After winding it, it must be covered with a layer of insulation before winding the 8 number of secondary turns on top of the primary layer.

A copper or aluminum tape layer should be preferably included in between the primary and the secondary winding and a wire connected with this tape with the "cold" end of the primary winding (see the trafo in the figure), this provides guaranteed isolation between the winding as well as guards against interference issues.

220V Mobile Charger Circuit using Viper22E IC

220V Mobile Charger Circuit diagram using Viper22E IC

DATASHEET

You'll also like:

  • 1.  3 Terminal Fixed Voltage Regulators – Working and Application Circuits
  • 2.  LCD Monitor SMPS Circuit
  • 3.  5 V to 10 V Converter for TTL Circuits
  • 4.  How to Design a Flyback Converter – Comprehensive Tutorial
  • 5.  Cheapest SMPS Circuit Using MJE13005
  • 6.  Making a Strong RF Discharge Circuit

About Swagatam

I am an electronics engineer with over 15 years of hands-on experience. I am passionate about inventing, designing electronic circuits and PCBs, and helping hobbyists bring their projects to life. That is why I founded homemade-circuits.com, a website where I share innovative circuit ideas and tutorials. Have a circuit related question? Leave a comment.... I guarantee a reply!

Previous Post: « Making a Flynn Motor
Next Post: SMPS 50 watt LED Street Light Driver Circuit »

Reader Interactions

Comments

  1. MURUGAVEL S says

    August 18, 2024 at 9:06 am

    Hallo friend can I parallel two 7805 ic to overcome heating in making 5v cell phone charger from 12v battery. If not what is the way to overcome heat.
    thank you
    S.MURUGAVEL

    Reply
    • Swagatam says

      August 18, 2024 at 9:24 am

      Hello MURUGAVEL, you can put two 7805 ICs in parallel to enable current sharing and reduce heat, just make sure to attach them together, close to each other, over a single common heatsink.
      To further reduce the heat, you can use 9V battery instead of 12V.
      Alternatively, you can try one of these designs:
      https://www.homemade-circuits.com/ic-7805-switching-power-supply-circuit/

      Reply
  2. Syed Pasha says

    December 25, 2023 at 3:56 pm

    Hello Swagatam Sir.
    Myself Pasha from Hyderabad. I want to make 5v, 20amps SMPS circuit for controlling Pixel led lights, and wants to use core as Ferrite ring because it’s easily available, please help me. My cellphone and WhatsApp number 9247772219.
    Thanks

    Reply
    • Swagatam says

      December 25, 2023 at 4:03 pm

      Hello Pasha,
      20 amp is too high, at the moment i do not have an SMPS circuit rated at 20 amps. If I find one soon, I will surely let you know.

      Reply
  3. Jitendra kumar das says

    March 27, 2023 at 7:43 am

    A negative photoresit coating devloped on pcb and after transfering the circuit layout, how to remove unwanted photoresits

    Reply
    • Swagatam says

      March 27, 2023 at 9:29 am

      Clean it with acetone or thinner, and then apply a coat of varnish on the PCB tracks.

      Reply
  4. Lucas says

    March 6, 2022 at 11:34 am

    Dear swagatam sir
    I have tested this circuit by replacing the zener with a TL431 with very good results.
    The tny290 is the most powerful IC in the entire TNY family.
    I am wondering if it is possible to replace the tny267 with a tny290.
    Or if you have any easy circuit with the mentioned integrated.
    I greet you cordially

    Reply
    • Swagatam says

      March 7, 2022 at 10:44 am

      Dear Lucas, Yes you can replace TNY267 with TNY290. Yu can refer to the following circuit which I got from the datasheet of the IC:

      comment image" alt="TNY290 tiny switch SMPS circuit" />

      Reply
  5. Shyamkant Vasekar says

    August 20, 2021 at 4:14 pm

    Thanks for providing all details with so much effort. I hope by reading this article it may be possible for me. Previously, I am thinking about using a readymade mobile battery charger for my project. but now out of curiosity, I will try to build it up. Surely there may be problems while making the transformer but definitely, I will give it a try.

    Reply
    • Swagatam says

      August 20, 2021 at 4:56 pm

      I am glad you liked it! I hope you will be able to succeed with this project!

      Reply
  6. marcos says

    April 6, 2021 at 6:52 pm

    hola una consulta para obtener los 12 que deveria modificar
    seria aumentar al doblr las vueltas del secundario ,el zener a 12v ?

    desde muchas gracias

    Reply
    • Swagatam says

      April 7, 2021 at 3:39 pm

      yes for 12V you have to double the number of secondary turns, but this will also cause the output current to drop to 500 mA

      Reply
  7. Satyajit Roy says

    November 25, 2020 at 8:32 pm

    Most important part of “How to wind the ferrite transformer” is the gap which you haven’t mentioned. The heart of this flyback transformer is it’s gap and unless you give it properly, it will just refuse to work. That’s where all the energy gets stored during the switch on period. People will just build the circuit and try to find why isn’t it working as intended.

    Reply
    • Swagatam says

      November 25, 2020 at 9:03 pm

      SMPS circuits are not for newcomers, so it is assumed that the reader will know the basics of winding an SMPS transformer.

      Reply
      • Satyajit Roy says

        November 25, 2020 at 9:24 pm

        The gap has to be accurate or else it would be meaningless. Providing turns is not enough unless gap is placed perfectly. That too has few rules. For EE cores, you could use it on the center area only (TDK or some manufacturers supply this predefined gap on request) and for newbies, this gap could spread all across the three legs. Using gap on the center leg has good EMI shielding. An expert will not build this schematic and will follow design rules, so I am guessing only newbies will see this schematic and dream to build one for experiments. Unless they know why GAP is being used they can’t even predict what is missing, rest aside the accuracy of this gap. Just a thought so I shared. When I started, it took years to perfectly align this gap for best results. GAP is an integral part of any flyback transformer design and no one has the brain to predict it. It comes from computation of transformer design. IDK if you just answered it for the sake of answering on a post.

        Reply
        • Swagatam says

          November 25, 2020 at 9:40 pm

          SMPS is not for newbies, it is for people who know the basics of building SMPS transformers.

          For your knowledge, Inductors and flyback transformer cores usually require an air-gap to prevent core saturation due to high current flow in the windings

          While building an SMPS transformer it is not just the gap but many other critical factors needs to be followed, all cannot be explained in an SMPS circuit.

          If you are a newbie and having difficulty in understanding the above design you can go and first learn the following chapters and then try any of the SMPs deigns otherwise you will end up burning your home wiring:

          Leakage flux consideration

          How to Calculate Ferrite Core Transformers

          Reply
  8. Romano Novalski says

    August 26, 2020 at 1:39 am

    Hi Swagatan
    Is there any commercial model of this transformer that can fit in this application?
    I don’t have the skill nor the time to build this transformer, so i’m searching for any that i can buy. If you can provide a model with part. number i’ll be really glad.

    Thank you in advance for your attention. Keep up the excellent job

    Reply
    • Swagatam says

      August 26, 2020 at 9:44 am

      Hi Romano, No, a ready made transformer may not be available for this project, you will have to make it yourself.
      Alternatively you could probably buy a complete assembled piece from amazon.

      You can Google “Power Supply 230V AC to 5V DC Circuit Board SMPS”

      Reply
      • Romano Novalski says

        August 26, 2020 at 4:41 pm

        Ok, thank you

        Reply
  9. Ch shahzaib says

    February 15, 2020 at 8:23 pm

    Hi sir ,
    Sir i have made above mentioned circuit with same specifications but i am facing a problem of loading effect, without load it gives 6.7 v and with load it gives 3.8 v .
    Can you tell me any solution?
    Quick reply would be appreciated

    Reply
    • Swagatam says

      February 15, 2020 at 8:37 pm

      Hi Ch, what load did you connect? The IC TNY can supply less than 1 amp, so make sure the load is not pulling over 1 amp?

      Reply
      • Ch shahzaib says

        February 15, 2020 at 9:56 pm

        Sir i connected a usb port then i attempted to charger a nokia phone which normally charges bu 500mA charger
        I guess its loading effect but how can i reduce it

        Reply
        • Swagatam says

          February 16, 2020 at 9:07 am

          Ch, you will have to find how much current the load is consuming, if it is higher than 1 amp then the drop will happen. Alternatively, you can try rewinding the secondary using bifilar copper wire, meaning use 4 strands of 0.2mm copper wire and wind them together, this will increase the current absorbing capacity of the output winding.

          Reply
  10. sedigh hosein says

    September 5, 2019 at 9:56 pm

    dear sir i have a question about trafo whether air gap may be nececery inside centrarl leg
    and what is the reason air gap in ferrit trafo or how to core take saturation
    whether you have blog in this case
    excuse me concern your hassle

    Reply
    • Swagatam says

      September 6, 2019 at 8:37 am

      Hi Sedigh, yes the gap must be introduced otherwise the magnetization will increase to an extent where the cores will saturate and become unstable and short!

      I have an article which explains how to design an SMPS transformer:

      https://www.homemade-circuits.com/how-to-design-and-calculate-ferrite-core-transformers-for-inverters/

      Reply
      • sedighhosein says

        September 9, 2019 at 7:21 pm

        Dear sir a new i connect an load in output and an glow bulb in output after one fast recovery diode and in order an capacitor after diode for get ripple but again beyond last a few time and blinking glow lamp again chip go on blowing off what is your opinion on this case
        do you have any suggest for me
        whether being below number winding primary is it reason that cause this problem
        tanks in advance
        best regard sedigh

        Reply
        • Swagatam says

          September 9, 2019 at 8:52 pm

          Hi Sedigh,
          As far as I know all ferrite transformers are built with a paper gap on the outer edges of the E cores, otherwise it can lead to over saturation and short circuit. The above circuits are tested by the original author, so it will work if done correctly. Make sure the winding has the correct number of turns and the 180 zener is correctly configured.

          Reply
          • sedighhosein says

            September 9, 2019 at 9:36 pm

            Dear sir i salvaged the ferrit trafo from an cfl board as i winding wound as same you told of coures air gab exsiting on central leg EE trrafo
            What is it your opinion on EE trrafo my own
            i appricate from quick reply
            best regards

            Reply
            • Swagatam says

              September 10, 2019 at 9:21 am

              Dear Sedigh,
              the gap must be put using cello-tape or paper on the outer legs of the E core, not the center leg. Please do this and check the response!

              Reply
  11. Charan S says

    September 5, 2019 at 2:46 pm

    Hi bro, TNY266 & 268 are available at the nearby shop, will this circuit work with those chips with same transformer parameters as above?

    Reply
    • Swagatam says

      September 5, 2019 at 8:08 pm

      Hi charan, you can refer to the datasheet of the IC to get the exact circuit diagram, for your assurance.

      Reply
      • Charan S says

        September 6, 2019 at 11:24 am

        I referred the datasheet, they have given combined data sheet for TNY263 to 268 all operating at 132khz switching, only power ratings were different. So i hope i can proceed with this circuit.
        In the example circuit they have shown a safety cap between primary and secondary like in most of smps circuit. Can you tell me what is the specific function of it ?

        Reply
        • Swagatam says

          September 6, 2019 at 2:04 pm

          Hi Charan, according to the datasheet, the importance of the capacitor is to reduce electrical interference and increase stability of the design:

          “The placement of the Y-capacitor should be directly from the primary bulk capacitor positive rail to the common/return terminal on the secondary side. Such placement will maximize the EMI benefit of the Y-capacitor and avoid problems in common-mode surge testing.”

          Reply
          • Charan S says

            September 6, 2019 at 2:57 pm

            As always thanks for your quick reply. Am in core electrical field so making circuits is just my hobby & am referring this page since SSLC. I’ve limited knowledge about the cap theory u mentioned above so i will proceed with the above circuit and let you know. Thanks….

            Reply
            • Swagatam says

              September 6, 2019 at 8:13 pm

              No problems, wish you all the best. Just make sure to wind the transformer accurately as given in the article or datasheet.

              Reply
  12. venu says

    August 17, 2019 at 2:29 pm

    how much is the max output current

    Reply
    • Swagatam says

      August 17, 2019 at 5:00 pm

      1 amp

      Reply
  13. Ngô Hữu Nam says

    April 28, 2019 at 10:56 pm

    Sir
    Thanks for the post
    I need as small as possible board, so I want to use horizontal type EE10, output 5v – 400 – 450ma, sir, is it possible? and how wire a transformer? I found in aliexpress, there is a cheap one that has informations below, can I use it?
    EE10-Q8type Horizontal
    Electrical parameters:
    1,N1 [1-2] 0.11/170T,N2 [8-5] 0.30/13T,N3 [3-4] 0.11/13T,
    2,N1/N2/N3No crossing;1,8,3or2,5,4Foot is homonymous
    3,Inductance is:Lp=(1-2)=4.0mH/±10%,(10KHz,1V,25℃)
    4,EE10 PC40Magnetic core
    5,EE10horizontal4+4skeleton, 1,2,3,4;5,NC ,NC,8,(among6、7Feet are empty feet.)

    Thanks sir

    Reply
    • Swagatam says

      April 29, 2019 at 9:44 am

      Hi Ngô Hữu Nam, the transformer specifications must be exactly as specified in the above article, any other data can produce unpredictable results, so I won’t recommend a different readymade transformer.

      Reply
      • Ngô Hữu Nam says

        April 29, 2019 at 6:39 pm

        Thanks sir

        Reply
    • Harshal says

      June 26, 2019 at 10:55 pm

      What is the rated power of 180V zener diode?

      Reply
      • Swagatam says

        June 27, 2019 at 7:33 am

        1 watt

        Reply
        • Harshal says

          June 27, 2019 at 7:51 pm

          Can you please tell the exact part number of zener?
          Can i replace this with the 120v zener with some extra components?

          Reply
          • Swagatam says

            June 27, 2019 at 9:14 pm

            As per the schematic it has to be around 180 V. You can add two 90V zeners in series or 120 + 60V in series.

            Reply
            • Harshal says

              July 1, 2019 at 8:51 pm

              I used one120V and 2 30V….It worked… But now BA159 at output side is getting very heated and thus output is fluctuating…I checked voltage across diode is constant around 6.3V….What could be the reason sir….?

              Reply
              • Swagatam says

                July 1, 2019 at 9:26 pm

                Hi Harshal, Is it heating up with load or without load? if it’s without load try reducing the number of turns from 8 turn to 4 turns and check the response

                Reply
            • Harshal says

              July 1, 2019 at 10:15 pm

              Sir i want to power up a ic…Should i connect ic with some series resistor at output side or connect it directly across output pins…..?

              Reply
              • Swagatam says

                July 2, 2019 at 7:59 am

                Harshal, what is the IC Vcc rating? if it’s higher than the SMPS output then you can use it without any resistor, or regulator.

                Reply
            • Harshal says

              July 2, 2019 at 12:20 pm

              5v to 20v…..input current consumption is 10mA…is it good..?

              Reply
              • Swagatam says

                July 2, 2019 at 12:23 pm

                yes, just make sure your SMPS output is below 15 V

                Reply
            • Harshal says

              July 3, 2019 at 9:02 pm

              Sir is there any other platform where i can contact you and share my power supply problem with the help of photos and videos…?
              I really need this to work….
              Thank you sir….

              Reply
              • Swagatam says

                July 4, 2019 at 9:41 am

                Hello Harshal, you can explain me the problem here, I’ll try to solve if possible, pictures alone may not help to understand the issue you are facing.

                By the way you can also check the datasheet of the IC and see it the data helps to get some clue about the issue.

                https://www.mouser.in/datasheet/2/328/tny263_268-1512708.pdf

                Reply
            • Harshal says

              July 4, 2019 at 12:20 pm

              Sir i connect a relay with the supply and i check that 80mA is passing through BA159 and voltage across it -6.3V…..So is it a issue….?Anything wrong here…?

              Reply
              • Swagatam says

                July 4, 2019 at 1:16 pm

                Hi Harshal, if you want to check voltage and current, then check it in series with the relay coil and across the relay coil….not the diode.

                Reply
            • Harshal says

              July 4, 2019 at 3:30 pm

              But my BA159 is getting very heated thats why i checked the diode current and voltage…..

              Reply
              • Swagatam says

                July 4, 2019 at 5:10 pm

                Is it getting hot with load or without a load? if it’s without load then disconnect the opto coupler feeedback and check again

                Reply
          • Harshal says

            July 4, 2019 at 7:21 pm

            No sir, with load….What should i check to solve the problem….?

            Reply
            • Swagatam says

              July 4, 2019 at 7:25 pm

              Then the problem could be with the diode, because at 80mA the diode should not become hot…change it with a 1N5408 diode, or use two 1N4007 in parallel, but make sure both are tightly joined with their bodies touching each other.

              Reply
      • Satyajit Roy says

        November 25, 2020 at 8:33 pm

        It’s not zener, that TVS diode. Something like SMBJ180CA will work.

        Reply
        • Swagatam says

          November 25, 2020 at 9:01 pm

          It is a TVS, but an equivalent 1 watt zener should also work,

          Reply
  14. Ehtisham says

    April 11, 2019 at 1:21 pm

    Hey, i implemented the circuit and used a ferrite core transformer form a mobile charger with six outputs, primary, secondary and auxiliary, i didnt used the auxiliary winding first and only used primary and secondary. The fuse resistor 10 ohm 1watt produces a big spark and gets open.
    Then i shorted the primary winding with auxiliary and same resistor goes off, i wanted to ask wether the fault is in transformer or i am doing some mistake in the circuit.
    Thanks

    Reply
    • Swagatam says

      April 11, 2019 at 1:52 pm

      Hi, The transformer data should be exactly as mentioned in the article, if you try any other unknown data, it will burn and may cause catastrophic results… The ferrite core should be E19 type, and the transformer must have around 150 turns on the primary side.

      Reply
      • Ehtisham says

        April 11, 2019 at 5:03 pm

        Thanks Very much Swagatam!

        Reply
        • Swagatam says

          April 11, 2019 at 5:16 pm

          Glad to help!????

          Reply
  15. Lakshan says

    March 29, 2019 at 11:39 am

    Hi Swagatam,
    Hope you are doing good!
    It’s Lakshan again.

    Could you please advise with the inductance value of the above mentioned transformer as my transformer maker is asking for that.

    Also, I could not find a 180v zenor diode.
    Appreciate if you could provide an alternative part or a part number if there’s any.

    Thanks & regards

    Reply
    • Swagatam says

      March 29, 2019 at 12:34 pm

      Hi Lakshan, sorry I do not have the inductance values.

      If you want to avoid the zener, you can try the Fig.14 from the datasheet of the IC, as shown in the following pdf

      http://www.mouser.com/ds/2/328/tny263_268-8433.pdf

      Reply
      • Lakshan says

        March 29, 2019 at 12:43 pm

        Noted with thanks Swagatam!

        I will look in to that.

        Best regards

        Reply
        • Swagatam says

          March 29, 2019 at 12:52 pm

          OK, great!!

          Reply
  16. Nitesh says

    January 30, 2018 at 1:00 am

    Respected Sir
    kindly inform me change for work this circuit with 5v@2A. I am looking for 2A ( standby ) & peak current 2.25A .
    what woulb be change in ferrite transformer & other component ?

    Reply
    • Swagatam says

      January 30, 2018 at 8:15 am

      Nitesh, try reducing the number of turn to 5 turn for the secondary, and use two 27 SWG wires in parallel while winding the turns…

      Reply
  17. Muhammad Ovais says

    December 22, 2017 at 6:03 pm

    Hello sir! The charger pic at the start of the article shows a pin-based mobile charger. Can I use this same circuit diagram to design a usb based charger for phones?

    Reply
    • Swagatam says

      December 22, 2017 at 6:08 pm

      Hello Muhammad, the USB output can be directly used for charging a cellphone, I could not get what you are intending to build, please clarify…

      Reply
      • Muhammad Ovais says

        December 22, 2017 at 10:04 pm

        Got it. Thanks! I just want to build a mobile charger with USB output.
        One thing more: What’s the voltage across the primary winding of the transformer?

        Reply
        • Muhammad Ovais says

          December 22, 2017 at 10:15 pm

          If we are working with 220V, 50 Hz input AC supply*

          Reply
        • Swagatam says

          December 23, 2017 at 10:13 am

          It is 220 switched voltage, obtained from the AC mains and switched by the IC mosfet

          Reply
          • Muhammad Ovais says

            December 24, 2017 at 2:15 am

            Sir, I searched the whole market and couldn’t find the mentioned optocoupler SFH6106-1 and any ferrite core.
            Can I use Orient 817C (mentioned as a universal optocoupler by the shopkeeper) instead of SFH6106, and use a core that I dismounted from my samsung charger (model name: ETA U90EWE) in the above circuit?
            PS: I am making a through hole pcb mobile charger circuit for a semester project.
            Please help 🙂

            Reply
            • Swagatam says

              December 24, 2017 at 10:58 am

              Muhammad, You can try any other similar opto couplers also, most of them should work.

              Reply
  18. Zacson Skaria says

    December 11, 2017 at 5:02 pm

    What is the maximum current output this circuit can provide ?

    Reply
    • Swagatam says

      December 11, 2017 at 5:49 pm

      1 amp

      Reply
  19. ABBA says

    November 27, 2017 at 7:21 pm

    hi Swagatam, my question is why is it all the commercially used chargers use high frequency switching transformer, tnyxx series , opto-coupler, when there are regulators that can perform importance functions in one. like the LM2575 can take unregulated voltage of up to 60v and gives out 5V 0.5A. what if we use transformerless power supply topology with the regulator can we achieve the same result with efficiency like the above circuit. the only limitation i can see is the isolation from mains. thanks in advance.

    Reply
    • Swagatam says

      November 28, 2017 at 8:55 am

      Hi ABBA, SMPS circuit is required to step down the high mains voltage to a lower level, therefore even to get 60V input for the regulator you will require an 220V to 60V SMPS converter. The high frequency is required because SMPS use ferrite transformer, and ferrite trafos require high frequency for implementing magnetic induction across the winding correctly.
      capacitive power supplies cannot be designed to provide high current like SMPS safely, and also these are not isolated from dangerous mains current, that’s why capacitive power supplies are not recommended for AC to DC power supply circuits

      Reply
  20. Sheraz Ahmad says

    November 2, 2017 at 3:51 pm

    dear sir i want to modify this circuit replacing the 180V tran zener with capacitor and resistor what value should i use for C and R, also want to change the output voltage and current Vo = 12V , 2A what guage for primary and secondery can be use to obtain this output?

    Reply
    • Swagatam says

      November 2, 2017 at 4:47 pm

      Dear Sheraz, you can take the help of the following SMPS deign, and copy the values indicated in this diagram

      https://www.homemade-circuits.com/12v-5-amp-transformerless-battery/

      2 Amp won’t be possible from the above design because the TNY switch is rated to produce a maximum of 1 Amp

      Reply
    • sheraz says

      November 9, 2017 at 4:02 pm

      sir i made the smps circuit like the one you have presented in this artical exactly like that, also i have checked all filter capacitors and the bypass capacitor of TNY277, i have wind the transformer for 12v but and using TNY277 instead of TNY267, all connection with TNY277 are correct but voltage is not regulating but fluctuate sometime b/w 5v to 35v and then continously b/w 9v to 40v & 41v. i dont know where is the problem with in the circuit, i also try 7812 regulator to regulate the voltage but output is still not regulating?

      Reply
      • Swagatam says

        November 9, 2017 at 4:32 pm

        Sheraz, connect a 1K 2 watt resistor dummy load across the output winding and check if that corrects the issue or not, it seems your circuit is going in the burst mode due to abnormal output voltage, this is usually corrected by putting some load at the output or through a dummy load resistance of 1K

        Reply
      • sheraz says

        November 9, 2017 at 8:27 pm

        sir! the output has regulated upto 13v to 14v but when i connect 12v led strip it continously on and off, indicating that the output fluctuate b/w max and min. how this problem can be corrected so that output may not fall to min. i also try 1k 2w resistor but output is not correcting.

        Reply
        • Swagatam says

          November 10, 2017 at 7:37 am

          Sheraz, the IC will start switching ON OFF when it senses a short circuit or an overload or absence of load at the output….this can also happen due to badly built transformer.

          make sure you have built the transformer correctly, or get it checked from a professional winder…because making ferrite core transformer needs special care, knowledge and good winding machine

          Reply
        • Sheraz says

          November 10, 2017 at 8:23 am

          thanks you sir!

          Reply
          • Sheraz says

            November 10, 2017 at 9:03 pm

            thanks sir for helping me. the problem in the circuit was actually due to bad winding of the transformer. i have replace the transformer and now it is working well. thanks

            Reply
            • Swagatam says

              November 10, 2017 at 9:08 pm

              that’s great Sheraz, I am glad it is working now!

              Reply
  21. Psalmol says

    July 13, 2017 at 6:19 am

    Mr swagatam thanks very much for your efforts.
    Please sir how can I increase the output current from a power supply maybe charger.
    Thanks in advance.

    Reply
    • Swagatam says

      July 13, 2017 at 11:46 am

      Thanks Psalmol, current cannot be increased for the above design, you can try the following concept instead for higher current

      https://www.homemade-circuits.com/2017/06/12v-2-amp-smps-circuit.html

      Reply
  22. Adrees mohmand says

    May 19, 2017 at 7:43 am

    really impressive

    Reply
    • Swagatam says

      May 19, 2017 at 2:14 pm

      Thanks Adrees, did you calculate the coil parameters before implementing it practically.

      The mosfet will definitely burn if the coil fails to resonate with the applied frequency…or if the mosfet rating is not matching the load current.

      you can take the help of the following and see if that helps.

      https://www.homemade-circuits.com/2015/10/calculating-inductor-value-in-smps.html

      Reply
    • Adrees mohmand says

      May 21, 2017 at 3:04 am

      Thanks Sir.
      as i mention above that i take out etd core transformer for fused homage ups board. i don't know about it's parameter. now i am thinking to design my own etd core transformer for desired values. i.e Vin 12vdc vout 320vdc power rating 600w. and then invert high dc back to 220v AC using sine pulse width modulation.
      Sir have you write blog of winding etd core tranformer. if! please send me link i want to learn how to select the wire guage for required power rating.

      Reply
    • Swagatam says

      May 22, 2017 at 11:12 am

      Hi Adrees, I have one related article posted in this website, you can check it out and see if it helps

      https://www.homemade-circuits.com/2015/07/turns-and-voltage-ratios-total-voltage.html

      Reply
  23. Adrees mohmand says

    May 19, 2017 at 7:40 am

    Sir i am designing 12v dc to 320vdc using smps topology. i have an old etd core tranformer taking for homage ups cicuit. i give pulses to mosfet using sg33525 ic but when i connect the gate pulse my mosfet burn out. pls give me some suggestion why the mosfet burn out. is the tranformer rating is high.. or tranformer is short. i am using irf1010 mosfet

    Reply
  24. Unknown says

    December 23, 2016 at 6:34 am

    Sir can you suggest any 5volt & 2 to 2.5Amp SMPS circuit..

    Reply
  25. Parth Pandey says

    July 31, 2016 at 2:42 pm

    thank you very sir.

    Reply
  26. Parth Pandey says

    July 30, 2016 at 4:04 pm

    okay sir.
    among the following configurations, which one is ti be used?
    bifilar series or bifilar parallel?

    Reply
    • Swagatam says

      July 31, 2016 at 5:23 am

      for current gain parallel bifilar is recommended

      Reply
  27. Parth Pandey says

    July 29, 2016 at 3:56 am

    good morning sir.
    can use of bifilar winding saturate the transformer?

    Reply
    • Swagatam says

      July 29, 2016 at 1:36 pm

      Hi Parth, no it won't

      Reply
    • Parth Pandey says

      July 29, 2016 at 3:42 pm

      may i know reason to this?. i am really confused about this thing.
      thanks sir.

      Reply
    • Swagatam says

      July 30, 2016 at 12:19 pm

      bifilar winding is used to enhance current handling capacity of a ferrite transformer, it is not related to saturation issue… unless the connected load is incompatible.

      Reply
  28. Parth Pandey says

    July 25, 2016 at 3:52 pm

    thanks sir.

    Reply
  29. Parth Pandey says

    July 25, 2016 at 3:50 am

    okay sir.
    i just wanted to know that 1:1 ratio could be implemented or not.
    my application is only for 0.1 seconds only. this SMPS will actuate the solenoid. and i tested this circuit of mine up to 30 volts on load and it works. were as on no load, it works for the whole range.
    is there any way i can implement and get what i want?
    thanks again sir.

    Reply
    • Swagatam says

      July 25, 2016 at 8:12 am

      yes 1:1 ratio is possible, in fact any other ratio is also possible.

      sorry I do not have much idea regarding how to make an SMPS work with a 30V to 220V inputs.

      as an alternative approach you could try the triac dimmer option, it employs phase chopping, and also the peak voltage could be effectively cut and controlled through this concept and a solid state 30V could be achieved.

      Reply
  30. Parth Pandey says

    July 24, 2016 at 6:38 am

    hello sir. your circuit is really wonderful. i have one doubt. if we remove the zener diode and use a resistor divider, will the circuit work?
    actually i personally have designed a flyback converter with input range of 16V-220V (AC/DC) and output of 16V 2.5 Amps. i have used 15V zener as feedback feeding to PIC micrcontroller
    circuit works correctly for 30-220Volts but, as my transformer ratiois 2:1 the circuit is not working for below 30V. also output volatge starts to drop after 60Volts.
    can i replace my 15V zener to 5V zener so as to cover the whole range voltage ranging from 16V-220V ?
    how can i reduce my voltagedrop? (load is of 8ohms..actually a solenoid)
    thanks.

    Reply
    • Swagatam says

      July 24, 2016 at 2:35 pm

      thanks Parth,

      Actually no SMPS are rated to work below 80V, so 30V is very low and is not supposed to be used.

      However you can use a lower value zener diode if the specifications suits your need, that is if you are looking for only 5V as the output then it is quite fine to use a 5V zener instead a 15v.

      A resistive network might not work since it would keep altering its output value in response to the input AC voltage variations.

      voltage drop can be increased by increasing current of the transformer

      Reply
    • Swagatam says

      July 24, 2016 at 2:36 pm

      correction:

      voltage drop can be reduced by increasing current of the transformer

      Reply
    • Parth Pandey says

      July 24, 2016 at 4:42 pm

      thanks sir.
      but what is the way below to make it work 80 Volts?
      can i make transformer ratio 1:1, so as to make it work?
      current can be increased by bifilar winding, as you have told in your previous comments.
      actually i am working on solenoid used in circuit breaker, so it is necessary for me to cover full voltage range. if not then the project will be useless to industry.

      Reply
    • Swagatam says

      July 25, 2016 at 3:05 am

      Parth, reducing the input below 80V can make the SMPS functioning abnormal because the frequency of operation could get affected.

      the output may be varied from 0 to 220V this option may be possible…but the input should be kept constant at around 200V preferably.

      sorry I am not sure how 1:1 can help the condition, it may help to achieve the variable function at the output side but for the input side

      Reply
  31. Parth Pandey says

    July 24, 2016 at 6:31 am

    hello sir. your concept is really wonderful, but i have one doubt. instead of using 4.7V zener diode, if a use a simple resistor divider, will it effect the output voltage.

    Reply
  32. maryem jaballah says

    July 2, 2016 at 5:30 am

    can we use the circuit to supply a microcontroller

    Reply
    • Swagatam says

      July 2, 2016 at 3:01 pm

      yes you can

      Reply
    • maryem jaballah says

      July 2, 2016 at 5:58 pm

      we can change tny by NCP1014 ?

      Reply
    • Swagatam says

      July 3, 2016 at 6:04 am

      Hello, instead of building the above design you can simply use the circuit from your spare mobile charger and use it for powering the MCU, but make sure to use a 7805 IC in between for regulation..
      contrarily if you intend to build the circuit, do it only if you are well versed regarding switching circuits

      Reply
    • Swagatam says

      July 3, 2016 at 6:08 am

      the above circuit is extremely efficient, I am not very sure whether a bigger core would work or not, but you can try it with a fuse in series, in case if anything goes wrong.

      Reply
    • Swagatam says

      July 4, 2016 at 11:13 am

      yes any similar 4 pin opto coupler can be used

      Reply
  33. Md. Helal Kalimullah says

    June 26, 2016 at 3:44 pm

    I assembled the circuit.I made 16 turns as secondary winding and used pc 817 optocopler instead of sfh 6106, and a 12 v zenner in output feedback circuitry. But the result is blinking the led which I used in output as monitor led.When I shorted 12 v zenner with a jumper then it became steady but 3 volts observed in output with a DMM.Also 12 KHz was obtained with a frequency meter between transformer's secondary terminals .please help.

    Reply
    • Swagatam says

      June 27, 2016 at 3:17 am

      remove the 220uF and check again…if it improves then try adding another rectifier diode between the 100R and 220uF connections

      Reply
    • Md. Helal Kalimullah says

      July 12, 2016 at 1:26 am

      I updated my hardware according to your advice. The led stop blinking, DMM shows 12 volts in out put but voltage dropped as soon as I connect a load (12v relay)into out put. Also frequency meter
      shows around 14 KHz in transformer's secondary terminals.Sir do you think The ic does not oscillate at 132 KHz and as a result of that current capasity is so weak? Is it possible for the ic to be defective from the mamufacturar?

      Reply
    • Swagatam says

      July 12, 2016 at 2:43 am

      the primary winding is crucial and it determines the frequency as well as the correct functioning of the IC and the whole SMPS.

      I would recommend you to visit the datasheet of the IC where you will be able to find a comprehensive information regarding the circuit and other specs related to the IC functioning

      Reply
    • Md. Helal Kalimullah says

      July 12, 2016 at 4:00 am

      Sir. I went through data sheet and rewind transformer repeatedly but no result. At an instant, I connected the transformer wrongly(primary to secondary and secondary to primary)Then to my surprise,I found The ic didn't blown and result is same.So I suspect the device.

      Reply
    • Swagatam says

      July 12, 2016 at 11:36 am

      yes it seems the IC is not good, however changing the polarity of the winding will not blow the IC according to me…you can replace the IC with a new one and see the response, because no other way to check the IC

      Reply
    • Md. Helal Kalimullah says

      October 9, 2016 at 12:45 am

      Sir, I have changed the ic but no result. whenever I connect a relay to it's output, a tick tack sound is being observed and monitor led starts blinking. I measure frequency in secondary winding which is 10 khz without load and 2khz with load. I replaced 180v zenner with resistance capacitor combination according to data sheet but the same result is same. this time frequency increased to 90khz.

      Reply
    • Swagatam says

      October 10, 2016 at 3:35 am

      MD. the LED will start flashing if the IC detects an overload or malfunction at the output side….or may be within the transformer….did you use a paper gap for the E-cores? the problem is definitely in your transformer because there's no other part which can be suspected or affect the design

      Reply
    • Md. Helal Kalimullah says

      October 11, 2016 at 10:46 am

      Yes sir, I made paper gap and winded the transformer repeatedly. when I winded the TF with proper isolation tape(metal)according to your advice, it does not work at all but removing isolation between primary and secondary it works but in said manner.

      Reply
    • Swagatam says

      October 11, 2016 at 11:50 am

      It's not the insulation between the winding, I was referring to the adding of a paper piece between the surfaces of the E-cores which join face to face with each other when mounted on the bobbin. I hope you understood what I mean.

      Reply
    • Md. Helal Kalimullah says

      October 12, 2016 at 1:32 am

      I mentioned isolating extra winding between primary and secondary windings

      Reply
  34. Nix says

    June 24, 2016 at 1:13 pm

    Sir, i need to charge a 2200 mAh mobile Battery will this circuit be enough. If not what are the changes to be done in this circuit. How to determine the output current for a specified mAh.

    Reply
    • Swagatam says

      June 24, 2016 at 1:29 pm

      Nix, you can, but the charging will be a bit slower.

      the ideal charging current should be 1.5 amps for your batt, and this circuit is specified at 1 amp max

      Reply
  35. Unknown says

    January 18, 2016 at 3:25 pm

    Thank you very much for this informative article on a difficult topic ! Would you be able to comment on where to get the E transformer used in this design?

    -Shashank

    Reply
    • Swagatam says

      January 19, 2016 at 2:38 am

      You can get them from any electronic retailer dealing with ferrite cores. you can also inquire online for the same.

      Reply
    • Unknown says

      January 19, 2016 at 9:56 am

      Thanks … I reside in Pune and would appreciate leads on electronics retailers here or in Mumbai.

      -Shashank

      Reply
    • Swagatam says

      January 19, 2016 at 2:05 pm

      In Pune you can inquire in Budhwar-peth, and in Mumbai in Lamington Road

      Reply
  36. Rahul panchal says

    January 12, 2016 at 1:35 pm

    AM
    Dear swagatam sir, I want to build a smps 12v, 2amp for led driver can i use tny278 is for this pleas sir tell me about..

    Reply
    • Swagatam says

      January 13, 2016 at 1:47 am

      Dear Rahul, 2amp may not be possible from a TNY IC, you will have to go for a powerful mosfet based design.

      Reply
  37. Christer Johansson says

    November 5, 2015 at 9:43 am

    Thanks again. very nice of you to return with this schematic diagram.
    Do you think it is possible to buy the transformer ready to use?

    Reply
    • Swagatam says

      November 6, 2015 at 5:55 am

      You are welcome!

      smps transformers are normally never available ready made in the market, you'll have to get it made from a professional winder.

      Reply
  38. Hasitha says

    October 17, 2015 at 2:13 am

    Dear swagatam sir, I have build this smps. But i use 150V zd/transil(Part No: P6KE150A) instead of 180V since i couldn't find 180V one. And optocuplar is SFH610A-3. Others are exactly same as your one. But it's not work. Is there any way to diagnose transformer is oscillating and feedback is coming?

    Reply
    • Swagatam says

      October 17, 2015 at 7:49 am

      Dear Hasitha, It would be difficult for me to diagnose your circuit because there's hardly anything in the design that might go wrong.

      I would suggest you to refer the datasheet of the IC there are a few good elaborate designs of the same in the datasheet with a few more components which might ensure a better chance of success.

      Reply
    • Hasitha says

      October 17, 2015 at 11:11 am

      Thanks sir, Now its work. It had a connection issue. Now the problem is as follows. I attached LED to the output. Its slowly blinking. Its light up and slowly go off and on again. Continuously this happen and no steady output. What would u think this issue?

      Reply
    • Swagatam says

      October 18, 2015 at 3:18 am

      It may be an indication that there's some kind of short circuit or overload in the secondary section, therefore the circuit is going in burst mode, that is the opto is trying to reset the primary repeatedly to correct the issue…not sure where the problem is, it could be in the secondary winding or the around the optocopler stage

      Reply
    • Hasitha says

      October 19, 2015 at 7:43 am

      I think i had transformer winding issue. I wound both primary and secondary same direction in clock wise. Do i need to wind secondary from other direction? like primary left to right then secondary right to left both clock wise. Can u please explain this.

      Reply
    • Swagatam says

      October 20, 2015 at 5:46 am

      the black "dots" near the winding indicate the start points of the relevant winding…you must follow these to get the correct results.

      the primary and the sec winding ends are normally terminated across the two sides of the trafo. for easier identification and polarity check.

      you can take the help of a professional winder for this.

      Reply
  39. pradeep says

    September 17, 2015 at 5:05 pm

    Dear swagatam sir, please provide a circuit of mobile charger 5v 1 amp with BOM cost around Rs 15.

    Reply
    • Swagatam says

      September 18, 2015 at 7:51 am

      Dear Pradeep, that's impossible, you want a real mobile charger or a picture of it:)

      Reply
  40. Rafiq Sherasiya says

    September 8, 2015 at 12:32 pm

    Hello sir
    I m Rafiq Sherasia from Gujarat,
    I m belongs to a small village where 1000 population…
    In my village a big problem is getting very slow mobile signal…I am also electronic engineer.. And a shop of repairing AC/DC Drive in my nearest city…so my villagers told me that how to getting better mobile signal… I have many searching of this but not getting good answer…I told u that please help me to find out circuit for signal booster..wat to do for that…tell me any guidance… Me n my villagers are so thanx fully to u…
    U can mail me
    [email protected]
    9979113317

    Reply
    • Swagatam says

      September 8, 2015 at 2:32 pm

      Hi Rafiq,

      I don't think that would be feasible at our level, or at any level, if that would be possible you would have already seen such gadgets available in the market, but there's none so far.

      Reply
  41. prasad says

    August 21, 2015 at 3:05 pm

    hi sir
    need transformer for 5.6v 1A smart-phone mobile charger &
    transformer expert asking about the inductance

    Reply
    • Swagatam says

      August 22, 2015 at 2:35 am

      Hi Prasad, where is the schematic? which schematic are you referring to?

      Reply
  42. Syed Arham says

    July 26, 2015 at 6:27 pm

    Sir,
    I have made a mobile charger using 7805 and it is working fine but i have some issues with this
    1- heat skin become too much hot .( when using in car)
    2- the charging speed is too much low.

    Can you suggest me any circuit based charger which convert 12v to 5 v 2a .

    Reply
    • Swagatam says

      July 27, 2015 at 3:57 am

      Syed,

      the heatsink will become hot, you can try increasing the size of the heatsink….if the IC stays cooler the charging will be proportionately faster….so you can try using a larger heatsing for the IC, and make sure to apply heatsink paste or heatsink compound between the heatsink and the IC.

      Reply
    • Syed Arham says

      July 27, 2015 at 7:24 am

      Ok Sir but is there any circuit based charger to charge mobile from 12v.

      Reply
    • Swagatam says

      July 27, 2015 at 1:57 pm

      search for "buck converter circuit", you can try this concept for charging a cell phone without heat.

      Reply
  43. Richmond Robles says

    July 15, 2015 at 11:31 am

    can i buy that transformer in the market?because im a beginner and i think building it needs experience

    Reply
    • Swagatam says

      July 16, 2015 at 5:51 am

      sorry no, it might be difficult to find a ready made one in the market, you can take the help of a professional transformer designer and get it made to order.

      Reply
  44. Richmond Robles says

    July 15, 2015 at 11:30 am

    can i buy that transformer at the market?

    Reply
  45. Richmond Robles says

    July 15, 2015 at 11:28 am

    is there any ready made transformer in the market? or i really have to build it

    Reply
  46. Greifrutas says

    July 1, 2015 at 4:30 pm

    so i dont have a second side of this circuit and osciloscope shows that ic doesnt even start oscilating what am i missing? part list: half wave rectifier diode 45uf filter cap pin 5 to tr and tr to +340 pin 5 diode to +340. first pin to ground via 0.1 uf and the rest to ground ? what can be wrong tr primary 100t secondary 10t for osciloscope ic blows like a match every time i conect it.

    Reply
    • Swagatam says

      July 2, 2015 at 4:04 am

      if the IC does not oscillate it will blow of, and with the shown connections the IC is bound to oscillate.

      This circuit is thoroughly tested so there's no doubt about the design, it's good.

      the primary should be 140 to 150 turns minimum.

      you can try the design shown in fig14 of the following article….the trafo ratio can be the same as indicated above.

      http://www.mouser.com/ds/2/328/tny263_268-8433.pdf

      Reply
    • Swagatam says

      July 2, 2015 at 4:25 am

      ….you can also try the design that's shown in the following pdf:

      http://www.datasheetarchive.com/dl/Datasheet-016/DSA00284887.pdf

      Reply
  47. PK says

    July 1, 2015 at 9:01 am

    Hi Dear Swagatam, how can a charge complete indication be implemented with this circuit?

    thanks and warm regards,
    Prashant

    Reply
    • Swagatam says

      July 1, 2015 at 1:10 pm

      Dear prashant, it can be achieved by adding another circuit at the output…such as this:

      https://www.homemade-circuits.com/2011/12/how-to-make-simple-low-battery-voltage.html

      Reply
  48. Anurag Gupta says

    June 19, 2015 at 11:35 am

    iI could not find how much current it can supply at 5volt output.
    Thanks.

    Reply
    • Swagatam says

      June 27, 2015 at 5:12 am

      it should be around 1 amp

      Reply
  49. Anurag Gupta says

    June 19, 2015 at 11:34 am

    I could not find how much current it can supply at 5 volt.
    Thanks,Anurag Gupta

    Reply
    • Swagatam says

      June 19, 2015 at 2:47 pm

      around 1 amp

      Reply
    • Anurag Gupta says

      June 22, 2015 at 4:35 am

      I am not able to understand why a dotted line is shown from the transformer winding,basically i want to know if there are any other additional tappings from the transformer for feedback,etc.Also i want to know if the tranformer requires lamination sheets? I have seen some transformers in battery charger which dont have a core of laminations around it.

      Reply
    • Swagatam says

      June 22, 2015 at 1:31 pm

      It's a blank winding sandwiched between the primary and secondary winding, one end is pressed between the two winding and remain unused while the other end is soldered with the cold end of the trafo as shown…

      Reply
    • Anurag Gupta says

      June 22, 2015 at 2:50 pm

      Do i have to buy separate lamination sheets for core or e19 ferrite core is available readymade?Actually i have never wound a transformer before.

      Reply
    • Swagatam says

      June 23, 2015 at 5:51 am

      ferrite cores are not made up of lamination, they are available readymade in the market as whole solid "E" shaped cores…so you can easily buy these from the market as per the required specification and size.

      Reply
    • Anurag Gupta says

      June 26, 2015 at 11:45 am

      I have made the above circuit ,I have used 4 47v zener diode(=188v), the response is very random:
      voltage across 400v cap=450v
      across primary winding:870-880v(ac) i get voltage across primary sometimes ,sometimes not.this is bothering me, also it it is too high.
      across pins 5(drain) & 8(source)-370-380v(dc).
      once i got a voltage of 1.4-1.5v across the output cap without any voltage on the primary winding,i think. Its hard to say but i think the main problem is of switching of the tny267pn ic.
      Any suggestions for troubleshooting?

      Reply
    • Anurag Gupta says

      June 26, 2015 at 12:20 pm

      Also i am using sfh6106-2 its ctr is 63% to 125% whereas sfh6106-1 has 40-80% and a 100nf cap ceramic(not electrolytic at pin1 of ic) and a 6v zener diode at output.

      Reply
    • Swagatam says

      June 26, 2015 at 2:36 pm

      sorry troubleshooting will be difficult because I am don't know how you have built the transformer which is the most critical component in the design and requires experienced hands in order to create a perfect trafo, anyway you can try the following design also…this IC is much reliable than the TNY, and will give guaranteed results

      https://www.homemade-circuits.com/2012/03/how-to-make-simple-12-v-1-amp-switch.html

      Reply
    • Anurag Gupta says

      June 28, 2015 at 12:00 pm

      I wound the transformer again nicely and tightly first primary,then tape then cardboard then connected 36swg wire to the primary zener end and wound a turn of it and then Al or Cu tape then tape then secondary then tape again .Also provided a paper and tape gap between the cores.Then I noticed that i had not connected 8 th pin drain of ic to the negative of 400v cap or 100nf 25v cap so i connected it to the nearest 400v cap and tested it again and there was a spark in front of my eyes blowing up the tny ic especially at the 5th pin the ic package was blown off there.I think i did everything right. I also want to know how to check if the optoisolator is working properly i did with a multimeter and i found it wrong.

      Reply
    • Swagatam says

      June 28, 2015 at 3:48 pm

      did you connect the output diode to the "start" pin of the secondary?…see the black dots on the transformer it indicates the start of the winding…so it must be followed in that way.

      you can go through the following datasheet for a detailed info regarding the circuit

      http://www.mouser.com/ds/2/328/tny263_268-8433.pdf

      by the way don't bother about the central screening winding, remove it…and wind only the primary and the secondary with just a few turns of insulating tape between them.

      if the output stays controlled at the specified zener voltage value that will confirm the opto working

      Reply
    • Anurag Gupta says

      June 28, 2015 at 5:06 pm

      If you mean by start of the secondary that from where we start winding the transformer then no i did not connected it to the start of the secondary but do you think it can lead to blowing up of the ic which is protected by both optoisolator and zener diode of 180v.Also is there a way to check optoisolator ic off the circuit alone.I measured resistance across the diode ,it should have offered high resistance in one direction and low in other but it wasn't so i think the opto ic may be wrong too.
      Also can i use a zener of less than 180v if yes how low?

      Reply
    • Swagatam says

      June 29, 2015 at 4:09 am

      you must do exactly as indicated in the circuit diagram, the diode should be connected to the start pin of the secondary…you can consult a professional transformer designer to confirm the transformer polarity.

      the central screening winding can be eliminated it's not compulsory…and wind only the primary and the secondary with just a few turns of insulating tape between them.

      If you don't want the 180V zener, you can replace it with the set of components as shown in the second diagram of the following datasheet

      http://www.mouser.com/ds/2/328/tny263_268-8433.pdf

      the TNY is not an optocoupler….it's an integrated circuit so you cannot check it the way you may check a normal 4 pin opto isolator.

      Reply
    • Swagatam says

      June 29, 2015 at 4:13 am

      …ignore the last sentience it's incorrect…I thought you were trying to the check the TNY….yes the optocoupler LED can be checked just as we check a normal LED for its polarity.

      Reply
    • Anurag Gupta says

      June 29, 2015 at 11:25 am

      How do you check transformer polarity, can't i check it myself the polarity? I made a sine wave generator using wien bridge oscillator which generated 6v rms but when i connected it to the primary the voltage dropped to 0.2v then i measured the primary resistance which was 3ohm so (6v/3)2A current was required which could not be supplied by the battery ofcourse.

      Also i cant connect it to a dc source as it is designed for 130khz even if i use a function generator it cant supply 2A i think.Please tell me if i am wrong somewhere.Isn't there a simple way to check polarity?Can u give any link or tips for transformer design i want to test the circuit shown in tny datasheet which shows 5v 2A output plus 12v 20ma output.Also,in the circuit how much ac voltage is expected to be at the primary?

      And thanks a lot i have been bothering you for quite a bit now.

      Reply
    • Swagatam says

      June 30, 2015 at 2:43 am

      inductor polarity is determined by the start and finish pins of the winding. By marking the start and the finish pins you can confirm the connections with correct polarity.

      first try to complete the above design successfully then you can move on with other difficult versions.

      the best thing would be to use a bridge rectifier at the secondary this will ensure a fixed polarity across the output of the bridge regardless of the secondary winding connections.

      Reply
    • Anurag Gupta says

      July 1, 2015 at 5:58 pm

      Yeah i knew where i started and where i ended the winding and connected with correct polarity(if dot means the start of winding) and used the rcd snubber u mentioned with 1nf 1kv(i did not have 2.2nf) and thats why i used a 270k resistor in parallel instead of 200k and placed a 220 ohm in series with ba159 and used 4n35 optoisolator.
      But the ic blew off again at the 5th pin drain of tny and i think now the main problem is the voltage spike generated by the leakage inductance of the trafo.

      Now, i am going to use the clamp shown in at page 7. http://www.power.com/sites/default/files/PDFFiles/der228.pdf
      Capacitor 2.2nf 1kv and tvs diode p6ke150a 150v 600w tvs diode as shown in the pdf .
      I have only one tny ic left.. please tell if the above clamp would work fine or any other best alternative for the clamp to suppress voltage spikes at pin5.
      I am also going to use varistor on ac input for additional safety.
      Thanks

      Reply
    • Anurag Gupta says

      July 1, 2015 at 6:11 pm

      Also I forgot to mention that it was different from the last time,last time when i switched on the supply ,the spark was almost instantaneous but this time it was 2-3 seconds delayed and the voltage build up gradually from 1.5 to 3.6 v(i think i even saw it reach 4v in the multimeter but thats when the ic blew not too sure).1.5 v was there due to the diode and zener drop i think in the beginning.

      Also suggest should i test the above circuit without load or with load on the output side? If with load please tell what type of load can resistance be used a load for testing purposes?

      Reply
    • Swagatam says

      July 2, 2015 at 2:59 am

      whether with load or without load, it should not matter, under any condition the circuit should work normally.

      I think you should the try the second circuit that's explained in this article:

      http://www.mouser.com/ds/2/328/tny263_268-8433.pdf

      for the transformer, primary is 140 to 150 turns using 36swg and secondary around 10 turns

      the IC is quite rugged and reliable, it will not blow unless something is significantly incorrect or mismatched in the assembly.

      Reply
    • Swagatam says

      July 2, 2015 at 4:26 am

      try the design shown in the following article:

      http://www.datasheetarchive.com/dl/Datasheet-016/DSA00284887.pdf

      Reply
    • Anurag Gupta says

      July 2, 2015 at 5:06 am

      In the design 1n4007gp has been shown in the clamp but i think ba159 should be used as u have shown in the above because switching is done at high frequency and ba159 is a fast switching diode whereas 1n4005gp is not.I realised another mistake of mine that i did not change the cold end connection so i will rectify it too.

      Reply
    • Swagatam says

      July 2, 2015 at 6:08 am

      yes you are correct!

      Reply
    • Anurag Gupta says

      July 2, 2015 at 12:56 pm

      Yipee,the design worked after so much effort thank you so much.

      The output was between 3.6v to to 3.7 v should i wind more turns on secondary or do i need to consider other factors i mean do i have to change components like zener on the output too for 5v output or anything else or simply increasing the turns would do.

      Reply
    • Swagatam says

      July 2, 2015 at 4:31 pm

      OK great, try increasing the value of the zener diode to 6V or 9V and see the response if still the voltage does not increase then you can add a few more turns to the secondary.

      Reply
  50. Rakesh Kumar says

    June 16, 2015 at 9:28 am

    I have a question that can I use tny266 or tny268 in place of tny267 and 4n35 in place of sfh6106 optocoupler.
    Thanks.

    Reply
    • Swagatam says

      June 16, 2015 at 4:09 pm

      yes, you can use those instead of the indicated ones in the diagram

      Reply
  51. Sumit Bose says

    April 28, 2015 at 10:28 am

    Sir, didn't fully understand the last part. should the two E cores facing each other need to be insulated from one another?

    Reply
    • Swagatam says

      April 28, 2015 at 1:47 pm

      The joining surfaces of the E cores must not touch directly with each other rather must be separated by sandwiching a piece of paper between the surfaces or by inserting the insulation tape itself which would be used to fasten the E cores around.

      Reply
    • Sumit Bose says

      April 29, 2015 at 5:27 am

      Thanks. And one more question, can the TNY series ICs be used for a 12V SMPS? Actually on a datasheet I came across, I found that the TNY267PN has an output voltage of 5V. Please suggest whether the information furnished is correct if so then what can I do. Thanks.

      Reply
    • Swagatam says

      April 29, 2015 at 6:48 am

      TNY is an oscillator IC it has no relation with the output voltage of the SMPS….the output is determined by the transformer secondary winding and the feed back zener value

      Reply
    • hkarya says

      May 10, 2015 at 7:00 am

      Kudos for a great informative article, in fact the blog deserves applause. Swagatam sir, I am designing a project to control LED Bulb running off 220v with microcontroller @3.3v. Since bulb is constrained on space, a compact circuit like yours is suitable. But how can I get 80v 150ma constant current for LED and 3.3v 500mA for mc from same circuit? Your kind help Wii be greatly appreciated.

      Reply
    • Swagatam says

      May 10, 2015 at 2:50 pm

      Thanks so much hkarya, since each turn corresponds to around 1V, so around 80 to 100 turns at the secondary side of the trafo would roughly provide you the required 80V. The 3.3V can be achieved by winding a separate 5 turns somewhere inside the transformer (secondary) and the terminals secured with a 7805 IC and a few 1N4007 diodes in series for generating 3.3V.

      Reply
    • Swagatam says

      May 10, 2015 at 2:52 pm

      the opto now should be used for the 80V outputs, with the existing 5V zener replaced with a 80V zener diode

      Reply
  52. Sumit Bose says

    April 28, 2015 at 8:16 am

    sir can you please mention what will be the primary and secondary inductances for the transformer?

    Reply
    • Swagatam says

      April 28, 2015 at 9:35 am

      Sumit, the inductance values are not important, if you wind the transformer as per the given data it will surely work, just make sure the E cores are separated by a paper gap or by inserting the insulating tape

      Reply
  53. kernelExploit says

    March 22, 2015 at 4:23 am

    Swagatam,

    Firstly, Thank you for this great blog. I have really liked reading the posts since last couple of days. And it has given me knowledge and ideas to solve an SMPS design problem I have at hand for a project.

    I am not an electronics expert and have managed to acquire some basic knowledge only over the last 10 days. This post i think i find most closest to the problem i have.

    SMPS Design Requirement:

    Input: 90 – 230 V AC
    Output1: 5 V DC / 1.5 Amps (Max)
    Output2: 12 V DC / 1 Amps (Max)
    Output3: 5 V DC / 1 Amps (Max)

    Out1 and Out2 are for 2 different microprocessors.
    Out3 is for a switching and phase control of triacs for resistive and inductive loads both. This also needs a zero cross detector pulse coming from the SMPS to be used for phase control.

    All outputs must be regulated and shall provide isolation to the loads.

    Can this design be used for this requirement? say by modifying the transformer secondary windings as per the desired output voltages and current. May be with a few more components, for eg. each output will need error correction like the optocoupler and TNY267 in this design.

    So, Is this possible using the same design? With off course minor modifications but keeping the basic idea same. I like this idea for its small size, I want the SMPS PCB to be small, say a credit card size or smaller.

    Please advice.

    Thanks

    Reply
    • Swagatam says

      March 22, 2015 at 1:29 pm

      Thanks very much Kernel,

      I think you should try the following design instead, as its much sophisticated and will suit your application need quite well:

      https://www.homemade-circuits.com/2012/03/how-to-make-simple-12-v-1-amp-switch.html

      the amp rating can be slightly increased by increasing the SWG of the secondary winding

      Reply
  54. Naresh Jain says

    February 24, 2015 at 5:30 am

    Thank you for your quick response

    Reply
  55. Naresh Jain says

    February 23, 2015 at 5:28 am

    sir your soggetion is very good,because LM317 is a very accurate to control ccurrent,but it's maximum output is around 35 volts, please suggest me another regulator whose output is around 60 to 70 volts.
    Again Thanks

    Reply
    • Swagatam says

      February 23, 2015 at 9:47 am

      OK, in that case you may include the circuit shown in the following link:

      https://www.homemade-circuits.com/2011/12/make-hundred-watt-led-floodlight.html

      T1/T2 may be any NPN rated to handle the desired voltage and current specs

      Reply
  56. Naresh Jain says

    February 21, 2015 at 4:36 pm

    sir can be use this circuit as constant current,if yes then please tell me the modification.

    Reply
    • Swagatam says

      February 22, 2015 at 2:15 pm

      Naresh, the circuit will require some modification for implementing this, which can be slightly complex, it's better to add a LM317 current controller at the output for controlling current.

      The first circuit from the following article can be tried:

      https://www.homemade-circuits.com/2013/06/universal-high-watt-led-current-limiter.html

      Reply
  57. aravind says

    February 19, 2015 at 12:59 pm

    hai swagatam,
    I have doubt that does this circuit can be enhance to 5v 1.5 amps

    Reply
    • Swagatam says

      February 20, 2015 at 3:59 am

      hi arvind, yes it can be possibly done by using bifilar or trifilar winding over the transformer

      Reply
  58. Syed Arham says

    September 12, 2014 at 9:03 am

    Sir i have a ready-made mobile smps circuit.
    its output is 5v with 500mA.
    Can i increase its rating upto 1A and 12v by altering the secondary winding.?

    Reply
    • Swagatam says

      September 13, 2014 at 6:00 am

      Syed, yes it can be done, if there's a corresponding zener at the output that will also need to be modified accordingly.

      Reply
  59. Token says

    April 29, 2014 at 7:28 pm

    dear Sir,
    How to increase the output voltage (say 12) and current (say 500mA)

    Reply
    • Swagatam says

      April 30, 2014 at 5:53 am

      dear token,
      each turn for the secondary winding will roughly add 1V at the output, so you can put about 16 turns for the secondary and also make sure ZD is selected with the same value

      the current can be increased by using bifilar winding for the secondary.

      Reply
    • franco rossi says

      May 3, 2014 at 11:15 pm

      i have an question on the construction of the transformer.
      a copper or alluminium tape must be connected to the primary winding?
      then the sequence is:
      1) winding the primary
      2) isolation tape
      3) copper tape connected to primary winding
      4) isolation tape
      5) the secondary winding
      tell me please if this is correct.
      thank you so much
      regards
      andrea

      Reply
    • Swagatam says

      May 4, 2014 at 7:17 am

      yes that's correct, connect the copper tape with the cold end of the primary, meaning with the line which connects with 180V zener anode.

      Reply
  60. joshua richard says

    March 13, 2014 at 5:39 am

    Sir
    pleas discribe the diameter of the copper wire in terms of mm

    Reply
    • Swagatam says

      March 17, 2014 at 4:58 am

      joshua, you can try any online calculator chart for the conversions.

      Reply

Need Help? Please Leave a Comment! We value your input—Kindly keep it relevant to the above topic! Cancel reply

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

Primary Sidebar

Subscribe to New Circuit Ideas

Categories

  • Arduino Projects (87)
  • Audio and Amplifier Projects (132)
  • Automation Projects (17)
  • Automobile Electronics (101)
  • Battery Charger Circuits (83)
  • Datasheets and Components (104)
  • Electronics Theory (143)
  • Free Energy (37)
  • Games and Sports Projects (11)
  • Grid and 3-Phase (19)
  • Health related Projects (25)
  • Home Electrical Circuits (12)
  • Indicator Circuits (14)
  • Inverter Circuits (87)
  • Lamps and Lights (142)
  • Meters and Testers (69)
  • Mini Projects (46)
  • Motor Controller (64)
  • Oscillator Circuits (27)
  • Pets and Pests (15)
  • Power Supply Circuits (108)
  • Remote Control Circuits (50)
  • Security and Alarm (64)
  • Sensors and Detectors (101)
  • Solar Controller Circuits (59)
  • Temperature Controllers (42)
  • Timer and Delay Relay (49)
  • Transmitter Circuits (29)
  • Voltage Control and Protection (37)
  • Water Controller (36)

Calculators

  • Battery Back up Time Calculator
  • Capacitance Reactance Calculator
  • IC 555 Astable Calculator
  • IC 555 Monostable Calculator
  • Inductance Calculator
  • LC Resonance Calculator
  • LM317, LM338, LM396 Calculator
  • Ohm’s Law Calculator
  • Phase Angle Phase Shift Calculator
  • Power Factor (PF) Calculator
  • Reactance Calculator
  • Transistor Astable Calculator
  • Transistor base Resistor Calculator
  • Voltage Divider Calculator
  • Wire Current Calculator
  • Zener Diode Calculator
  • Filter Capacitor Calculator
  • Buck Converter Calculator
  • Boost Converter Calculator
  • Solar Panel, Inverter, Battery Calculator
  • Wire Current Calculator
  • SMPS Transformer Calculator
  • IC SG3525, SG3524 Calculator
  • Inverter LC Filter Calculator

People Also Search

555 Circuits | 741 Circuits | LM324 Circuits | LM338 Circuits | 4017 Circuits | Ultrasonic Projects | SMPS Projects | Christmas Projects | MOSFETs | Radio Circuits | Laser Circuits | PIR Projects |

Recent Comments

  • Swagatam on 10 LED Tachometer Circuit Diagram
  • Swagatam on How Shunt Regulator TL431 Works, Datasheet, Application
  • Göran on 10 LED Tachometer Circuit Diagram
  • SA on How Shunt Regulator TL431 Works, Datasheet, Application
  • Swagatam on Adjustable 0-100V 50 Amp SMPS Circuit

Company

  • Privacy Policy
  • Cookie Policy
  • About Me
  • Contact
  • Disclaimer
  • Copyright
  • Videos
  • Sitemap

Social Profiles

  • Twitter
  • YouTube
  • Instagram
  • Pinterest
  • My Facebook-Page
  • Quora
  • Stack Exchange
  • Linkedin
  • © 2025 · Swagatam Innovations