Design of a Bi-Directional Fly- back DC/DC Converter For a stand-alone solar-powered eBike charging station

Bas van der Werk, Thomas Gerrits & George Koolman Bachelor Thesis Design of a Bi-Directional Flyback DC/DC Converter For a stand-alone solar-powered eBike charging station

Bachelor Thesis

Group B2 George Koolman 4270975 Bas van der Werk 4346785 Thomas Gerrits 4355075

June, 2017

Faculty of Electrical Engineering, Mathematic and Computer Science (EEMCS) Delft University of Technology

Acknowledgements

We would first like to thank our supervisor dr. ir. P. J. van Duijsen for giving us an interesting and technically challenging BAP free elective and also for taking the time from his busy schedule to intensely help us understand the power concepts and challenges faced in DC/DC converters. It was surely helpful and motivated some of us to consider further pursuing a masters degree in power engineering. Secondly, we would like to thank Joris Koeners, Harrie Olsthoorn, Chris Swanink, Bart Roden- burg and the Dream-hall for helping us get the needed equipment and location to successfully work on our BAP thesis. Lastly, we would also like to thank Pavel Purgat for his expertise and advice during trou- bleshooting of our prototype and Martin Schumacher for being the administrative contact.

Design of a Bi-Directional Flyback DC/DC Converter Executive Summary

This document is the bachelor graduation thesis of BAP Group B2. Together with BAP Group B1 the objective of this project was to create a control network and DC/DC converter implemen- tation capable of fast, analog power management with active, remote-control and -interfacing of multiple converter’s energy flows. The system will be designed to function in the solar-powered eBike charging station on the TU Delft campus.

This document specifically is concerned with the design, simulation and testing of the DC/DC converter. The thesis presents a bi-directional flyback DC/DC converter design and prototype with analog power management, universal control signals and high integration potential.

These aspects are accomplished by building upon the traditional flyback DC/DC converter de- sign with respect to circuit topology, power-flow control, connectivity and accessibility. The difficult regulation and measurement of DC power flow has been reduced to a set of analog signals interpretable by any microcontroller, easing the integration of the converter into larger energy and control networks.

A working prototype is presented and the inner-workings of the electrical circuit are discussed and evaluated in detail. The converter is tested beyond the limit of the design requirements and the performance is documented. Provided are possible reasons for malfunctioning and guide- lines for future improvements.

Design of a Bi-Directional Flyback DC/DC Converter Table of Contents

Executive Summary ii 1 Problem Description1 1.1 Problem Scope...... 1 1.2 Technical Review...... 1 1.3 Design Requirements...... 2 2 Design Description3 2.1 Overview...... 3 2.2 Components...... 6 2.2.1 Transformer...... 6 2.2.2 Switching Component...... 11 2.2.3 Integrated Circuit PWM controller...... 14 2.3 Topology Design...... 16 2.4 Subsystems...... 17 2.4.1 Peak Current Mode Controller...... 17 2.4.2 Measurement Bridge...... 19 2.4.3 Digital to Analog Converter...... 20 2.4.4 Direction Comparator...... 21 2.4.5 Power Supply...... 22 2.5 Use...... 23 3 Simulations 24 3.1 Uni-directional...... 24 3.2 Bi-directional...... 27 4 PCB Design 29 4.1 Design Layout...... 29 5 Evaluation 31 5.1 Overview...... 31 5.2 Prototype...... 32 5.3 Testing and Results...... 33 5.4 Assessment...... 39 5.5 Next steps...... 40 A Appendix 43

Design of a Bi-Directional Flyback DC/DC Converter Problem Description

1.1 Problem Scope

The current electrical power grids have seen a considerable increase in contributors and recipients in the form of off-shore wind-farms, enormous solar-fields, electric vehicle (EV) infrastructure and extensive consumer electronics, among others. The growth of these non-conventional power elements in the distribution chain conflict with the functionality of traditional electrical grids, designed in the 20th century. The traditional grids struggle with the energy surges and droughts produced by sustainable energy technologies such as solar and wind, and do not make use of the technologies available in the 21st century. In new, state-of-the-art grids not only power, but also information is generated and exchanged in the infrastructure. This allows analysis of the power flow, and control and scheduling of the enclosed system. Energy demands can be adjusted to meet the available supplies, whereas in the current systems, demand control is severely lacking. The purpose of this thesis is to design a robust bi-directional flyback DC/DC converter with fast, analog control and the potential of integration into a vast range of prospective electrical grids. In it’s most simple form the converter needs to be able to charge Lithium-Ion batteries of electric bicycles and it will be designed as a key element of the solar-powered eBike charging station developed at the TU Delft faculty, EEMCS[19].

1.2 Technical Review

Energy flow Managing and controlling the flow of energy is an important aspect in current electrical grids. Small or large grids would benefit from integrated power management on an analog level. New DC-microgrids, like solar-powered green villages[2] or DC-fed automotive boardnets, are being designed to function completely free from any external energy source. These grids have a significant amount of varying supplies, loads and hybrid elements like bat- teries. They need to manage their energy flow and storage with complex algorithms in order to function efficiently and reliably.

Switch mode power supplies One possible way to do this is with the use of a flyback con- verter. The flyback converter that is proposed is a subcategory of the so called Mode Power Supplies (SMPS). In its most basic form a switch mode power supply uses a switching component, an and a rectifying to transfer DC or AC power to DC loads, while converting the electrical characteristics of the power flow. or transfer energy from the input to the output. Currently, SMPS are rapidly replacing linear regulated power supplies in most

Design of a Bi-Directional Flyback DC/DC Converter 1.3 Design Requirements 2 modern electronic devices. They often show higher efficiency, better output voltage regulation and compacter size.

Linear power supplies basically consists of a dissipative series regulator and a transformer. Normally the transformer is a heavy 50/60 Hz transformer which increases the cost, size and weight. Efficiencies of a linear voltage regulator are quite low, often not higher then 60 percent. SMPS however, are able to function at frequencies that range from several hz to several hundred kHz. Especially when looking at frequencies of a few tens of kHz the SMPS shows great results, and efficiencies up 80 or 90 percent can be achieved. Switching at higher frequencies also reduces the size of filtering components and the transformer[3].

1.3 Design Requirements

The converter will be used in the solar-powered eBike charging station which determines a set of initial design guidelines. A couple of general design requirements(req) and wishes(wish) have been formulated to fulfill this intention, while also keeping the door open for future innovation and integration.

• The output power needs to be 110 Watts (req).

• The input voltage can vary between 36 and 48 volts (req).

• Add functionality at low input voltages ranging from 12V and up (wish).

• The required output power needs to be met at an output voltage of 48V (req).

• The flyback converter has a wide output voltage range that can vary between 12V and 48V (wish).

• The flyback converter needs to have fast, analog cycle-to-cycle current limiting (req).

• The switching frequency needs to be settable to a maximum of 125 kHz (wish).

• The flyback converter needs to operate in discontinuous current mode (wish).

• The flyback converter needs to be able of bi-directional energy conversion (wish).

• Low ripple on the output voltage line (wish).

• The flyback converter needs to be controlled by a simple microcontroller, while providing measurements of the DC power flow (req).

• The flyback converter needs to be applicable in a number of other circumstances, such as smart DC-grids (wish).

• The flyback converter needs to be a robust design to maximize lifetime (wish).

Design of a Bi-Directional Flyback DC/DC Converter Design Description

2.1 Overview

The bi-directional flyback converter proposed is part of a larger network of multiple DC/DC power converters and control circuitry shown in figure 2-1. This system is able to effectively manage, control and display the energy flow wherever the power converters are implemented. The conversion of the DC power happens on-board by the use of the flyback SMPS circuit topology, controlled by digital commands received from a slave. The master and slave receive relevant information about the power flow from the converter and determine a course of action. All this information is sent to a server where real-time status can be observed and commands can be sent back to the converter from any device connected to the internet.

Figure 2-1: Simplified diagram of the complete standalone charging system

Our design focuses explicitly on the power converter block and the implementation of the control signals and measurements to and from the slave. The power converters in this block are all bi- directional flyback converters. These converters are designed keeping all requirements of section 1.3 in mind, while also trying to fulfill as much of the additional wishes as possible.

Design of a Bi-Directional Flyback DC/DC Converter 2.1 Overview 4

Flyback Topology

The flyback topology is derived from the buck-boost topology. This is achieved by replacing the inductor in a buck- with a coupled inductor, such as gapped core transformers [21]. The characteristics of the transformer enables the use of less components, while still retaining the same functionalities. Making the flyback a simpler and cheaper option. In its simplest form the flyback consist of a switch on the primary side of the transformer and a diode with output capacitor on the secondary side. Bi-directionality is achieved by mirroring the components on both sides as shown in figure 2-2.

Figure 2-2: Simplified schematic of a bi-directional flyback converter

For the sake of simplicity the flyback topology will be explained with a one directional flyback. The energy transfer is described in two states, the ON and OFF state.

ON state In this state the MOSFET Q1 is turned on, meaning it will conduct and Q2 is turned off. The energy from the input is stored inside the transformer as magnetizing . The output diode (internal MOSFET body diode Q2) is off (reverse biased) and energy is supplied to the load from the output capacitors [12].

OFF state Here MOSFET Q2 is turned off, the energy inside the primary side transfers to the secondary inductor, the voltage across the secondary inductor reverses and the internal MOSFET body diode Q2 turns on (forward bias). The stored energy is then supplied to the output capacitor and load [12].

The flyback converter can operate in two modes, discontinuous current mode (DCM) and continuous current mode (CCM). In DCM the current in the secondary inductor is fully delivered to the load before the next switching cycle. For our transformer design, this requires the duty cycle (D) to be under 50% (see figure 2-3 and section 2.2.1). In CCM on the other hand the next switching cycle begins while the secondary inductor still has current running through it [12]. For our application DCM is wishful. Figure 2-3: Currents during DCM operation

Design of a Bi-Directional Flyback DC/DC Converter 2.1 Overview 5

The advantages of DCM are:

• Higher efficiency.

• Faster transient response.

• Low primary inductance, thus making the transformer smaller [22].

However there are some drawbacks. DCM produces parasitics that cause higher peak currents which results in higher peak voltages over the MOSFET that can cause failures[21]. For this reason extra switching circuitry has been added to promote robustness of our flyback converter.

Converter Power management Controlling the energy flow, there are PWM (Pulse Width Modulation) control IC’s on either side, driving the MOSFETs. These produce the appropriate duty cycle to match the voltage set point (Vsetp), current limit (Ilim) and energy directon (DIR), received from the microcontroller.

Figure 2-4: Control and measurement connections to the converter

Furthermore, the PWM controller itself is controlled via multiple subsystems. These subsystems consist of a Measurement Bridge, Digital to Analog Converters (DAC) and a Direction Com- parator, and function as the translational step between the converter and the microcontroller. The measurement bridge does four measurements, the current and voltage of both the primary and the secondary side. These measurement signals are sent to the microcontroller. Using these measurements the microcontroller determines a course of action depending on implemented al- gorithms. The microcontroller initially sends two PWM signals back to the converter, Vsetp and ILim. These digital signals are received by the DAC and converted to an analog signal. The Vsetp signal ’sets’ the output voltage and ILim limits the suppliable current. A third signal is sent from the microcontroller to determine the direction of energy flow through the flyback. Either from left to right or from right to left (see Figures 2-4 and 2-5).

Figure 2-5: PCB signal conversion subsystems

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 6

2.2 Components

To obtain a properly functioning flyback converter it is essential to obtain components that work accurately and effectively. Especially the choices regarding the switching component, PWM controller and the transformer are crucial. For each of these component design parameters need to be established. This section gives an overview of the considerations made concerning these three components.

2.2.1 Transformer

In flyback converters, the transformer is a crucial component that needs to be carefully designed. The transformer needs to combine the functions of power transfer, energy storage, and galvanic isolation[12]. Many facets come into play when designing the coupled inductor. For macro-   circuit design and operation, the turn ratio Np and magnetic core saturation (B ) are the Ns sat most important factors. These aspects determine the input and output voltage and current characteristics of the overall circuit, as well as frequency limitations and ripple current[8]. A variety of other parameters are inherent to coupled that influence the efficiency, stability and complexity. These include, but are not limited to; the primary and secondary coil inductance and turns, the parasitic inductance, the resistive winding and magnetic core losses, the core shape and air-gap. These parameters are a subject of initial design and have considerable importance, as they are a key factor in the overall performance and lifetime of the converter. This section gives insight in the design of a transformer[11].

Requirements

Besides the general requirements stated in section 1.3 there are a couple of requirements and wishes established specifically for the transformer.

• The transformer winding ratio is 1:1 in order to keep the currents on both primary and secondary side the same (wish).

• Leakage inductance needs to be as low as possible in order to prevent high over-voltage spikes, ringing and losses (wish).

• The maximal flux density is set to 300 mT. The flux density determines how much en- ergy can be moved through a transformer. High flux density means more power can be moved through the transformer, however when the value is too high, power losses will rise drastically. 300 mT is often used as a rule of thumb[5] (req).

• The inductance value needs to be chosen as big as possible in order to minimize peak currents (wish).

• The core needs to be chosen as small as possible in order to have as few losses as possible (wish).

• The calculated number of turns necessary needs to fit on the coil former (req).

• The air gap should be as wide as possible in order to increase the inductance factor thus minimizing the number of layers and core size needed (wish).

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 7

Design

The design process of a transformer can be subdivided into several steps. The first step that needs to be made is picking a core type and size. Important requirements that need to be taken into account when looking at the core size are the flux density and the maximum output power. These will give a rough estimation on the type and size, however this does not mean that the originally chosen core is the correct one, since there is a possibility that a requirement will not be met and a different core needs to be chosen. There is a wide variety of cores ranging from the magnetically superior POT cores to the more cheaper E and EE cores[9]. Since the E and EE cores offer the lowest cost with respect to other core types the focus will initially be on these type of cores. The size of the core is based on an estimation of the amount of turns and output power. Fur- thermore, it is better to pick a bigger gap before picking a bigger core size. A smaller core has less heat radiation, lower losses and lower parasitic capacitances[10].

Next step is to calculate the number of turns. The following formula applies for the flux density, A · n · I B = L p,peak (2-1) Acore with,

• n, the number of turns.

• Ip,peak(A), the peak current at the primary side of the transformer.

• AL(H), the inductance factor. • B(T), the flux density.

2 • Acore(m ), the core area.

Rewriting this to the number of turns results in, B · A n = core (2-2) AL · Ip,peak The peak current of formula 2-2 is still unknown, which means that other parameters need to be looked into first before making an assumption on the number of turns. For the output power the following formula applies,

2 Pout = 0.5 · Lp · Ip,peak · f (2-3) with:

• Pout(W), the output power.

• Lp(H), the primary inductance. • f(Hz), the frequency.

Keeping in mind the required output power of 110 W, the peak current can be determined. Rewriting formula 2-3 to the peak current results in, s 2 · Pout Ip,peak = (2-4) Lp · f

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 8

This results in another unknown parameter, the primary inductance. The primary inductance is related to the peak current via the following equation,

VB · D · T Ip,peak ≤ (2-5) Lp with,

• D, the duty cycle.

• T(s), the period.

• VB(V), the input voltage.

Rewriting this to an expression for the primary inductance results in, V · D · T L ≤ B (2-6) p Ip, peak Substituting equation 2-6 into equation 2-4 results in,

2 · Pout Ip,peak ≤ (2-7) VB · D Taking into account that the input voltage can vary between 12V and 48V and the duty cycle is less then 50 percent, the peak current and number of turns can be calculated. The number of turns is related to the inductance via the following formula,

2 Lp = n · AL (2-8) with,

• AL(H), the inductance factor

The inductance factor is the inductance of the coil when n is equal to 1 and can be found in the datasheet of the core type[7]. Since one of the established requirements is a turns ratio of 1:1, the primary inductance will be equal to the secondary inductance(Lp = Ls = L). The peak current and the inductance value are important parameters to consider when looking at the di duty cycle, since the current rises with a factor dt = V/L. If it is not able to reach the necessary peak current within it’s duty cycle, the desired output power cannot be achieved. Which means that the peak current needs to be raised and/or the inductance needs to be reduced[10]. Taking this data into account a core size is picked with a certain gap length. The number of turns can be calculated and the peak current can be measured. These values are used to check whether the flux density is below 300 mT. When the flux density is above 300 mT, a bigger gap is chosen. When this isn’t enough, a bigger core is used. When the flux density has the correct value one has to check if the number of turns needed to gain the specified value of the flux density fits on the core, which could have an effect on the inductance value. Lastly the inductance value is calculated using equation 2-8.

After the steps described above have been done, the winding method needs to be determined and the DC resistance needs to be estimated. The second of which is done using the following equation, ρ · l R = (2-9) A with,

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 9

• R(Ω), the DC resistance of the wire.

• l(m) = 2π · r · n, the length of the wire.

• A(m2) = π · r2, the surface of the wire.

• ρ(Ω · m), the resistivity of the material.

Rewriting equation 2-9 gives, 2 · π · rcore · n R = ρ · 2 (2-10) π · rwire with,

• rcore, the radius of the middle shaft of the core

• rwire, the radius of the wire

With respect to the winding method it is important to decide how many layers are needed. When it is necessary to have multiple layers it is possible to make use of interleaving[5]. In- terleaving is a winding method at which the secondary winding is ’interleaved’ in between the primary winding. For instance when using four layers, two primary and two secondary, the order of layers would be P-S-S-P. The benefit of this method is that there will be no magnetic field at the boundaries of the different sections. Based on the given formulas stated above the transformer parameters can be determined.

Component selection As already mentioned the choice has been made to use the E core type. Preferably a core with low leakage and wide windows. A viable option that meets these specifications would be the ETD core. The size can be relatively small for the application it will be designed for. The first core that will be looked at is the ETD29. Basically the smallest ETD core type there is on the market right now. The air gap is taken as big as possible, which in this case is 1 mm. This gives an inductance factor of 124 ·10−9 (H/turn) and a core area of 71 ·10−6(m2) Now that the core type and size is determined the other parameters need to be established in order to check whether the transformer meets the requirements. First of all equation 2-7 is used to determine the peak current before the inductance value is calculated. This value is maximal at a low input voltage of 36V and at an output power of 110 Watt resulting in a peak current of 12.2 Ampere. Using this value the number of turns can be determined using equation 2-1 resulting in n equal to 14 turns. Using equation 2-8 the inductance is determined at 24 uH. Lastly, the core needs to be winded. Initially the selected material for winding is copper, which has a resistivity of 1.68 ·10−8 (Ω·m). Using equation 2-9, a rough estimation of the DC resistance can be made. Using n equal to 14 results in a DC resistance of 5.5 mΩ over the primary and secondary side. In order to fit the number of turns on the core a wire thickness is picked of 1.25mm. The available space for the winding is equal to 22, dividing 22 by 1.25 equals approximately 17 turns. The transformer consist of one primary layer and one secondary layer. Both winded in the same direction in order to meet the polarity of the transformer. After the transformer has been winded, the transformer should be connected to the spectrum analyzer. This device determines the inductance value, the leakage inductance and the AC resistance. Section 5.3 describes the results.

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 10

Remarks

Skin effect and with it the skin depth are also factors that can be of importance for the trans- former. Skin effect is the tendency of AC currents to distribute itself in such a way that the cur- rent density at the surface is higher than at the center, see figure 2-6. The parameter δ, called the skin depth, de- termines how close the current flows along the surface of the conductor[20]. Ideally, all the windings should have a single layer. When using a single layer for both the primary and secondary layer, the layers can be much thicker than the skin depth without adverse effects[18]. The proximity effect should also be mentioned. The proximity effect occurs when an AC current in a conductor causes eddy currents in close by conductors[13]. Both factors need to be taken into account Figure 2-6: Skin effect in a round wire when testing the transformer with the se- lected wires. For instance, when the AC resistance of the transformer is unexpectedly high perhaps other winding material needs to be used to counteract this. For the determination of the AC resistance the formula of Dowel can be used. This formula is used since it takes into account, among other elements, the skin effect and the proximity effect[27].

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 11

2.2.2 Switching Component

The switching component of a flyback converter is one of the most vulnerable parts within a flyback. For maximum system robustness and reliability a properly rated power MOSFET has to be selected along with a high efficiency. The MOS family has two main branches, the PMOS and the NMOS. The basic functionality is the same, but the operation modes and applications differ between the two. In most cases the NMOS is a better choice due to the orientation of its internal body diode, and better circuit performance and efficiency compared to the PMOS, therefore this type of MOSFET will be used[6]. Things to consider with the selection are; blocking voltage, on-state current, switching frequency, switching losses, internal body diode and more.

Requirements

Besides the requirements stated in 2.3, the specific requirements for the the switching MOSFETs are:

• Breakdown voltage (VDSS) of the MOSFET has to be able to withstand the high voltages encountered during the switch in OFF state (req).

• The maximum drain to source current (ID) of the MOSFET needs to be rated for the maximum current flowing during the ON state (req).

• The MOSFET has to be robust, meaning being avalanche rated and should be accompa- nied by fail safe circuits (wish).

• Low power losses within the MOSFET (wish).

• The MOSFET has to be able to switch at 125 KHz (wish).

• Gate-to-source voltage VGS has to be compatible with the PWM controller (req).

Component selection

First step in determining the right switching component or NMOS to choose for a flyback realization is to take a look at the ON and OFF states of our switch. In the ON state, the voltage across the MOSFET drops to nearly zero, current flows linearly into the primary inductor of the transformer and energy gets stored into the transformer. Here the rating to take into consideration is the maximum drain to source current ID. This would have to be larger than the maximum current flowing in the primary side of the transformer which is for our transformer 12.2A, mentioned in 2.2.1. When the MOSFET turns off, an extremely high voltage is generated across the device as shown in figure 2-7. It is because of this that the break-down voltage VDSS is a crucial parameter to consider in flyback power supply design[24]. This high voltage generated consists of the (maximum) output voltage across the secondary reflected back through the transformer and multiplied by the turns ratio (nV o), (maximum) input voltage (VinMAX ) and a spike voltage due to the effects of parasitics caused by the primary leakage inductance (Llk1) and MOSFET output capacitor (Coss) labeled as VLleak (detailed explaination of this resonance is found in [21]). All these voltages are in series with each other making the calculation for minimum VDSS: VDSSmin = nV oMAX + VinMAX + VLleak (2-11)

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 12

For our flyback nV oMAX +VinMAX is around 96V to leave some room for the leakage induction spike a double of the minimum VDSS is recommended. Thus, a VDSS in the range of 150V-200V should be sufficient.

Figure 2-7: Resonance caused during DCM operation [21]

Second step in selecting a MOSFET is to take generated power losses into consideration. The power loss in a MOSFET mostly comes from two sources, the conduction losses and the switching losses. Conduction losses are caused by the resistive element in the MOSFET RDS(on). This element dissipates power as the current is conducted through the MOSFET and is inversely proportional to the size of the device [23]. Also a high VDSS has some influence as these MOSFETs tend to have higher conduction losses [24]. Switching losses, on the other hand, are caused by the output capacitance Coss of the MOSFET. During each switching cycle the energy stored in Coss is dissipated in the MOSFET. Thus, for high switching frequency, a small Coss is preferred. The equations for switching and conduction losses are [23][34]:

1 P = · C · V 2 · f (2-12) switching 2 oss DS switch

2 Pconduction = RDS(on) · IDS(rms) (2-13) s D I = I · (2-14) DS(rms) p,peak 3

Plosses = Pswitching + Pconduction (2-15) With the considerations mentioned above, the AUIRFR4620 MOSFET was selected. This power MOSFET is automotive qualified to Infineon standards, which makes it low in switching and conduction losses thus making it good for fast switching and operating at high temperatures [14]. It is also rated for repetitive avalanche, which allows the MOSFET to dispense the surge voltage into heat. Together these features contributes to overall system robustness. The relevant datasheet values are the following [29]:

• VDSS = 200V

• ID = 24A

• RDS(on) = 64mΩ

• Coss = 125pF

• VSD = 1.3V

• Operating Temperature of 175 °C

• VGS(max) = ±20V with Vth = 3-5V

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 13

Compared to other power MOSFETs in this VDSS range the AUIRFR4620 has a low output capacitance Coss, yet retains a reasonable Rds(on), leading to lower switching losses considering that the system would be switching at medium-high frequency. Using the functions 2-12, 2-13 and 2-15 this leads to an estimated MOSFET loss of 1.6W assuming the system is running at maximum power output, D = 0.49 and maximum switching frequency of 125 KHz.

Switching Circuit Design

However, a drawback of this MOSFET is that the body diode voltage is considerably high (1.3V). This leads to further losses on the secondary side of the flyback when the MOSFET is in flyback diode mode. To avoid this we placed a schottky-diode (V20202G-M3/4W) in parallel with the MOSFET (figure 2-8) with a lower diode voltage drop of 0.71V. This way most of the current flows through this diode instead of the inefficient MOSFET body diode.

Figure 2-8: Switching circuit adjustments with clamp and schottky

For further robustness of the system it is recommended to ensure that the power MOSFETs will not go into avalanche mode [24]. This is accomplished by adding a clamp circuit over the transformer as shown in figure 2-8. The clamp circuitry considered for our flyback is a clamp because of its simplicity and amount of component. Clamp circuits absorb the parasitic excessive voltage produced by the leakage inductance. This is accomplished when the clamp diode (Dsn) turns on when Vclamp exceeds Vin + nV o. Vz (zener clamp voltage) should be chosen based on a voltage Vmax, sufficiently lower than the maximum VDS of the MOSFET and the input voltage V in. Vz = Vmax − Vin (2-16) Making the power dissipated in the zener diode [24]:

1 2 Vclamp Pz = Lleak · ipeak · · fs (2-17) 2 Vclamp − nVo

Remarks

Lastly, another factor to take into consideration while selecting a MOSFET is the body package. Different types of packages have their own character- istics. For our application a reasonable sized D-pak (2-9) was chosen due to ease of prototyping, but choosing smaller packages can result in better efficiency performance. Heat dissipation is also something to acknowledge, MOSFETs performance decreases and becomes less efficient at high tem- peratures. The AUIRFR4620 however has a high operating temperature of 175 °C and a heat sink was not considered necessary in this design, although the option to add one later on has been left open. Figure 2-9: AUIRFR4620 [29]

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 14

2.2.3 Integrated Circuit PWM controller

There are multiple ways to implement the control of the converter’s MOSFETs. One is by using a microcontroller, performing voltage and current measurements and generating a PWM signal based on a PI-controller. The upside of this approach is the degree of freedom when one writes their own code and control loop, and having the ability to use the microcontroller’s other peripherals like I2C, UART, etc. for direct communication, feedback and in-circuit debugging. Another approach is to use an Integrated Circuit (IC) PWM controller. An IC PWM controller is basically a hardware implementation of a certain control-loop, designed to perform one spe- cific task. The upside in this case is that the entire flyback converter control can be implemented through a single, purchasable IC, and thus reducing the complexity of the control circuit sig- nificantly as compared to the microcontroller realization. Therefore, the choice has been made to design our converter with an IC as controlling element. The complexity of the converter and the available time played an important role in the decision. With the IC implementation the converter can be controlled with just a few analog signals that any microcontroller or develop- ment board is able to interpret and generate, thus creating a very robust and accessible flyback converter with power management capability.

Requirements

The IC is a crucial component in the design, since it performs all measurements and control of the MOSFETs. The IC must be well-chosen in combination with the switching component, as the collaboration of these two components form the basis of the control system. The IC must be stable, reliable, efficient and easy to control. As the component choice in this case is generally not subject to fundamentally different operating approaches, the IC choice is determined by other characteristics with respect to; control method, working frequencies, operating temperatures, voltage limits and IC packaging, which are variable for each manufacturer and product family. Some actual requirements are:

• Vcc must be above the gate threshold of the MOSFET (req).

• Operating mode must be compatible with our bi-directional flyback topology (req).

• IC must be compatible with the switching of a low-side FET (req).

Design

When seeking for suitable IC’s one starts with narrowing the search to a control method appli- cable to the desired converter topology. For our flyback converter topology the available control methods are: Current control, Voltage control, Feed Forward control, Valley Current control and Peak Current control [17]. All of these methods can be used to control our circuit, so the choice was based on the stability, complexity and accessibility of the control IC. Both current and voltage control are proven, reliable control methods as they are the oldest and most used methods in SMPS design, based on simple PID control loops. Feed Forward is a more recent control method that builds upon the classical PID-controller by adding terms that predict the behaviour of the converter, making the controller proactive instead of reactive. Lastly, Peak current control and Valley current control are two methods that add extra features to the es- tablished current-mode control method. Peak current control features an extra control loop based on trailing-edge modulation that senses the current through the inductor and allows an analog signal to set the maximum allowed current. Valley current control adds loss-less current sensing and a leading-edge modulation control loop that makes it suitable for high frequency,

Design of a Bi-Directional Flyback DC/DC Converter 2.2 Components 15 high current buck conversion with small duty cycle variation.

For our converter the peak current control method is an excel- lent choice. It implements the standard control needed for normal converter operation, and adds current limiting in a robust and accessible manner. Now that the search has been limited to fly- back topology, peak current control IC’s the choice lies with the last parameters regarding switching frequency, Vin, Vout, gate drive current, and duty cycle limits. Our switching frequency, Vin and Vout are reasonably standard values and any IC will be compatible. Furthermore, the gate drive current does not have to be very large as the MOSFET does not require it when switched in the electrical circumstances of our converter. Lastly, the duty cycle maximum is an added feature that limits the duty cycle to a predetermined value. Choosing this value at 50% is a convenient addition to the converter as it reduces the converter behaviour Figure 2-10: PDIP-8 IC to purely Discontinuous Current Mode (DCM).

With these design parameters the UCx84x family seemed promising. The final choice landed on the UC2845 by Texas Instruments due to its duty cycle limit, operating temperature and turn-on voltage, making the converter suitable for voltages as low as 12V, which is the standard battery voltage level.

Remarks

The PWM controller IC is a good choice for fast, analog control of our flyback converter. However, care must be taken when designing a PCB because the analog control circuitry is sensitive to noise and consists of a few critical current paths.

Design of a Bi-Directional Flyback DC/DC Converter 2.31 Topology Design 2 3 4 16 5 6 7 8

2.3 Topology Design Connectors Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202Keeping all previously mentioned subjects in mind, the final converter topology5V has been de- COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 signed1 and the schematic2 can be found in figure 2-11. The entire schematic, together with all PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- subsystems is depictedF 4 in appendixA figurePI12V01 PIC101A-1 . The essential components needed for the COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- bi-directionalCOC10C10 functioning of a flyback converter12V 100uF arePIU103 all presentPIU105 in the form330uF ofPIC902 thePIC301COC3C 3 PIC401 transformer, COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B the MOSFETs and capacitors C19/C22. VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 The switching of the MOSFET introduces noise onto the input and output voltage lines, addi- Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 tional capacitors (C20,C21,C23,C24) have therefore been added to function as high-frequency ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 noise paths to stabilize the output, as well as increase accuracy of the measurements [33]. 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2 PIR1002 PIR1102 PID802 COD4 COD5 PID902 PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K COC28C28 COR23R23 COR24R24 PIC2701 1nF LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 PIU3044 PIC2901 330nF NLV10V1- V2-

Figure 2-11: Bi-Directional flyback converter topology Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1

R14/R15 are two small resistors added to the MOSFET gates to limit the current on8 these 4 PIU1208 PIU404 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P paths from PWMCOU6U6 controller to MOSFET.ON/OFF1 R50/R49 are two large resistors connectedPIU1203 from the PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 MOSFETCOC31 gates to ground to function as a pull-down3 path when the MOSFET gatePIU1202 signal is 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33left floating. 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C The Schottky discussed4 in section 2.2.2 PIU708are present in the design as well. PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P Voltage measurementPIC3802 Four resistor divider networks (R10/R16, R11/R17, R12/R20, R13/R21)PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 have been added to the V1 and V2 rails to function as voltage measurements. The 300K-30K7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 divider ensures that the entire input and output voltage range gets divided by ten to makeLM393P it PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 usable for thePIU901 microcontroller COMP OUTPUT PIU906 and the other subsystems.COR40R40 (12V-48V → 1.2V-4.8V) PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 Current measurement R234 and R24 are twoPIU808 shunt resistors placed between the source of the RT/CT PIU904 5V 12V PIC4602 Vsetp COR46R46 COC45C45 MOSFETsPIR4601 PIR4602 and7 GND, and are5 used forCOC46C46 measuring the primary and secondary current. Since the PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF resistance is soCOC47C47 small, all of the current throughCOR47R47 the MOSFETsCOR48R48 will pass through these resistors 6.7uF UC2845N PIR4701 PIR4702 PIR4801 PIR4802 to ground. ThePIC4702 current through the shunts creates a potential difference over the resistors which is directly proportional to the current passing through, making it an ideal place to measure the

D current. The voltage over the resistor however, is very small compared to the noise of the power D line. To counter this, a small low-pass filter (R18/C28 and R19/C27) has been attached to both

current measurements to filter out some of this noise. Title Bi-Directional Flyback Converter - Groep B Size Number Revision A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8

Design of a Bi-Directional Flyback DC/DC Converter 1 2 3 4 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2.4 Subsystems 17 PIU3022 PIR1002 PIR1102 PID802 COD4 COD5 PID902 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B 2.4COC20 SubsystemsCOC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 2.4.1 Peak Current Mode30k Controller COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K The PWM control IC needs some componentsCOC28C28 to be able toCOR23R23 function[ COR24R2430 ]. Figure 2-12 shows the PIC2701 1nF LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω design from our Altium schematic. Both IC circuits are identical,PIR2301 and arePIR2401 the foundation of the PIU3044 PIC2901 330nF bi-directionalNLV10V1- nature of the converter as they each control one MOSFET. The Q3 V2- and Q4 control which IC is being used, and thus controlling the direction of the energy flow.

Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1 PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF 6.7uF COC47C47 UC2845N COR47R47 COR48R48 PIC4702 PIR4701 PIR4702 PIR4801 PIR4802

D Figure 2-12: Peak Current mode control circuit implementation with UC2845 D

Title RT/CT The RT/CT pin of the IC determines the operating frequency of the IC. The resistor Bi-Directional Flyback Converter - Groep B and capacitor implementation of R29/C37 and R45/C46 set the IC operating frequency to 125 Size Number Revision KHz. A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: ISENSE 1The voltage over the shunt resistor2 is measured and fed into3 the control circuit 4 5 6 7 8 through connections Imeas1 and Imeas2. The shunt resistor has a value of 0.01Ω, meaning that a peak current of 20A results in a voltage of 0.2V over the shunt. The IC uses a max. 1V reference voltage, to which it compares ISENSE to determine the maximum current. This means an amplifying op-amp circuit is needed to scale the shunt resistor voltage range to max. 1V. This is implemented by U7A and U8A respectively for each side, operating in non-inverting topology. C36 and C45 are added to the feedback network to function as an active low-pass filter to help reduce noise and increase accuracy. The analog current limit signal ILim, originating from the microcontroller, is super-positioned onto the current measurement through resistors R27 and R40. This raises the voltage level of the current measurement higher than it actually is, tricking the IC into detecting max current and switching off the MOSFET while the actual current is not actually maximum.

Design of a Bi-Directional Flyback DC/DC Converter 2.4 Subsystems 18

VFB/COMP These pins function as voltage measurements and control inputs. The resistor divided voltage of the output (Vout) is fed into the control circuit through connections Vsense1.1 and Vsense2.1. The components placed between VFB and COMP determine the transfer func- tion of the error amplifier feedback network. The type of compensation and its influence will be discussed in section3. The analog input signal Vsetp, originating from the microcontroller, is super-positioned onto the VFB pin through resistors R30 and R46. If no voltage is applied onto VFB (leave out Vsetp and R30), the IC will try to regulate the output voltage so that the VFB pin equals the standard internal value of 2.5V. Depending on the resistor divider ratio on the output this results in a fixed Vout. By adding Vsetp, VFB is pushed above or below 2.5V, meaning the IC will regulate the output voltage until VFB is back to 2.5V. Since the resistor divider on the output is no longer a standard 2 resistor network, but has another resistor and an analog signal in the structure (Vsetp and R30/R46), the 2.5V at VFB no longer corresponds to only one fixed Vout, but can be any voltage that is within the macro-circuit design parameters.

The OUTPUT pin is the signal that goes to the MOSFET gate. This is either 0 V, when the MOSFET should be closed, or VCC (12V) when the MOSFET should be open. The signal is fed through a 10Ω resistor to limit the current spikes of the IC and increase the switching stability.

C38 and C47 function as a local energy buffer for the IC’s. When the gate signal is switched from low to high, peak currents up to 1A can flow because the IC wants to turn the MOSFET on as fast as possible. Instead of building a power supply capable of delivering 2 × 1A to the IC’s, the capacitors provide the necessary peak current. The IC’s are decoupled from the supply and no longer rely on it for high peak current. A smaller power supply can be used. It is of importance that the capacitor is big enough to provide the current for as long as needed per cycle, whilst also retaining the voltage level of VCC. Choose the capacitor too large though, and the start-up time and current draw increases rapidly.

Design of a Bi-Directional Flyback DC/DC Converter 1 2 3 4 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 2.4 Subsystems 1 PIR702 PIVsetp01 VNLVsetpsetp 19 1V56 1 PIU301 PIR802 PIR801 2 PIR1002 PIR1102 PID802 COD4 COD5 PID902 PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00 2.4.2 Measurement Bridge PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 The measurement bridge is the section of the converter that translates the converter’s noisy, C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 analog signals into steady DC signals that the microcontroller can sample with its ADC. The 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 measurements that8 are of interest to the microcontroller are the voltage and current on both COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILsidesimPWM of the converter.2.7k Figure 2-13 shows the op-amp implementation of these measurements. 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k To measure the voltage,7 a resistorPIR902 dividerPIILim01 INLILimLim has been placed on both sides of the converter’s power COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 traces.PIU306 This signalU is3B passed to1K the measurement bridge through Vsense1.2 and Vsense2.2, and COC28C28 COR23R23 COR24R24 PIC2701 1nF fed to voltage-followersLM393P U4A and U5A.PIC2902 CCOC2929 Note that this is a different resistor divider network PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 as is used for thePIU3044 IC voltage measurement.PIC2901 330nF This is done because the IC forces its resistor NLV10V1- V2- divider to 2.5V, thus rendering it useless for the purpose of voltage sensing off-board. R25/C30 and R37/C39 form a passive low-pass filter (LPF). This is implemented to filter out the high frequency switching noise that the converter introduces onto the high-power path.

Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1 PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 Figure 2-13: Measurement bridge op-amp circuit implementation Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF 6.7uF COC47C47 UC2845N COR47R47 COR48R48 The current measurements are done with the same analog signals that are passed to the current PIC4702 PIR4701 PIR4702 PIR4801 PIR4802 mode control circuit, namely Imeas1 and Imeas2. These can be re-purposed for this use because the IC does not force the signal to any value as it does with the voltage sense signals. In order to not disturb the current sense signal, the signal is fed directly into the op-amp without any additional passive filtering. The filtering is done by an active LPF, implemented through C34 D and C41, and by a passive LPF directly after the op-amp with R26/C32 and R38/C40. These D filters are needed because the current sense signal has the shape of a saw-tooth, while the rms value is the only relevant piece of information. The resistors R31/R32 and R41/R42 provide a non-inverting feedback network that sets a gain for the op-amp,Title scaling the current sense signal to a value between 0V and 3.3V, which is the input range ofBi- theDirect microcontroller’sional Flyback Conver ADC.ter - Groep B Size Number Revision A3 V1 Design of a Bi-Directional Flyback DC/DC Converter Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 2.4 Subsystems NLV20V2- 20 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 2.4.3COC48C48 PIC4901 COC49C49 Digital PIC5001 COC50C50 to Analog Converter Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM The Digital to AnalogLED converters1 (DACs) on the PCB havePIControl Signals01 as 1 function2 PIControlto Signals02 convert a PWM VNLVout2out2 PIR5201 INLILimPWMLimPWM signal from thePID1002 microcontroller into a steady DC signal. ThePIControl Signals03 reason 3 4 behindPIControl Signals04 this is that not Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 all microcontrollers have analog output capabilities, while most do have PWMIout2 outputs. The RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 circuit represents a comparator that compares the PWM signal to 1.56V. The comparatorVsetpPWM is fedPIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 with 5V, thus producing the same PWM signal at the output,PIControl Signals011 but 11 switching12 PIControl Signals012 between 0V and GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V instead of the normal 3.3V that most microcontrollers use. The PWM is passed through a 5V LPF that smooths the PWM signal to a steady voltage betweenH 0Veader and 7X2 5V, depending on the duty cycle of the signal.

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2 PIR1002 PIR1102 PID802 COD4 COD5 PID902 PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K COC28C28 COR23R23 COR24R24 PIC2701 1nF LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 PIU3044 PIC2901 330nF NLV10V1- V2-

Figure 2-14: Digital to Analog circuit implementation Current Mode Control Circuit Direction Comparator Measurement Bridge This implementation allows the converter to be controlled by almost any PWM signal which is NLVref1Vref1 5V DCODIR1presentIR1 on nearly all microcontrollers, and the generation of the DC signal is independent of PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 the voltage of the PWM signal, as long as its digital high is above 1.56V. The zenerNLImeas1Imeas diode1 D69 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 has been added to add the feature to limit Vsetp, and thusPIU404 COU4ACOU4BU4A Vout, in hardware on the converterPIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A itself, adding another level of safety.PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 Design of a Bi-Directional Flyback DC/DC Converter RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF 6.7uF COC47C47 UC2845N COR47R47 COR48R48 PIC4702 PIR4701 PIR4702 PIR4801 PIR4802

D D

Title Bi-Directional Flyback Converter - Groep B Size Number Revision A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8 1 2 3 4 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2 PIR1002 PIR1102 PID802 COD4 COD5 PID902 PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω2.4 Subsystems PIC2202 21 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 2.4.4 Direction Comparator30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K COC28C28 COR23R23 COR24R24 The directionPIC2701 1nF comparator section of the converter takes a digital signal from the microcontroller LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 (0V or 3V) and converts it into two inverted signals (0V or 5V) used to control the transistors PIU3044 PIC2901 330nF NLV10V1- Q3 and Q4 in the current mode control circuit, describedV2- in subsection 2.4.1. This way the microcontroller can determine the energy flow direction of the converter by the use of a single digital output signal.

Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1 PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 Figure 2-15: Direction signal comparator implementation COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 The 1.56V compare voltage is generated using a resistor divider network of 2.2K and 1K, Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 implemented through R36 and R39. The digital signal is fed into a different input of either 20k PIC4701 PIC4601 2.2nF comparator, ensuring that the output signals ON/OFF1 and ON/OFF2 are inverted. R33 6.7uF COC47C47 UC2845N COR47R47 COR48R48 PIC4702 PIR4701 PIR4702 PIR4801 PIR4802 and R43 function as pull-up resistors for the comparator as these do not have any internal pull-ups.

D D

Title Bi-Directional Flyback Converter - Groep B Size Number Revision A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8

Design of a Bi-Directional Flyback DC/DC Converter 2.4 Subsystems 22

2.4.5 Power Supply

The voltages needed for the converter subsystems are 12V and 5V. Both of these are generated by the power distribution section of the converter. The LM2575HVT IC family is used as they have a large input voltage range and an easy direct feedback network, which makes it easy to implement. Specific models used are the LM2575HVT-12 and LM2575HVT-5, corresponding to the 12V and 5V direct feedback variant of the general IC family. The IC’s inputs are connected through diodes to both sides of the converters high-power path. This results in the power distribution being fed from whichever of the sides has the highest voltage, negating the need for a separate power input. The large input range of the IC’s also ensures that the converter 1 can be powered throughout2 the whole input and3 output range specifications4 of 12V to 48V. 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's Figure 2-16: Power supply IC implementation 5V V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 The IC has a built in switchingCOD8 component, and togetherCOD9 with a diode, inductor and capacitor 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2 onPIR1002the outputPIR1102 it forms a simplePID802 COD4 and robust buck-converterCOD5 PID902 [31]. A LED has been added on the PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 5V rail to serve as visualGateOut1 feedback on the power state of the converter.300k 300k The capacitors on the COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 5V railVsense1.1 serveVsense1.2 as bypass capacitors for all the otherPIR1501 subsystemsPIR1502 C22 PIC2201 working with 5V [33]. 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K COC28C28 COR23R23 COR24R24 PIC2701 1nF LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 PIU3044 PIC2901 330nF NLV10V1- V2-

Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1 PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF 6.7uF COC47C47 UC2845N COR47R47 COR48R48 PIC4702 PIR4701 PIR4702 PIR4801 PIR4802

D Design of a Bi-Directional Flyback DC/DC Converter D

Title Bi-Directional Flyback Converter - Groep B Size Number Revision A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8 2.5 Use 23

2.5 Use

Initially, the flyback converter is designed for the eBike solar charging station located at the campus of the TU Delft. The charging station next to the EEMCS tower is equipped with 8 solar panels, capable of a total peak power of 2.3 kW, see figure 2-17[19]. The flyback converter will be a small but important link in this chain, capable of regulating a load voltage and limiting the output current, while being fed from an input DC voltage varying between 36V and 48V. The regulating and bi-directional aspect is put in place in order to make the converter applicable in other areas as well, for instance DC microgrids. The implemented control and measurement signals ensure easy operation of the converter when integrated into a larger system. For an example of the control network, the thesis "Control Network of Bi-Directional DC/DC Converters" by BAP group B1 can be con- sulted [35]. The proposed control network features a slave in the form of the Olimex LPC1343 development board, and the mas- ter as an ODROID C1+. The control net- work design use is best illustrated with the intended functionality of charging eBikes. A user deposits their eBike at the charging sta- tion and accesses a website used for track- ing and controlling the charging functionali- ties. Any command sent by the user is passed on through server, master and slave, to fi- nally arrive at the the corresponding con- verter. All measurements are readily available to the user, unbounded of location. Figure 2-17: eBike solar charging station

Design of a Bi-Directional Flyback DC/DC Converter Simulations

3.1 Uni-directional

To illustrate the workings of a flyback converter implementation with the UC2845 IC, a simpler, uni-directional simulation has been provided in figure 3-1. This circuit topology consists of the switching MOSFET on the primary side of the circuit, and the MOSFET on the secondary side acting as the flyback diode. The voltage set-point and current limit have been left out to focus on the fundamental operation first. The working of the simulated UC3842 is identical to the UC2845.

VIN K 0.95 VOUT

LP 20uH LS 20uH

R1 300k

+ V1 20 RLOAD 200 - Vgate C2 820uF C3 0.1uF C1 820uF R4 Imeas R2 30k 1k R3 0.01 R31 0.01

R10 High Power Imeas + 7.5k IC OA UC3842 measurements - Vref R6 Vfb Vcc Filtering Vgate 9k Isense Out R5 1k RtCt Gnd Feedback Network C4 2.2n

Figure 3-1: Uni-directional flyback converter implementation with UC2845

Design of a Bi-Directional Flyback DC/DC Converter 3.1 Uni-directional 25

Figure 3-2 shows the gate signal, output of the IC, and the Isense signal, input of the IC. The IC will generate a PWM signal of a certain frequency according to the resistor and capacitor values R10/C4. The duty cycle is internally limited to 50% for ease of operation. The internal error amplifier and PWM comparator determine the duty cycle of the PWM signal through the measurements of the voltage at Vfb and the shunt resistor (R3 ) voltage at Isense. Figure 3-2 evidently shows the gate signal falling to zero when the current measurement at Isense equals 1V. A simulation of the block diagram can be seen in appendixA figure A-3.

Figure 3-2: UC2845 MOSFET gate signal regulating.

Figure 3-3 shows the start-up of the converter. The current is not limited, and the voltage set- point has not been attached. The distinction can be made between the start-up and regulated load scenarios. When the IC does not measure its desired voltage output, it will allow maximum current to flow until the voltage rises enough to fulfill that criteria (0-5ms). When the voltage demand has been met, the IC will actively keep the voltage level steady while supplying current to the load (5-10ms). In this operating mode the IC will supply as much current as needed by the load until it reaches its maximum, which is set by the current limit.

Figure 3-3: Power converter start-up and regulated load electrical characteristics.

Design of a Bi-Directional Flyback DC/DC Converter 3.1 Uni-directional 26

Although the design of the feedback compensation network of the IC isn’t the main objective of this thesis, it is still of considerable importance to the functioning of the converter. The task of the feedback compensation network is to shape the loop gain such that it has a crossover frequency at a desired place with enough phase and gain margins for good dynamic response, line and load regulation, and stability [15]. For this bi-directional flyback converter a type- II compensation network is more than sufficient, with an integrator, one pole, and one zero. The values of the compensation network determine the actual transfer function parameters and should be calculated to achieve the desired cross-over frequency and gain- and phase-margin [16]. Figures 3-4 and 3-5 show the difference between a well-calculated feedback compensation network and a poorly-chosen one.

Figure 3-4: Settling characteristics of regulating IC with poorly-chosen feedback compensation network.

Figure 3-5: Settling characteristics of regulating IC with well-chosen feedback compensation net- work.

Design of a Bi-Directional Flyback DC/DC Converter 3.2 Bi-directional 27

3.2 Bi-directional

Figure 3-6 illustrates the bi-directional implementation of the converter. A second UC2845 and corresponding circuitry has been added, as well as a NPN on both Isense lines. The signal DIR is provided to the base of one transistor, while the inverted signal notDIR is provided to the other transistor. This ensures that only one IC will be active at all times, and the other will be inactive as Isense is pulled to Vref. Lastly, the voltage set-point and current limit have been implemented in the form of V5 and V6. The signals are applied to both IC’s, as they are only of influence on the active IC.

V1 K1 0.95 V2

LP 20uH LS 20uH

+ R5 300k R1 300k + RLOAD 200R V1 48 - V2 12 RLOAD1 200R - DIR notDIR Vsense2 Vsense1 DIR notDIR Imeas1 Imeas2 Vgate1 Vgate2 C2 820uF C3 0.1uF C1 820uF C31 0.1uF R8 30k R4 R9 R2 30k 1k 1k R3 0.01 R7 0.01

Vref Vref

DIR notDIR Imeas1 Imeas2 + + OA OA - - UC3842 UC3842 R11 R13 Vref Vref 9k Vsense1 9k Vsense2 Vfb Vcc Vfb Vcc R10 1k Vgate1 R12 1k Vgate2 Isense Out Isense Out RtCt Gnd RtCt Gnd

V3 DIR - + V4 Feedback notDIR Network - + Vsense2 V5 Filtering Vsense1 - + IC Imeas1 measurements V6 Imeas2 - + 3 High Power

Figure 3-6: Bi-directional flyback converter implementation with UC2845

Design of a Bi-Directional Flyback DC/DC Converter 3.2 Bi-directional 28

Figure 3-7 is a simulation of the converter switching energy direction. The direction signal is alternated, periodically switching source and load side, as well as the active IC. Evident in the simulation is the alternating current direction and the corresponding load voltage regulation.

Figure 3-7: Alternating energy direction in bi-directional flyback converter

Design of a Bi-Directional Flyback DC/DC Converter PCB Design

Printed Circuit Board (PCB) layout is important for switch-mode power supplies since there are high switching currents and sensitive control signals in the vicinity. A well-designed PCB leads to better performance, lower cost, higher reliability and reduced electromagnetic interfer- ence(EMI). There are a couple of general guidelines that have to be met: the current carrying traces must be as thick, short and direct as possible, the board must have a low-impedance ground and sensitive signals must be shielded from interference by noisy traces[11].

4.1 Design Layout

There are a few critical current paths in our flyback converter. An overview of the entire layout can be found in AppendixA figure A-2. The high power traces and transformer connection di pads are critical to the working of the switching converter. Some of these traces have high dt dv and dt originating from pulsating currents, while others have high RMS continuous current. These traces will introduce a significant amount of noise if not filtered and handled correctly. dv The high dt traces and the transformers will also contribute considerably to the generated EMI. Therefore, these are ideally placed well away from sensitive, analog signals on-board, as well as away from the microcontroller board. An illustration of these paths and the PCB implementation on our converter can be seen in figure 4-1 and figure 4-2, respectively. Both the pulsating and continuous current traces are placed distant from other sensitive, analog control signals. Furthermore, the traces consist of big copper pads to more effectively manage higher currents by providing a larger thermal mass and less resistance. The ground connection is done through a ground plane on the bottom layer. Due to this layout, there are four inevitable measurement hazards, encircled blue in figure 4-2, where the measurement will pick up extra noise due to the noisy ground plane directly underneath it.

Figure 4-1: Pulsating and continuous current paths in flyback converter

Design of a Bi-Directional Flyback DC/DC Converter 4.1 Design Layout 30

Figure 4-2: Pulsating and continuous current paths in flyback converter PCB

Another critical current path is the MOSFET gate sig- nal path. The IC decides whether to turn on or off the MOSFET depending on the internal circuitry. If the IC decides to turn the MOSFET on, it will try to do so as fast as possible. If no gate resistance is used, the IC’s output is not current limited and might re- sult in an unstable system. The current peaks up to 500mA that the IC draws when opening the gate are drawn from the bypass capacitor C38, which is therefore placed close to the IC’s pins. The current is returned to the IC through the shunt resistor and the ground plane. Ideally this path is as short and compact as possible to Figure 4-3: MOSFET gate signal current reduce noise picked up by the current loop and increase return path stability [28].

Design of a Bi-Directional Flyback DC/DC Converter Evaluation

5.1 Overview

In order to test the design of the flyback converter a testplan was made. The main goal is to check whether the requirements stated in section 1.3 are met. However, before the requirements can be looked at, it is important to populate and test the design’s subsystems independently, before looking at the system performance as a whole. First of all, the components of the power supply are placed on the PCB. To check whether the 5V and 12V line are working properly, the test-points 5V and 12V are used. When this part functions adequately the peak current mode control subsystem of both sides, including the MOSFETs are soldered onto the PCB. Here the gate of both the MOSFETs are measured to verify whether the gate receives the expected PWM signal of around 12V. This is initially done while the current(Ilim) and voltage(Vsetp) are not connected. After this the transformer and clamp circuit are placed on the PCB. This is the first time to check whether the regulating part is working correctly. Since the voltage setpoint isn’t connected the output is supposed to take on a constant value based on the voltage divider, described in section 2.1.

When the systems above are all working properly the other subsystems, described in section 2.4 can be soldered onto the PCB. First, the direction comparator is connected, as already described this subsystem has the function to control the direction of charging for the flyback. To check this the test-points DIR1 and DIR2 can be consulted, and based on the value of these pins one of the IC’s needs to be turned off, while the other is in normal operation. Secondly, the DAC is put in place. A reference PWM signal should be provided to check the low pass filter of this system. Lastly, the measurement bridge is verified. To check whether the system is working properly the scale reduction and noise filtering needs to be checked.

If the board’s elements and subsystems are all working, the next step is verifying the require- ments. To serve as input and outputs of the converter, a power supply capable of 0-48V/3A is required, as well as some sort of dummy load as an electronic load or variable power resistor for the output. First of all, the large input/output voltage range and current limiting needs to be tested. This is done by supplying the input with a voltage that is slowly increased from 0V to 48V. The converter needs to switch on at 12V. A voltage between 0 and 5V is supplied to Vsetp in order to check the output voltage range. The current limiting needs to be tested by supplying an analog signal to ILim. Other design specific requirements can be validated by checking various critical voltage signals as the shunt resistor voltage and the drain source voltage over the MOSFETs, as well as measuring overall system performance and efficiency

Design of a Bi-Directional Flyback DC/DC Converter 5.2 Prototype 32

5.2 Prototype

Figure 5-1 shows the prototype of the bi-directional flyback converter. The prototype consists of the elements described in chapters2 and4. The input and output can be found at the 2 screw terminals(A). The key components as described in chapter2 are found near the center of the board. The MOSFETs(B), the transformer(C) and the ICs(D) are all placed relatively close to each other. The subsystems are placed around these key elements. The power supply is placed on the left side of the PCB(E), the measurement bridge can be found at (F), the di- rection comparator can be found at (G) and the Digital to Analog converter can be found at (H).

The prototype has a couple of items that should be mentioned before delving further into evaluation of the circuit. First of all, the ground plane is missing, meaning that the ground connections of the components needed to be soldered manually. Secondly, some footprints appeared to be too small. This involved the shunt resistor, power supply capacitors and the transformer. Thirdly, the prototype uses simple headers to connect the converter with the microcontroller, which isn’t preferable when looking at mass production. Lastly, connections of Vsense1.1 and Vsense2.1 were switched and the placement of some test-points are odd.

Figure 5-1: Prototype of the flyback converter

Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 33

5.3 Testing and Results

The design requirements of section 1.3 are evaluated in this section and the results of the transformer are shown.

Transformer results A transformer was winded according to the design described in section 2.2.1. Using an impedance spectrum analyzer both the inductance, leakage inductance and AC resistance of both sides were measured. In the appendix the figures regarding these results can be found. The primary inductance was measured at 19.49 uH, the primary resistance at 340 mΩ, the secondary inductance was measured at 19.77 uH and the secondary resistance at 402mΩ. To measure the leakage inductance the secondary side of the transformer was short circuited as shown in figure 5-2. This way the reflected voltage is zero and the inductance measured is the leakage inductance. Same can be done for the secondary leakage inductance. The measurement resulted in Llk1 = 389, 3nH and Llk2 = 390, 4nH.

Figure 5-2: Measurement circuit for leakage inductance [26].

Voltage range and Current limit One of the first requirements to test is the large input and output voltage range. In order to be able to charge a variety of different batteries, as well as provide versatility in application the range requirement was chosen from 12V to 48V. Ideally, the switching noise produced by the converter topology is filtered out as well. The converter starts up when either one of the sides is fed with a voltage higher than 12V. The voltage applied to the Vsetp input subsequently determines the output voltage that the IC regulates to. Figures 5-3 and 5-4 show the input and output voltage lines. Evident is that the range requirement has been met and it has been determined that the range is controllable with an analog signal between 0 and 5V. The ripple in the output voltage line is limited to an acceptable level, which is a decent result.

Figure 5-3: Vin=48V, Vout=12V Figure 5-4: Vin=12V, Vout=48V

The current limit signal has been tested by connecting an analog DC signal to the ILim input of the converter. The DC signal is super positioned onto the current measurement entering the IC. The current is successfully limited, and consequentially the converter does not turn on when the limit is set to minimum.

Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 34

DCM operation The second requirement to test is the discontinuous operating mode of the converter. This can be examined by looking at the current sense voltages over both shunt resis- tors. Figure 5-5 shows these voltages with corre- sponding current axis. Yellow represents the primary inductor current, and blue the sec- ondary inductor current. The switching fre- quency is 125kHz, the duty cycle is 50% (max) and the input and output voltages are 24V and 48V respectively. The secondary current drops to zero well before the cycle ends, and thus the converter is working in DCM. The signal is very noise, which is probably due to a combination of factors including the ground plane, the measurement tools and the over- all PCB layout. According to equation 2-5: V in·D 24V ·0.5 Ip,peak = Lp·f = 20uH·125kHz = 4.8A Figure 5-5: DCM operation, Vin=24V, Vout=48V Which coincides with the actual current en- tering the primary inductor. If the K-factor was 1, Ip,peak would equal Is,peak with the specifications of our transformer, N1 = N2 and Lp = Ls. This would result in a current fall-time duty cycle of:

Is,peak·Ls·f 4.8A·20uH·125kHz D = V out = 48V = 0.25

Subsequently, one would expect an RMS current at the secondary side of [34]:

s r t D I = I · 1 = I · = 1.39A (5-1) RMS s,peak 3T s,peak 3

Although the results show a promising waveform, Is,peak and D are not quite equal to the calculated value. It can be concluded that the K-factor is probably not unity, the turns ratio not equal to 1 and the primary and secondary inductance not equivalent. This is a result of the manual winding of the transformer.

Switching frequency The IC output gate signal and corresponding current sense input can be seen in figure 5-6. The IC has no trouble with a switching frequency of 125kHz, thus meeting one of our wishes. The cause of the noise on the gate signal when it is low has not been found yet, but the culprit is probably the bad ground connections and a too large pull-down resistor on the gate. The current sense signal corre- sponds to the simulated signal in section3 figure 3-2. Once again the noise during switching is extremely high due to the ground connections among possible other origins, the ac- tive filter however does filter out a significant amount of the noise, if compared to figure 5-5. In this mea- surement the current does not ex- ceed the maximum allowed current, and consequentially the IC outputs a maximum duty cycle PWM. Figure 5-6: Vgs output and current sense signal Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 35

Power output The available power and voltage range of the converter largely determines the functionality and relevance of the product. As a requirement we wanted our converter to be able to deliver at least 110W/48V. The obvious test to perform to measure the power performance is to load the converter while the output voltage is set to 48V. Figure 5-7 shows the measured I-V curve of this trial. Evident is that the converter does not perform up to the required 110W (48V × 2A = 96W). As the current goes up, it reaches a point where the IC can no longer regulate the output to 48V, and the output voltage starts to drop according to current drawn. The reason for this voltage drop is that the IC is at its maximum duty cycle limit of 50%, so the power transfer from primary to secondary side can no longer increase without increasing the input voltage. Using the equations for power transfer in a flyback converter stated in section 2.2.1 and equa- tion 5-1, one can calculate the RMS output current at which the power transfer should saturate.

Our calculated RMS current and corresponding power output far ex- ceeds the actual performance. Thus, the RMS current at the secondary side is lower than expected, with a given input voltage and 50% max duty cycle. The cause of this prob- lem could be a number of things. First off, the current entering the primary inductor during the ON- state could be less than predicted, resulting in an overall lower power transfer saturation limit. Secondly, the resulting current in the secondary inductor during the OFF-state could also prove to be less than calculated. This could be Figure 5-7: Power transfer saturation, Vin=48V caused by unforeseen losses in the transformer or MOSFET, or a higher secondary inductance than calculated and measured. This, in turn, would also explain the lower power transfer saturation of the converter.

Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 36

Start-up and output signals The start-up procedure simulated in section 2-15 figure 3-3 was reproduced during a test with the actual converter and can be seen in figures 5-8 and 5-9. The measurements were done on the analog output signals destined to connect to a micro- controller. The measurement bridge does its job and the analog voltage measurement signals (yellow) are fairly stable and noise-free. The analog current measurement signals (blue) are quite stable as well, filtering and amplifying the current sense voltages of figure 5-5. Evident in the start-up figures is the output voltage being regulated to its final value, with a current peak coinciding with the rising edge of the output voltage. After the settling of the voltage, the nominal output current drops to a constant 0.2A. This clearly shows the likeness of the actual start-up behaviour to the simulated behaviour. The secondary current measurement (I2) does not function as expected.

Vin=V1, Vout=V2

Figure 5-8: Start-up behaviour, V1/I1 Figure 5-9: Start-up behaviour, V2/I2

Bi-directional functionality A major driving force behind a large part of our converter design was the bi-directional power transfer functionality. To realize this on the converter PCB, both ICs and MOSFETs have to work identically, the power transfer in the transformer should behave independent of direction, and the generated direction signal should turn off one of the IC’s while relinquishing control of the other. Figures 5-10 and 5-11 show the same start-up measurements as figure 5-8 and 5-9, but performed in the other direction. Evident is the duality between V1/V2 and I1/I2, clearly illustrating the bi-directional functionality.

Vin=V2, Vout=V1

Figure 5-10: Start-up behaviour, V1/I1 Figure 5-11: Start-up behaviour, V2/I2

Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 37

Controllability and Application The converter was designed in such a way that it would be controllable by any type of microcontroller, and was also stated as a requirement in section 1.3. The analog measurement output signals from the measurement bridge have been discussed and deemed functioning. The direction comparator subsystem has been tested and considered working. The last signal translation block is the DAC. Figures 5-12 and 5-13 show the DAC’s working, smoothing out the ILim and Vsetp PWM signals to a steady DC-value between 0 and 5V. The converter functions as expected with the DC control signals.

Figure 5-12: DAC of ILim Figure 5-13: DAC of Vsetp

This feature together with the bi-directionality satisfies another wish stated, which was that the converter is applicable in a variety of different circumstances, such as DC-smart grids or the automotive industry. The relatively easy control makes the converter suitable for low-cost, highly-integrated smart DC-grids, as well as for novel, high-speed power control in automotive vehicles. The power output however, limits the functionality significantly.

Robustness and Durability A critical parameter and driving force of the design of the flyback converter as stated in section 2.2.2, is the Vds over each MOSFET. Figure 5-14 shows the characteristic voltages during multiple switching cycles of our con- verter. The converter was tested with maxi- mum electrical conditions of Vin = 48V and Vout = 48V, where the reflected Vds on the switching MOSFET is highest (blue curve). The peak voltage measured is 154V, and oc- curs right after switching off the MOSFET. This is also the peak that one wants to clamp for a robust system. In our case, the cho- sen MOSFET can easily withstand this volt- age and we have therefore tested it without the clamp circuit in place. For robustness it could be considered to place the clamp circuit anyway, as this adds another level of safety. Figure 5-14: Vds over each MOSFET, Vin=48V, Vout=48V

Design of a Bi-Directional Flyback DC/DC Converter 5.3 Testing and Results 38

For the sake of component durability we inspected our converter with a thermal camera. The image can be seen in figure 5-15, with the corresponding electrical conditions. Evident are 3 hot spots, which coincide with the MOSFETs and the transformer (figure 5-1). The energy flow was from right to left, so it is the switching MOSFET that is getting considerably warm. The heat generated is directly proportional to the efficiency of the converter, so the temperature of the MOSFET would ideally be lower, but is not disastrous for the converter as the MOSFET has a rated operating temperature of 175°C.

Figure 5-15: Thermal image, Vin=24V, Vout=24V, I=1A Efficiency The efficiency of the converter has not been stated as a requirement or wish and the design has therefore not been centered around efficiency. However, the efficiency of a converter is of interest to the circuit design and pcb layout subsystems as it provides feedback on the effectiveness of the components, the placing of the components and traces, and yields some insight into the operating environments and applications the converter will be suitable for. A rough estimation of the efficiency of our converter under different electrical circumstances can be found in figures 5-16 and 5-17. Note that the efficiency does not exceed 80%, which can be seen as a fairly standard efficiency for non-optimized flyback converters [32].

Figure 5-16: Converter efficiency vs. output Figure 5-17: Converter efficiency vs. output current, Vin=48V current, Vin=24V

Design of a Bi-Directional Flyback DC/DC Converter 5.4 Assessment 39

5.4 Assessment

Overall the design works fairly decent. Some requirements have been achieved, yet others remain to be met. The accomplishment are the following:

• Working bi-directional flyback SMPS topology.

• Full input and output voltage range of 12V to 48V, controllable by a single PWM signal.

• Fast, analog cycle-to-cycle current limiting.

• SMPS operating at 125kHz.

• Stable voltage measurements of input and output.

• Stable primary side current measurement.

• Maximum power transfer of 96W.

The requirements and wishes that remain to be met:

• Maximum power rating of 110W at Vin=48V, Vout=48V.

• Stable current measurement on the secondary side.

• High Efficiency

• General robustness and reliability.

The current prototype works with any input and output ranging from 12V to 48V. However, the power output is still limited due to the power transfer saturation, and is not constant over the entire voltage range. The maximum power output lies at 96W with 48V input and output, with an efficiency of 75%. This is fairly close to the 110W target, but the efficiency is not as high as expected. As for the measurements supplied to the microcontroller, all but the secondary side current measurements work. Due to the flyback topology, it is possible to reflect the primary side measurements to the output by factoring in the non-ideal transformer and the circuit losses.

As for the high temperature produced by the MOSFET, it is not a major problem since the MOSFET can handle this, but for overall system efficiency, reliability and robustness it might be considered to add heat-sinks to the prototype. As for the general prototype robustness, the AUIRFR4620 MOSFET holds up to the high reflected voltages really well, but could be further protected by adding the proposed clamp circuit design.

The power rating requirement has not been met. The causes discussed in section 5.3 are at- tributed to prototype design, but some mistakes could have been made in an earlier step of macro-circuit design or transformer design.

The secondary-side current measurement failed to work. After inspection it was discovered that because of the current direction in the secondary shunt, the voltage potential of the current measurement is negative with respect to ground. Since our op-amp measurement implementa- tion does not support negative voltages, the measurements are non-existent.

Design of a Bi-Directional Flyback DC/DC Converter 5.5 Next steps 40

5.5 Next steps

Considering what has been achieved up to this point, there is still more work to be done before this converter can be considered as a viable option for the solar-powered eBike charging station.

Fulfill remaining requirements The most important requirement to fulfill is to reach the power rating of 110W. A possible solution to this, while not completely fixing the problem, is to lower the switching frequency. This increases the maximum power transfer of the converter. The negative side is that this is realized by increasing the peak currents in the transformer, thus producing more electrical stress to the circuit.

Secondly, it is of importance to check what is affecting the efficiency and robustness. By taking the generated heat and location into account, the source of the power loss can be detected. Using a more efficient MOSFET or transformer design might resolve this problem. Robustness, can be improved by applying the designed clamp circuit to the prototype and studying if this might improve the high temperatures measured at the MOSFET.

As for the current measurement on the secondary side, to solve this problem a method would have to be found with which the measurement bridge is also capable of measuring the negative voltages of the secondary shunt, and consequentially producing a usable current measurement.

Prototype improvements There are surely four points where the current prototype PCB can be improved; the ground-plane, footprints/components, heat dissipation and electrical connec- tions. For the ground-plane, make sure that it is included in the prototype seeing that a good ground connection has a big influence on the noise reduction, IC stability and overall system functioning. Furthermore, it is important to make sure the footprints on the PCB are all correct and easy to perform tests on. Some of our footprints were designed wrong, making the soldering and testing more difficult than it could be. Some traces on the prototype were connected falsely on the PCB design. This can of course always occur when designing the first prototype of a PCB, but these must be noticed and dealt with accordingly. Lastly, making the MOSFET on the PCB compatible with a heatsink would be ideal for optimizing the system in further stages.

Manufacturing considerations Although it is essential to first get the design completely work- ing, for further production of this converter the following might be essential in making the design manufacturing ready.

• The PCB size, and simultaneously the manufacturing price can be reduced by replacing all of the components by their surface-mount device (SMD) variant. This not only decreases size, but also positively influences the functioning of the converter by optimizing critical current paths.

• A housing should be designed, together with standardized connectors if the converter is to be used in the field.

• If the converter is to be brought on the market, EMI tests have to be passed. This involves a critical rethinking of the EMI reduction on the PCB.

Design of a Bi-Directional Flyback DC/DC Converter Bibliography

[1] Sergio Saponara, Luca Fanucci, Edoardo Biagi and Riccardo Serventi Hard macrocells for DC/DC converter in automotive embedded mechatronic systems, EURASIP Journal on Embedded Systems, 2016

[2] TU Delft Campus Green Village, http://www.sustainability.tudelft.nl/projects/ campus/ [3] Mr.S.Dhanasekaran, Mr.E.Sowdesh Kumar and Mr.R.Vijaybalaji, Multiple Output SMPS with Improved Input Power Quality, Department of Electrical Engineering, Indian Institute of Technology, Delhi,2010 [4] G. M. Ponzo, G. Capponi, P. Scalia and V. Boscaino, An Improved Flyback Converter, University of Palermo, May 2009 [5] Jean Picard, Under the hood of flyback SMPS design Texas Instruments Power Supply Design Seminar, 2010 [6] J. Formenti and R. Martinez, Design Trade-offs for Switch-Mode Battery Charger, Texas Instrument, 2004, pg. 1-2. [7] Transformer datasheet EPCOS, https://en.tdk.eu/inf/80/db/fer_07/etd_29_16_10.pdf [8] Colonel Wm. T. McLyman, Transformer and Inductor Design Handbook, 3rd ed., Marcel Dekker, Inc, 2004. [9] Dr.-Ing. Arthur Seibt, Vienna, The Flyback DC-DC Converter, Bodo’s Power Systems, October 2016, pg. 62-69. [10] Dr.-Ing. Arthur Seibt, Vienna, The Flyback DC-DC Converter, Bodo’s Power Systems, November 2016, pg. 70-83. [11] Henry J. Zhang, PCB Layout Considerations for Non-Isolated Switching Power Supplies, Application note 136, Linear Technology, June 2012 [12] Sameer Kelkar, The Fundamentals of Flyback Power Supply Design, Power Integrations, Inc. (San Jose, CA) , 2012. [13] Wikipedia, the free encyclopedia https://en.wikipedia.org/wiki/Proximity_effect_(electromagnetism)

Design of a Bi-Directional Flyback DC/DC Converter 42

[14] Infineon Technologies, Automotive MOSFETs: Prouct Overview, 2016

[15] Hangseok Choi, Ph. D, Practical Feedback Loop Design Considerations for Switched Mode Power Supplies, Fairchild Semiconductor Power Seminar, 2010 - 2011.

[16] H. Dean Venable, The K Factor: A new mathematical tool for stability analysis and syn- thesis, Venable Industries, Inc, 1983.

[17] Introduction to SMPS Control Techniques, Microchip Technology, inc., WebSeminar, 2006.

[18] Loyd Dixon, Designing planar magnetics, Texas Instruments.

[19] Delta, TU Delft,http://www.ridleyengineering.com/design-center-ridley-engineering. html

[20] Loyd H. Dixon, Jr Eddy Current Losses in Transformer Windings and Circuit Wiring, Texas Instruments, 2003.

[21] Gwan-Bon Koo/ Ph. D Application Note AN-4147: Design Guidelines for RCD of Flyback Converters, Fairchild Semiconductor, 2006.

[22] Ashraf A. Mohammed and Samah M. Nafie Flyback Converter Design for Low Power Application, Sudenese Electricity Distribution Company.

[23] Andrew Smith Calculating power loss in switching MOSFETs, Power Integrations, Inc., 2011.

[24] Toshiba Corporation. Power MOSFET: Selecting MOSFETs and Consideration for Circuit Desing, 2016.

[25] Gurkan Tosun, Omer Cihan Kivanc, Ender Oguz, Ozgur Ustun, and R. Nejat Tuncay Development of High Efficiency Multi-Output Flyback Converter for Industrial Applications

[26] VOLTECHNOTES Measuring Leakage Inductance, Voltech Instruments Ltd., 2001.

[27] Hector Ortega Jimenez AC resistance evaluation of foil, round and Litz conductors, Chalmer’s university of technology, 2013.

[28] Henry J. Zhang, PCB Layout Considerations for Non-Isolated Switching Power Supplies, Linear Technology, Application note 136, June 2012.

[29] Infineon Technologies, HEXFET power MOSFETs, AUIRFR4620 datasheet, May 2015.

[30] Texas Instruments, Current Mode PWM Controller, UC2845N datasheet, May 2002.

[31] Texas Instruments, Switching Voltage Regulators, LM2575HV datasheet, April 2013.

[32] Brian Huffman, Efficiency and Power Characteristics of Switching Regulator Circuits, Lin- ear Technology, Application note 46, November 1991.

[33] Ken Kundert, Power Supply Noise Reduction, The Designer’s Guide Community, Version 4, January 2004.

[34] Adrian Nastase, https://masteringelectronicsdesign.com/ how-to-derive-the-rms-value-of-a-triangle-waveform/.

[35] BAP group B1, Control Network of Bi-Directional DC/DC Converters, TU Delft, June 2017.

Design of a Bi-Directional Flyback DC/DC Converter Appendix

1 2 3 4 5 6 7 8

Connectors

Power Distribution COGate1Gate1 COGate2Gate2 COD1 V1 V1+ NLV10V1+ PID101 PID102 CO5V5V 2 PIV102 COD2 V1- 1 PIV101 PIGate101 PIGate201 V2+ COU1U1 LM2575HVT-5 COL2L2 GNLGateOut1ateOut1 GNLGateOut2ateOut2 PID201 PID202 5V COU2U2 LM2575HVT-12 LCOL11 COInput 12V 1 2 PI5V01 JCOJ11 PIU101 Input Output PIU102 PIL201 PIL202 1 2 PIR5101 V2 1 NL5V5V PIInput01 PIU201 Input Output PIU202 PIL101 PIL102 F VCC PIJ101 F 4 NLV20V2- 2

F PIU104 PIV202 PIJ102

A O A

D / Feedback 2 D- F 4 PI12V01 PIC101 COR51R51 NLV20V2+ 3

PIU204 N N PIV201 PIJ103 O PID1102 PIC901 PIC302 PIC402 PIC502 PIC701 PIC802 PIC4802 PIC4902 PIC5002 D / Feedback PID302 1 D+ PIC1001 G O COD11 PIR5102 4 N N COD3 COC1C1 COC9C9 GND PIJ104

G O PIC201 CO12V PIC102 COC7C7 S V1- COC10C10 12V 100uF PIU103 PIU105 330uFPIC902 PIC301COC3C 3 PIC401 COC4C4 PIC501 COC5C5 PIC702 PIC801 COC8C8 PIC4801 COC48C48 PIC4901 COC49C49 PIC5001 COC50C50 Shield PIJ10S

PIC1002 COC2C2 3 5 PID1001 100uF PIU203 PIU205 PID301 PID1101 CCOControlontrol SiSignalsgnals 3 5 330uFPIC202 COD10D10 USB B VNLVout1out1 NLVsetpPWMVsetpPWM LED1 PIControl Signals01 1 2 PIControl Signals02 VNLVout2out2 PIR5201 INLILimPWMLimPWM PID1002 PIControl Signals03 3 4 PIControl Signals04 Iout1 COR52R52PIR5301 NLDIRDIR PIControl Signals05 5 6 PIControl Signals06 Iout2 RCOR5353 PIR5401 PIGND101 PIControl Signals07 7 8 PIControl Signals08 PIGND501 PIGND201 PIGND601 PIGND301 PIGND401 VsetpPWM PIR5202 COR54R54 PIControl Signals09 9 10 PIControl Signals010 ILimPWM PIR5302 COGND1 PIControl Signals011 11 12 PIControl Signals012 GND1 COGND5 COGND2 COGND6 COGND3 COGND4 DIR PIR5402 GND5 GND2 GND6 GND3 GND4 PIControl Signals013 13 14 PIControl Signals014 5V Header 7X2

Bi-Directional Flyback Converter Topology COV1V1 COV2V2 DAC's 5V

V1+ PIV101 Transformer PIV201 V2+ PIR701 VCOVsetpsetp PITransformer03 COTransformerPITransformer01 PIU3088 COR7R7 VsetpPWM 2.7k PID801 PID901 3 PIU303 COR8R8 COD8 COD9 1 PIR702 PIVsetp01 VNLVsetpsetp 1V56 1 PIU301 PIR802 PIR801 2 PIR1002 PIR1102 PID802 COD4 COD5 PID902 PIU302 COU3ACOU3BU3A 1K PIC1802 PID6902 PIR1202 PIR1302 LM393P COC18C18 COR10R10 COR11R11 PITransformer02 PITransformer00

PID402 PID401 PID501 PID502 COR12R12 COR13R13 4 330nF 300k 300k PIU304 PIC1801 DCOD6969 GateOut1 300k 300k COR14R14 PID6901 B PIC2002 PIC2102 PIR1001 PIR1101 PIC1901 COC19C19 COR15 GateOut2 PIR1201 PIR1301 PIC2302 PIC2402 B COC20 COC21C21 NLVsense101 PIR1401 PIR1402 PIQ101 PID602 PID702 PIQ201 R15 COC22 COC23C23 COC24C24 C20 Vsense1.1 Vsense1.2 PIR1501 PIR1502 C22 PIC2201 5V PIC2001 PIC2101 820uF 10Ω COQ1 COD6 COD7 COQ2 NLVsense201 PIC2301 PIC2401 47pF 47pF PIQ102 PIQ202 820uF Vsense2.1 Vsense2.2 47pF 47pF PIR1602 PIR1702 PIC1902 10Ω PIC2202 PIR901 ICOILimLim

COR16R16 Imeas1 Imeas2 8 COR17R17 PIR5001 PID601 PID701 PIR4901 PIR2002 PIR2102 PIU308 RCOR99 30k 1k 1k ILimPWM 2.7k 30k COR50R50 PIQ103 PIQ203 COR49R49 COR20R20 COR21R21 5 PIR1802 PIR1801 PIR1902 PIR1901 PIU305 COR22R22 PIR1601 PIR1701 1M 1M 30k 30k 7 PIR902 PIILim01 INLILimLim COR18R18 COR19R19 PIC2702 NL1V561V56 2 PIU307 PIR2202 PIR2201 PIC2802 PIR5002 PIR2302 PIR2402 PIR4902 PIR2001 PIR2101 6 COC27C27 PIU306 U3B 1K COC28C28 COR23R23 COR24R24 PIC2701 1nF LM393P PIC2902 CCOC2929 PIC2801 1nF 0.01Ω 0.01Ω PIR2301 PIR2401 PIU3044 PIC2901 330nF NLV10V1- V2-

Current Mode Control Circuit Direction Comparator Measurement Bridge

NLVref1 Vref1 5V DCODIR1IR1 PIU12088 PIU4044 U4B Vsense2.1 PIQ301 COQ3Q3 NLImeas1Imeas1 3 COR25R25 4 5 MCP602-I/P COU6U6 ON/OFF1 PIU1203 PIU404 COU4ACOU4BU4A PIU405 RCOR2626 GateOut1 PIQ302 4 Imeas1 1 PIDIR101NLON0OFF1O N/OFF1 10K 7 NLIout1Iout1 1 6 PIU704 ILim 1 PIU1201 3 MCP602-I/P PIU407PIR2601 PIR2602 PIU601 COMP OUTPUT PIU606 COR27R27 2 COU12ACOU12BU12A PIR2502 PIR2501 PIU403 6 COC31 3 PIU1202 1 Vout1 PIU406 10K C31 NLIsense1Isense1 PIU703PIR2701 PIR2702 LM393P NLVsense102Vsense1.2 PIC3002 COC30C30 PIU401 2 3 PIQ303 1 PIR3301 2 PIC3202 PIC3102 PIC3101 PIU602 VFB ISENSE PIU603 PIU701 COR33R33 PIU402 COC33 2 4 100nFPIC3001 8 COC32C32 C33 COR28 Vref1 COR29R29 PIU702 PIU1204 100k PIU408 R28 8 5V PIC3201 100nF PIC3302 PIC3301PIR2801 PIR2802 VREF PIU608PIR2901 PIR2902 PIR3302 5V PIU4088 COU7AU7A COR36R36 CCOC34PIC340134 PIC3402 C 6.8K 8 1V56 5V C 4 PIU708 PIR3602 PIR3601 COR31R31 RCOR3232 RT/CT PIU604 5V DIR 12V PIR3901 2.2K PIR3101 PIR3102 PIR3201 PIR3202 Vsetp COR30R30 PIC3702 COC36C36 COR39R39 PIR3001 PIR3002 7 5 COC37C37 PIU607 VCC GROUND PIU605 PIC3602 PIC3601 1K PIR4302 20k PIC3801 PIC3701 2.2nF COR43R43 COR34 COR35 4 6.7uF COC38C38 UC2845N R34 R35 PIR3902 5V 100k PIU504 U5B PIR3401 PIR3402 PIR3501 PIR3502 INLImeas2meas2 8 RCOR3737 4 5 MCP602-I/P PIC3802 PIU1208 PIR4301 PIU504 UCOU5ACOU5B5A PIU505 10K 7 RCOR3838 NLIout2Iout2 5 3 MCP602-I/P PIU507PIR3801 PIR3802 NLVref2Vref2 PIU1205 PIR3702 PIR3701 PIU503 6 7 NLON0OFF2ON/OFF2 1 Vout2 PIU506 10K 2 PIU1207 NLVsense202Vsense2.2 PIC3902 CCOC3939 PIU501 PIC4002 6 U12B 2 Vsense1.1 PIQ401 COQ4Q4 PIU1206 PIU502 CCOC4040 LM393P PIDIR201 100nFPIC3901 8 COU9U9 ON/OFF2 PIU508 PIC4001 100nF GateOut2 PIQ402 4 Imeas2 5V

1 6 PIU804 ILim 4 8 PIU901 COMP OUTPUT PIU906 COR40R40 PIU1204 DCODIR2IR2 PIU508 CCOC4141 COC43C43 3 5V PIC4101 PIC4102 NLIsense2Isense2 PIU803PIR4001 PIR4002 2 3 PIQ403 1 RCOR4141 PIC4302 PIC4301 PIU902 VFB ISENSE PIU903 PIU801 PIR4101 PIR4102 PIR4201 PIR4202 COC44C44 2 COR44 Vref2 COR45R45 PIU802 RCOR4242 R44 8 PIC4402 PIC4401PIR4401 PIR4402 VREF PIU908PIR4501 PIR4502 COU8AU8A 6.8K 8 4 PIU808 RT/CT PIU904 5V 12V PIC4602 Vsetp COR46R46 COC45C45 PIR4601 PIR4602 7 5 COC46C46 PIU907 VCC GROUND PIU905 PIC4501 PIC4502 20k PIC4701 PIC4601 2.2nF 6.7uF COC47C47 UC2845N COR47R47 COR48R48 PIC4702 PIR4701 PIR4702 PIR4801 PIR4802

D D

Title Bi-Directional Flyback Converter - Groep B Size Number Revision A3 V1 Date: 20/06/2017 Sheet of File: C:\Users\..\BEP_BiDirectionalFlyback.SchDDrocawn By: 1 2 3 4 5 6 7 8

Figure A-1: Altium schematic of the bi-directional flyback converter

Design of a Bi-Directional Flyback DC/DC Converter 44

PATransformer01 PATransformer03

COGND6 COTransformer PAV101 PAV201 COC19 PAGND601 COC22

COR10 COC21 COR11 COC20 COR12 COR13 PAV102 PAC1901 PAR1002 PAC2102 PAR1102 PAC2002 PAD402 PAD502 PAC2302 PAR1202 PAC2402 PAR1302 PAC2201 PAV201 COV1 COV2 PAC2101 PAC2001 PAC2301 PAC2401 COD4 PATransformer00 COD5 COC23 COC24 PAV101 PAC1902 PATransformer02 PAC2202 PAV202 PAR1001 PAR1602 PAR1702 PAR1101 PAD401 PAD501 PAR1201 PAR2002 PAR2102 PAR1301 COU2 COR16 COR17 PAD801 PAD901 COR20 COR21 COL1 PAD301 PAL101 PAU205 COC10 PAU204 PAC1002 COD8 COD9 PAU203 PAR1601 PAR1701 PAR2001 PAR2101 COU12 COC4 PAU202 CODIR2 PAU1201 PAU1208 PAC402 PAC401 PAU201 PAC1001 PAD802 PAD902 PADIR201 PAD302 COD1 PAU1202 PAU1207 PAD102 PAD101 COR49 COD7 PAR4301 PAR4302COR43 COD3 COR50 PAR4902 PAR4901 PAU1203 PAU1206 PAR3301 PAR3302COR33 PAC202 PAR5002 PAR5001 PAD603 COGND3 COGND4 PAD703 PAR4402 PAR4401 PAU1204 PAU1205 PAD202 PAD201 COQ1 PAL102 COD6 PAGND301 PAGND401 COQ2 COR44 COR36 PAR3602 PAR3601 PADIR101 COC33 PAD602 PAQ201 PAD702 PAC4401 PAQ101 PAC4301 COD2 COR39 PAC201 COQ3 COGate1 COGate2 PAR3901 PAR3902 CODIR1 COU1 PAC101 PAR2801 PAC3301 PAC3302 PAD601 PAD701 COR19 COC43 COC44 COD69 COU3 COC2 PAQ303 PAQ301 PAGate101 PAGate201 COC5 COL2 PAR1501 PAC4402 PAD1102 PAU101 PAQ302 PAR1402 PAQ102 PAQ103 PAR2302 PAR1801 PAQ202 PAQ203 PAR1902 PAR1901 PAC4302 PAD6902 PAU301 PAU308 PAC502 PAC501 COR28 PAC3101 PAC3102 COR14 COR37 PAILim01 COILim PAL201 PAU102 PAC102 COR18 COC28 COR15 COR24 COC46 COU6 PAR3702 COR22 PAU103 COC1 COR23 PAC2802 PAC2801 PAR2401 PAR2402 PAU302 PAU307 PAU104 COC31 PAC4602 PAC4601 PAR2202 PAR2201 PAU601 PAU608 PAR2901 PAC2702 PAU303 PAU306 PAU105 PAR2802 PAR3002 COC38 PAU602 PAU607 PAC3801 PAC4702 PAU905 PAU904 PAR4502 COC27 COU8 PAU304 PAU305 PAR902 PAR901 COR9 PAR4701 COC50 PAC902 PAC301 PAR1502 PAU906 PAU903 PAU801 PAU808 COR7 PAD1101 PAU603 PAU606 PAR1401 PAR2301 PAR1802 COR45 PAC2701 PAC5002 PAD6901 PAR702 PAR701COVsetp COR30 PAC4701 COC47 PAU802 PAU807 COD11 PAU604 PAU605 PAC3802 PAU907 PAU902 COR47 PAR3701 COR8 PAR802 PAR801 PAVsetp01 COC37 COR29 PAU701 PAU708 COU9 PAR4602 PAC901 PAC302 PAC4902 PAU803 PAU806 COR52 PAR5202 PAR5201 PAU908 PAU901 PAR5301 PAR5302 COR53 COC9 COC3 PAC3701 PAC3702 PAR2902 PAU702 PAU707 PAC5001 PAL202 COC41 COC39 COC18 PAR3001 COR34 PAR4501 COR46 PAU804 PAU805 COC29 PAU703 PAU706 PAQ402 PAC4102 PAC4101 PAC3902 PAC3901 PAR3401 PAR3402 COU7 PAC4901 PAR4702 COU5 COC8 PAC2902 PAC2901 PAC1801 PAC1802 PAC701 PAQ401 PAQ403 PAR4001 PAU704 PAU705 COC49 PAU501 PAU508 PAC802 COQ4 COC45 PAC4501 COC40 COR54 COC7 COC36 PAC3602 PAC3601 PAR4601 PAU502 PAU507 PAR3801 PAR3802 PAInput01 COR38 PAR5402 PAU401 PAU408 PAC4802 PAC4801 COC48 PAC4002 PAC4001 COInput PAC702 COR35 COR48 PAU503 PAU506 PAC801 PAR4201 PAR4202 COR32 COR42 PAD1002 COJ1 PAR3502 PAR3501 PAU402 PAU407 PAR4802 PAR4801 PAC4502 PAR3102 PAR3202 PAR2601 PAU504 PAU505 COControl Signals PAGND101 PAGND201 PAU403 PAU406 PAD1001 PAR2502 PAR2501 PAC3402 PAR4002 COGND1 COGND2 COR41 PAControl Signals02 PAControl Signals04 PAControl Signals06 PAControl Signals08 PAControl Signals010 PAControl Signals012 PAControl Signals014 COR51 PAJ101 PAJ102 PAJ103 PAJ104 PAJ105 PAJ10S COR40 COGND5 COD10 COR25 PAU404 PAU405 PAR2701 PAR2702 PAR5102 PAR5101 PAJ10M COR26 PAR4101 PAR4102 PAGND501 PAControl Signals01 PAControl Signals03 PAControl Signals05 PAControl Signals07 PAControl Signals09 PAControl Signals011 PAControl Signals013 PAR5401 PA12V01 PA5V01 COU4 COR31 COR27 PAC3002 PAC3001 PAC3401 CO12V CO5V COC34 PAC3202 PAC3201 COC32 COC30 PAR3101 PAR3201 PAR2602

Figure A-2: Altium PCB of the bi-directional flyback converter

Design of a Bi-Directional Flyback DC/DC Converter 45

+ V1 48 - ROAD 200R A

R15 10k

+ - OA R14 9k

UC2845 block diagram

S Vpeak Q + R Comp - Vea - OA +

Figure A-3: Block diagram implementation of the UC2845 internal control loop

Figure A-4: Measurement of primary inductance at 125KHz L1 = 19, 49µH and R1 = 340, 69mΩ

Design of a Bi-Directional Flyback DC/DC Converter 46

Figure A-5: Measurement of secondary inductance at 125KHz L2 = 19, 77µH and R2 = 402, 35mΩ

Design of a Bi-Directional Flyback DC/DC Converter Errata

1. From the appendix, figures A-4 and A-5 have been corrected to figures A-6 and A-7.

Figure A-6: Copper, 1.25mm, primary inductance, @125KHz, L1 = 19, 49µH and R1 = 340, 69mΩ

Design of a Bi-Directional Flyback DC/DC Converter 48

Figure A-7: Copper, 1.25mm, secondary inductance, @125KHz, L2 = 19, 77µH and R2 = 402, 35mΩ

2. The formulas stated in section 2.2.1 are based on the paper from Seibt[9], [10]. Further- more, In section 2.2.1, an initial estimation is made regarding the resistance of the wire. However, there is another factor that could be calculated which is the resistance of the core itself. The resistance of the core is a constant based on the dimensions of the core and the gap. The following formula is valid,

le + l µr g Rm = (A-1) µo · Ae with,

• Rm, resistance of the core • e, effective length of the core

• µr, permeability of the core • lg, effective length of the air gap

• µo, permeability in free space

Design of a Bi-Directional Flyback DC/DC Converter