<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://wiki.opensourceecology.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mransaw</id>
	<title>Open Source Ecology - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://wiki.opensourceecology.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Mransaw"/>
	<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/wiki/Special:Contributions/Mransaw"/>
	<updated>2026-05-05T00:02:37Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.39.13</generator>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=User:Mransaw&amp;diff=310299</id>
		<title>User:Mransaw</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=User:Mransaw&amp;diff=310299"/>
		<updated>2025-08-10T17:17:58Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;I&#039;m an Electronics Technologist and Electrical &amp;amp; Computer Engineering student who is interested in sustainable technologies, permaculture, and agriculture/agroforestry. Anything involving food production or cyclical systems is very interesting to me. I have some experience with organic farming as well (maintaining 1 acre market garden and livestock). Some additional credentials/skills:&lt;br /&gt;
- small-scale mushroom production&lt;br /&gt;
- basic beekeeping&lt;br /&gt;
- building electronic circuits/systems&lt;br /&gt;
- programming in C(++), Python, JavaScript, YAML&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=273741</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=273741"/>
		<updated>2022-07-17T05:00:18Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Sat Jul 16, 2022=&lt;br /&gt;
Researched open source inverters:&lt;br /&gt;
https://github.com/transistorgrab/OSSI&lt;br /&gt;
https://github.com/SDI-SoftwareDefinedInverter/TAPAS&lt;br /&gt;
&lt;br /&gt;
=Wed Dec 26, 2018=&lt;br /&gt;
Simplified [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter buck/boost converter design] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck.2FBoost_Converter_Module bill of materials]&lt;br /&gt;
&lt;br /&gt;
=Sun Dec 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Learning about 555 Timers and PWM]&lt;br /&gt;
&lt;br /&gt;
=Mon Nov 19, 2018=&lt;br /&gt;
Learning about PWM and [https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator astable multivibrators]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working. [https://drive.google.com/file/d/1KmuKzSFBM1K2_-l8ISi56kYi1zcYRf6x/view?usp=drivesdk]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183628</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183628"/>
		<updated>2018-12-28T01:16:43Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Modules */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
[https://electronics.stackexchange.com/questions/167458/flash-and-eeprom Flash and EEPROM]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($5, higher resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183627</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183627"/>
		<updated>2018-12-28T01:16:24Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Flyback Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
[https://electronics.stackexchange.com/questions/167458/flash-and-eeprom Flash and EEPROM]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($5, higher resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183626</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183626"/>
		<updated>2018-12-28T00:42:29Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Research */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
[https://electronics.stackexchange.com/questions/167458/flash-and-eeprom Flash and EEPROM]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($5, higher resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183625</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183625"/>
		<updated>2018-12-28T00:31:36Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($5, higher resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183624</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183624"/>
		<updated>2018-12-27T22:28:26Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($4, higher resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183623</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183623"/>
		<updated>2018-12-27T22:27:48Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($4, highest resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183622</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183622"/>
		<updated>2018-12-27T22:27:31Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
Microcontroller: [https://www.digikey.com/short/pcf1cb IC MCU 32BIT 64KB FLASH 44LGA] ($4, highest resolution ADC) or [https://www.digikey.com/short/pcf1tq IC MCU 32BIT 128KB FLASH 64LQFP] ($6, similar specs to Arduino Mega)&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183615</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183615"/>
		<updated>2018-12-27T21:48:48Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Voltage Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] with isolation but without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183613</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183613"/>
		<updated>2018-12-27T21:44:53Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Voltage Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/pcfvjt Similar DC/DC converter] without adjustable output or display: ~$80&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183611</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183611"/>
		<updated>2018-12-27T20:32:59Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* User Interface */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcfdp9 IC PWR RELAY N-CHAN U-DFN3030-10]&lt;br /&gt;
&lt;br /&gt;
LCD: [https://www.digikey.com/short/pcfdpd LCD 4.5 DIGIT .4&amp;quot; TRANSFL]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183607</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183607"/>
		<updated>2018-12-27T19:03:11Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Buck-Boost Converter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcf2vw TRANS 3NPN DARL 100V 4A 8-SIP]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183606</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183606"/>
		<updated>2018-12-27T19:02:45Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Possible Parts */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====User Interface=====&lt;br /&gt;
BJTs: [https://www.digikey.com/short/pcf2vw TRANS 3NPN DARL 100V 4A 8-SIP]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183605</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183605"/>
		<updated>2018-12-27T18:57:49Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Microcontroller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
* ~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
* 2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
* at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
* 1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
* 5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;minimum requirements:&#039;&#039;&#039; 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183604</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183604"/>
		<updated>2018-12-27T18:55:08Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Microcontroller */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
2 I/o pins for rotary encoder and power switch&lt;br /&gt;
&lt;br /&gt;
at least 4 I/O pins for SPI control of digital potentiometer&lt;br /&gt;
&lt;br /&gt;
1 ADC for output voltage sensing&lt;br /&gt;
&lt;br /&gt;
5V output to power other ICs would be nice&lt;br /&gt;
&lt;br /&gt;
minimum requirements: 17 I/O pins, 1 ADC&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183601</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183601"/>
		<updated>2018-12-27T18:24:10Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Requirements */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
===Microcontroller===&lt;br /&gt;
~11 I/O pins for 7-segment display&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=183587</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=183587"/>
		<updated>2018-12-27T00:43:40Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Wed Dec 26, 2018=&lt;br /&gt;
Simplified [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter buck/boost converter design] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck.2FBoost_Converter_Module bill of materials]&lt;br /&gt;
&lt;br /&gt;
=Sun Dec 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Learning about 555 Timers and PWM]&lt;br /&gt;
&lt;br /&gt;
=Mon Nov 19, 2018=&lt;br /&gt;
Learning about PWM and [https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator astable multivibrators]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working. [https://drive.google.com/file/d/1KmuKzSFBM1K2_-l8ISi56kYi1zcYRf6x/view?usp=drivesdk]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183586</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183586"/>
		<updated>2018-12-27T00:41:34Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Arduino code for voltage sensing and control */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement SPI to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183585</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183585"/>
		<updated>2018-12-27T00:41:11Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Arduino code for voltage sensing and control */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/pcqbwv digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183584</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183584"/>
		<updated>2018-12-27T00:40:28Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?).&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- design PCB&lt;br /&gt;
- research microcontroller options for voltage control and display&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183583</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183583"/>
		<updated>2018-12-27T00:36:41Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Buck-Boost Converter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1000 height=500&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183582</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183582"/>
		<updated>2018-12-27T00:34:45Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Bill of Materials */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
==Buck/Boost Converter Module==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183581</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183581"/>
		<updated>2018-12-27T00:34:14Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
=Bill of Materials=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/spreadsheets/d/e/2PACX-1vRuPxZK24d7GdTwqzsNq4B9LgWyOsCs7YT73sC7Tw-9Zj6UBEbbaalxfD7FPRa9jBx9acQkj_Dh0Ln1/pubhtml?widget=true&amp;amp;amp;headers=false&amp;quot; height=500 width=900&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/spreadsheets/d/17jSD9Ku_RUkiSY8j9lGMdcOUFeJdl2H1anW0THEKH-g/edit?usp=sharing edit]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=183580</id>
		<title>File:BuckBoostSch.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=183580"/>
		<updated>2018-12-27T00:10:00Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: Mransaw uploaded a new version of File:BuckBoostSch.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=183579</id>
		<title>File:BuckBoostSch.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=183579"/>
		<updated>2018-12-27T00:04:01Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: Mransaw uploaded a new version of File:BuckBoostSch.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183508</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183508"/>
		<updated>2018-12-24T05:52:59Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Main Circuit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP] and 2 x 16kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183178</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183178"/>
		<updated>2018-12-17T16:19:38Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Buck-Boost Converter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN] and 50 kOhm resistor, or [https://www.digikey.com/short/pcqbwv IC DGTL POT 100K SPI 16-TSSOP]&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=183093</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=183093"/>
		<updated>2018-12-17T00:58:21Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Sun Dec 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Learning about 555 Timers and PWM]&lt;br /&gt;
&lt;br /&gt;
=Mon Nov 19, 2018=&lt;br /&gt;
Learning about PWM and [https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator astable multivibrators]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working. [https://drive.google.com/file/d/1KmuKzSFBM1K2_-l8ISi56kYi1zcYRf6x/view?usp=drivesdk]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183086</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183086"/>
		<updated>2018-12-17T00:35:28Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://youtu.be/i0SNb__dkYI How a 555 Timer works]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183083</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183083"/>
		<updated>2018-12-17T00:32:33Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://howtomechatronics.com/how-it-works/electronics/how-to-make-pwm-dc-motor-speed-controller-using-555-timer-ic/ 555 Timer for PWM]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183082</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=183082"/>
		<updated>2018-12-17T00:26:38Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Main Circuit */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B] or [https://www.digikey.com/short/pc3rrv IC REG CTRLR BUCK-BOOST 20QFN] or 555 Timer&lt;br /&gt;
&lt;br /&gt;
555 Timer: [https://www.digikey.com/short/pc3r5z IC OSC SINGLE TIMER 3MHZ 8-SOIC]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=182912</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=182912"/>
		<updated>2018-12-10T19:01:06Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Mon Nov 19, 2018=&lt;br /&gt;
Learning about PWM and [https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator astable multivibrators]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working. [https://drive.google.com/file/d/1KmuKzSFBM1K2_-l8ISi56kYi1zcYRf6x/view?usp=drivesdk]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=182177</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=182177"/>
		<updated>2018-11-26T16:44:14Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration or simplify configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=181987</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=181987"/>
		<updated>2018-11-20T06:42:17Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Mon Nov 19, 2018=&lt;br /&gt;
Learning about PWM and [https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator astable multivibrators]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working.&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181986</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181986"/>
		<updated>2018-11-20T06:41:19Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Voltage Conversion */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Multivibrator#Astable_multivibrator Astable multivibrator]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181840</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181840"/>
		<updated>2018-11-16T16:32:55Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- simulate main circuit&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181647</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181647"/>
		<updated>2018-11-14T07:01:22Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Flyback Configuration */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181646</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181646"/>
		<updated>2018-11-14T07:00:18Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter circuit/module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181645</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181645"/>
		<updated>2018-11-14T07:00:02Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Arduino PWM code and voltage sensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino code for voltage sensing and control==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=181504</id>
		<title>File:BuckBoostSch.jpg</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=File:BuckBoostSch.jpg&amp;diff=181504"/>
		<updated>2018-11-13T00:03:13Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: Mransaw uploaded a new version of File:BuckBoostSch.jpg&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181503</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181503"/>
		<updated>2018-11-13T00:00:02Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter circuit/module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- make bill of materials for prototyping&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181470</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181470"/>
		<updated>2018-11-12T20:46:03Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Design buck/boost converter circuit/module */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181469</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181469"/>
		<updated>2018-11-12T20:42:05Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* In Progress */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- implement I2C to control [https://www.digikey.com/short/jvt11q digital potentiometer]&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181468</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181468"/>
		<updated>2018-11-12T20:34:21Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Voltage Sensing */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- learn how to control digital potentiometer&lt;br /&gt;
- add voltage sensing&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jvt1rm RES SMD 442K OHM 1% 1/16W 0402], [https://www.digikey.ca/short/jvt1rw RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181467</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181467"/>
		<updated>2018-11-12T20:17:48Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Buck-Boost Converter */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- learn how to control digital potentiometer&lt;br /&gt;
- add voltage sensing&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
=====Voltage Sensing=====&lt;br /&gt;
Voltage divider: [https://www.digikey.ca/short/jv7nn7 RES SMD 402K OHM 0.5% 1/10W 0805], [https://www.digikey.ca/short/jv7nnm RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
Op amp for voltage buffer: [https://www.digikey.com/short/jvt1cd IC OPAMP GP 1MHZ RRO SOT23-5]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=181422</id>
		<title>Miles Log</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Miles_Log&amp;diff=181422"/>
		<updated>2018-11-12T06:13:55Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;&amp;lt;html&amp;gt;&amp;lt;iframe width=&amp;quot;600&amp;quot; height=&amp;quot;300&amp;quot; src=&amp;quot;https://osedev.org/wiki/Miles?start=3/1/2018&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
{{RightTOC}}&lt;br /&gt;
=Sun Nov 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Added control wiring to buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Studying voltage follower circuits to increase input impedance of ADC]&lt;br /&gt;
&lt;br /&gt;
=Sun Nov 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Working on buck-boost converter draft design]&lt;br /&gt;
&lt;br /&gt;
=Fri Oct 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter_2 component selection for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Mon Oct 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Buck-Boost_Converter Started draft design of 1.5kW buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 30, 2018=&lt;br /&gt;
Found [http://kicad.rohrbacher.net/quicklib.php KiCad symbol generator] and made [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Conceptual_Design symbol for PWM controller]&lt;br /&gt;
&lt;br /&gt;
Learning how to implement [http://rohmfs.rohm.com/en/products/databook/datasheet/ic/power/switching_regulator/bd9850fvm-e.pdf PWM controller IC]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Design_buck.2Fboost_converter_circuit.2Fmodule Brainstorming ways to increase PWM frequency]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Calculations Doing calculations for buck-boost converter]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 26, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Voltage_Conversion Researched buck-boost topologies]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#General Researched Isolation in Digital Power Supplies]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 24, 2018=&lt;br /&gt;
Circuit diagram and cost estimate for [https://wiki.opensourceecology.org/wiki/Current_Meeting current meeting]&lt;br /&gt;
&lt;br /&gt;
Added possible parts to [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Forward_Configuration forward configuration]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Reassessed flyback configuration] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research organized research section]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 22, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning about active flyback controller IC] and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 component selection]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 19, 2018=&lt;br /&gt;
[http://www.ti.com/lit/ds/symlink/ucc28780.pdf learning how to use active clamp flyback controller IC]&lt;br /&gt;
&lt;br /&gt;
=Mon Sep 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research learning about gate drivers] and estimated cost of power supply components to be around $70 for the flyback configuration, not including the microcontroller and display&lt;br /&gt;
&lt;br /&gt;
=Fri Sep 14, 2018=&lt;br /&gt;
Learning about active snubbers, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 found an IC to control them]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 12, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research Learning about lossless snubber circuits]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 11, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration_2 selected some parts for flyback configuration of power supply]&lt;br /&gt;
&lt;br /&gt;
found possible toroid powder core for flyback transformer&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 9, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration selected a possible core for flyback transformer]&lt;br /&gt;
&lt;br /&gt;
=Sat Sep 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Transformer Learning about Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Flyback_Configuration Selected some possible parts for prototype]&lt;br /&gt;
&lt;br /&gt;
=Wed Sep 5, 2018=&lt;br /&gt;
learning about buck-boost converters, [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Research flyback transformer design], and [https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Possible_Parts component selection]&lt;br /&gt;
&lt;br /&gt;
=Tue Sep 4, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs#Running_the_Above_Simulation:_More_Details How to install Qucs-S]&lt;br /&gt;
&lt;br /&gt;
=Sun Sep 2, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Figure_out_ways_to_salvage_or_build_transformers Learned about buck-boost converters and new possibilities for flyback transformers enabled by advancements in MOSFET technology]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 29, 2018=&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Learned about buck-boost power stages]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#To_Do.2FIn_Progress Made to do/in progress list]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 28, 2018=&lt;br /&gt;
Talked with Jesse to brainstorm and plan next steps&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08#Software Created Git repository for microcontroller code]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 27, 2018=&lt;br /&gt;
Learning about [https://www.academia.edu/36721604/RepRapable_Recyclebot_Open_source_3-D_printable_extruder_for_converting_plastic_to_3-D_printing_filament RecycleBot] and [https://en.wikipedia.org/wiki/PID_controller PID controllers]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 25, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Qucs Made wiki page for Qucs]&lt;br /&gt;
&lt;br /&gt;
Quc-S Simulation: {{YoutubePopup|SQkO3aYBCuk}}&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 23, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Adjustable_Power_Supply_v18.08 Adjustable Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://www.digikey.com/short/jfnv75 Transformer], [https://www.digikey.com/short/jfnvtc Rectifier]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 21, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Isolated Started BoM for Isolated Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Prototyping Prototyped Non-isolated Arduino Power Supply, successfully produced 10V @ 380mA from 120Vac]&lt;br /&gt;
&lt;br /&gt;
=Mon Aug 20, 2018=&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://docs.google.com/presentation/d/e/2PACX-1vTx4K6wvVdWwHGxGWjYOPPy4fUNDUj6HDOviTvzn8LSUzpZ5vf0IsRBg8UQxb4jbNPNayP32iX5rRdz/embed?start=false&amp;amp;loop=false&amp;amp;delayms=3000&amp;quot; frameborder=&amp;quot;0&amp;quot; width=&amp;quot;960&amp;quot; height=&amp;quot;569&amp;quot; allowfullscreen=&amp;quot;true&amp;quot; mozallowfullscreen=&amp;quot;true&amp;quot; webkitallowfullscreen=&amp;quot;true&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://docs.google.com/presentation/d/1Y1zsd6oYwKa1JdSXy3bzswW5YfVC6J6c6HS8PW8RtUk/edit?usp=sharing ^edit^]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#QUCS-S_Simulation Arduino Power Supply Simulation]&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 18, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08#Calculations Calculations for Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 17, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/index.php?title=Arduino_Power_Supply_v18.08 Arduino Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Thu Aug 16, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_Non-isolated_9V_Power_Supply_.28280_mA.29 BoM for Arduino power supply and voltage reference circuit]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 15, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Simulated non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 14, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Qucs-s_Simulations Creating simulation of non-isolated power supply for Arduino Mega]&lt;br /&gt;
&lt;br /&gt;
R&amp;amp;D for power supply to Arduino: [[Universal_Power_Supply/Bill_of_Materials#BoM_for_20W_Power_Supply_.2Fw_12_DC_Output]]&lt;br /&gt;
&lt;br /&gt;
=Sun 12, 2018=&lt;br /&gt;
[http://ngspice.sourceforge.net/docs/ngspice-manual.pdf Learning about OpenMP with Ngspice for multi-core circuit simulation]&lt;br /&gt;
&lt;br /&gt;
Updated [https://drive.google.com/drive/folders/15Kk7HLIvO4MyOILj4dJSY45LwgANmcUd?usp=sharing Power Supply Simulation].&lt;br /&gt;
&lt;br /&gt;
Learning how to enable [https://sourceforge.net/p/ngspice/mailman/message/32611983/ multi-core processing to speed up simulation time].&lt;br /&gt;
&lt;br /&gt;
=Sat Aug 11, 2018=&lt;br /&gt;
Installed [https://ra3xdh.github.io/ Qucs-s (Qucs with Spice)] to do transient analysis of circuits&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 10, 2018=&lt;br /&gt;
[https://drive.google.com/drive/folders/1jgUGcGJyVH43yN_hhrippUOOm9ozlwb5?usp=sharing Learning Qucs to Simulate Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 8, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Initial_Design Initial Design of 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Tue Aug 7, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Bill_of_Materials#BoM_for_800W_Power_Supply_.2Fw_12-24V_DC_Output Bill of Materials for 800W Power Supply]&lt;br /&gt;
&lt;br /&gt;
=Fri Aug 3, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Possible_Parts Possible Parts for UPS]&lt;br /&gt;
&lt;br /&gt;
=Wed Aug 1, 2018=&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Universal_Power_Supply/Research_Development#Power_Supply_R.26D Power Supply R&amp;amp;D]&lt;br /&gt;
&lt;br /&gt;
=Tue Jul 31, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing Universal Power Supply (UPS) Block Diagram]&lt;br /&gt;
&lt;br /&gt;
Notes at [[Miles Work Meeting]]&lt;br /&gt;
&lt;br /&gt;
=Fri Jul 27, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1UHHGPRdyM7k2f22uKXJk5aKurP5DX-7o/view?usp=sharing FreeCAD Test File]&lt;br /&gt;
&lt;br /&gt;
{{YoutubePopup|kCk6uS-fRUY}}&lt;br /&gt;
OSE Developer Test Video&lt;br /&gt;
&lt;br /&gt;
How many hours each part of the test took to complete: &lt;br /&gt;
&lt;br /&gt;
1) Installing Linux: ~3h. Tried to do a full install onto USB stick but display wouldn&#039;t work.&lt;br /&gt;
&lt;br /&gt;
2) Learning FreeCAD: 4h&lt;br /&gt;
&lt;br /&gt;
3) Documenting your work: 2h&lt;br /&gt;
&lt;br /&gt;
Learning FreeCAD was the most difficult task.&lt;br /&gt;
&lt;br /&gt;
Other feedback: A sample FreeCAD file with a competed cube would be helpful as a reference.&lt;br /&gt;
&lt;br /&gt;
Score: 100% of test points completed.&lt;br /&gt;
&lt;br /&gt;
=Wed Jul 18, 2018=&lt;br /&gt;
[https://youtu.be/aDrMAVgLg8g Video cover letter for OSE Development Team]&lt;br /&gt;
&lt;br /&gt;
=Mon Jul 16, 2018=&lt;br /&gt;
[https://drive.google.com/file/d/1vIKdj6wP_aisvoNAvM7GocePa6G3KLck/view?usp=sharing Video Cover Letter Prep]&lt;br /&gt;
&lt;br /&gt;
Installed [[OSE Linux]] on USB stick.&lt;br /&gt;
&lt;br /&gt;
=Sun Jul 15, 2018=&lt;br /&gt;
Requested account but didn&#039;t receive confirmation email, communicated with [[Marcin]] to get it working.&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181421</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181421"/>
		<updated>2018-11-12T06:11:13Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Calculations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- learn how to control digital potentiometer&lt;br /&gt;
- add voltage sensing&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/images/8/8a/BuckBoostCalc.jpeg&amp;gt;With only 30 kHz, a large and expensive inductor would be needed.&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
Voltage divider for sensing output: [https://www.digikey.ca/short/jv7nn7 RES SMD 402K OHM 0.5% 1/10W 0805], [https://www.digikey.ca/short/jv7nnm RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181420</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181420"/>
		<updated>2018-11-12T05:52:24Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* Calculations */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- learn how to control digital potentiometer&lt;br /&gt;
- add voltage sensing&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/thumb/8/8a/BuckBoostCalc.jpeg/510px-BuckBoostCalc.jpeg&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With only 30 kHz, a large and expensive inductor would be needed.&lt;br /&gt;
&lt;br /&gt;
[https://www.electronics-tutorials.ws/amplifier/transistor-biasing.html Transistor biasing]&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
Voltage divider for sensing output: [https://www.digikey.ca/short/jv7nn7 RES SMD 402K OHM 0.5% 1/10W 0805], [https://www.digikey.ca/short/jv7nnm RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
	<entry>
		<id>https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181419</id>
		<title>Adjustable Power Supply v18.08</title>
		<link rel="alternate" type="text/html" href="https://wiki.opensourceecology.org/index.php?title=Adjustable_Power_Supply_v18.08&amp;diff=181419"/>
		<updated>2018-11-12T04:33:21Z</updated>

		<summary type="html">&lt;p&gt;Mransaw: /* General */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;=In Progress=&lt;br /&gt;
==Arduino PWM code and voltage sensing==&lt;br /&gt;
&lt;br /&gt;
[https://bitbucket.org/telephoneman/ups_pwm/src/3e0b14a3d3ba677face0fc56dc1f67f8a1673296/arduinocode Arduino code is hosted here.] This code is far from finalized and represent only one of many possible design approaches. Post as many variations or improvements as you can as long as they have advantages.&lt;br /&gt;
&lt;br /&gt;
==Design buck/boost converter circuit/module==&lt;br /&gt;
For affordable buck-boost that can change voltage by a factor of five, high frequencies are needed to reduce inductor size. The Arduino has a limited PWM frequency (less than 100 kHz?). It may be possible to use a [https://www.digikey.com/short/jnjh98 high-frequency buck-boost controller IC] to handle the PWM, and control it with the Arduino via a [https://www.digikey.com/short/jnjhb8 digital potentiometer].&lt;br /&gt;
&lt;br /&gt;
Volt-second balance on the inductor means that the average voltage across it over one switching cycle is zero&lt;br /&gt;
&lt;br /&gt;
Discontinuous mode is when current through the output inductor is zero for part of the switching cycle&lt;br /&gt;
&lt;br /&gt;
Next steps:&lt;br /&gt;
- learn how to control digital potentiometer&lt;br /&gt;
- add voltage sensing&lt;br /&gt;
- add isolation between power and control&lt;br /&gt;
- figure out how to switch between buck and boost configuration&lt;br /&gt;
- add voltage followers to IC inputs that are connected to voltage dividers&lt;br /&gt;
&lt;br /&gt;
==Figure out ways to salvage or build transformers==&lt;br /&gt;
&lt;br /&gt;
Investigate ways to use high frequency for more efficiency in power transformation as well as smaller inductors.&lt;br /&gt;
&lt;br /&gt;
With new Silicon Carbide MOSFET technology, maybe feasible to use flyback transformer at high frequency as described [https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf1200 here].&lt;br /&gt;
&lt;br /&gt;
A flyback transformer could more compact and cheaper initially, but the lifetime cost of replacing a large input capacitor would likely outweigh the initial savings. It is also more complex than an AC transformer, so probably not the best choice for this application.&lt;br /&gt;
&lt;br /&gt;
=Design=&lt;br /&gt;
&lt;br /&gt;
==Applications==&lt;br /&gt;
Powering 3D printer&lt;br /&gt;
&lt;br /&gt;
Workbench power supply&lt;br /&gt;
&lt;br /&gt;
Charging batteries&lt;br /&gt;
&lt;br /&gt;
==Requirements==&lt;br /&gt;
At least 360W output (12V at 30A)&lt;br /&gt;
&lt;br /&gt;
Adjustable DC voltage output up to 24V&lt;br /&gt;
&lt;br /&gt;
120Vac input&lt;br /&gt;
&lt;br /&gt;
==Research==&lt;br /&gt;
===Existing Open-Source Projects===&lt;br /&gt;
[https://github.com/eez-open/psu-hw Programmable bench power supply EEZ H24005]&lt;br /&gt;
&lt;br /&gt;
[https://hackaday.io/project/4154-bench-power-supply Bench Power Supply]&lt;br /&gt;
&lt;br /&gt;
===General===&lt;br /&gt;
[https://www.ieee.li/pdf/essay/safety_considerations_in_power_supply_design.pdf Safety Considerations in Power Supply Design]&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Common_collector Common collector amplifiers] can be used as [https://en.wikipedia.org/wiki/Buffer_amplifier#Voltage_buffer voltage buffers]&lt;br /&gt;
&lt;br /&gt;
[https://www.maximintegrated.com/en/app-notes/index.mvp/id/3081 How to Increase the Bandwidth of Digital Potentiometers 10x to 100x]&lt;br /&gt;
&lt;br /&gt;
[https://www.allaboutcircuits.com/technical-articles/why-the-capacitor-in-your-power-supply-filter-is-too-big/ Ripple Port to Reduce Output Capacitor Size]&lt;br /&gt;
&lt;br /&gt;
[http://www.analog.com/en/technical-articles/isolation-in-digital-power-supply-why-and-how.html Isolation in Digital Power Supply]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/ml/slua618/slua618.pdf Fundamentals of Gate Driver Circuits]&lt;br /&gt;
&lt;br /&gt;
[http://iopscience.iop.org/article/10.1088/1742-6596/977/1/012007 Open-source based synthetic medium-voltage grid model for distribution power supply systems]&lt;br /&gt;
&lt;br /&gt;
[https://www.st.com/content/ccc/resource/technical/document/application_note/a4/ef/bc/7d/78/89/49/f1/DM00098381.pdf/files/DM00098381.pdf/jcr:content/translations/en.DM00098381.pdf Current Sharing in Parallel Diodes]&lt;br /&gt;
&lt;br /&gt;
===Voltage Conversion===&lt;br /&gt;
[http://www.learnabout-electronics.org/PSU/psu33.php This page] is a great guide.&lt;br /&gt;
&lt;br /&gt;
[https://en.wikipedia.org/wiki/Buck%E2%80%93boost_converter Buck–boost converter]&lt;br /&gt;
&lt;br /&gt;
[http://www.ti.com/lit/an/slva059a/slva059a.pdf Understanding Buck-Boost Power Stages]&lt;br /&gt;
&lt;br /&gt;
[https://www.mouser.de/pdfdocs/BuckConverterDesignNote.pdf Buck Converter Design]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
[https://www.electronicdesign.com/power/active-clamp-flyback-converter-design-whose-time-has-come The Active Clamp Flyback Converter: A Design Whose Time Has Come]&lt;br /&gt;
&lt;br /&gt;
[https://ir.lib.uwo.ca/cgi/viewcontent.cgi?article=7074&amp;amp;context=etd A Comparison of Different Snubbers for Flyback Converters]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/lit/ml/slup127/slup127.pdf Inductor and Flyback Transformer Design]&lt;br /&gt;
&lt;br /&gt;
[https://dspace.vutbr.cz/bitstream/handle/11012/43074/eeict2015-621-martis.pdf 1200 WATT FLYBACK SWITCHING POWER SUPPLY WITH SILICON CARBIDE SEMICONDUCTORS]&lt;br /&gt;
&lt;br /&gt;
[http://eas.uccs.edu/~cwang/ECE5955_F2015/PowerElectronics_f2015/ch2/Sect2-2.pdf Inductor volt-second balance, capacitor charge balance, and the small ripple approximation]&lt;br /&gt;
&lt;br /&gt;
[https://www.ti.com/seclit/ml/slup338/slup338.pdf Flyback transformer design considerations for efficiency and EMI]&lt;br /&gt;
&lt;br /&gt;
[http://www.ee.bgu.ac.il/~pel/pdf-files/smnr13.pdf PASSIVE LOSSLESS SNUBBERS FOR HIGH FREQUENCY PWM CONVERTERS] (page 41)&lt;br /&gt;
&lt;br /&gt;
==Modules==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;iframe src=&amp;quot;https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/preview&amp;quot; width=&amp;quot;800&amp;quot; height=&amp;quot;300&amp;quot;&amp;gt;&amp;lt;/iframe&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
[https://drive.google.com/file/d/14E6jdRYcacSnh8N1ed87tpt4PYiifUkv/view?usp=sharing edit]&lt;br /&gt;
&lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Arduino_Power_Supply_v18.08 Arduino Power Subcircuit]&lt;br /&gt;
&lt;br /&gt;
===Flyback Transformer===&lt;br /&gt;
A flyback transformer would most likely be operated in continuous conduction mode, so transformer size will be limited by core saturation. A toroid with powder core could be a suitable solution.&lt;br /&gt;
&lt;br /&gt;
Switching speeds of MOSFET and diodes should be minimized to reduce switching losses. Winding losses should be minimized as well.&lt;br /&gt;
&lt;br /&gt;
[https://www.mag-inc.com/Products/Selecting-a-Distributed-Air-Gap-Powder-Core-for-Fl Selecting a Distributed Air-Gap Powder Core for Flyback Transformers]&lt;br /&gt;
&lt;br /&gt;
[https://micrometalsarnoldpowdercores.com/design-software Inductor Design Tool]&lt;br /&gt;
&lt;br /&gt;
==Calculations==&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/thumb/8/8a/BuckBoostCalc.jpeg/510px-BuckBoostCalc.jpeg&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
With only 30 kHz, a large and expensive inductor would be needed.&lt;br /&gt;
&lt;br /&gt;
[https://www.google.ca/url?sa=t&amp;amp;source=web&amp;amp;rct=j&amp;amp;url=http://www.ti.com/lit/an/slva721a/slva721a.pdf&amp;amp;ved=2ahUKEwjX3L_Nv-LdAhVLHzQIHViWBzcQFjABegQIBxAB&amp;amp;usg=AOvVaw1Rfq8vmjUTgXz3TBK5JtWO Buck-Boost Design Calculations]&lt;br /&gt;
&lt;br /&gt;
[https://drive.google.com/file/d/160fBKhaJohxqErDVsghaS8F-OIE37cVb/view?usp=sharing Digital potentiometer calculations]&lt;br /&gt;
&lt;br /&gt;
==Conceptual Design==&lt;br /&gt;
&#039;&#039;&#039;&#039;&#039;These designs may not be safe or functional. Use at your own risk.&#039;&#039;&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
[http://kicad.rohrbacher.net/quicklib.php KiCAD Symbol Generator], &amp;lt;html&amp;gt;&amp;lt;a href=https://drive.google.com/file/d/1LtR22AovAHlzEcM65HuDW818-tB03zNA/view?usp=sharing&amp;gt;DB9851.lib&amp;lt;/a&amp;gt;, &amp;lt;a href=https://drive.google.com/file/d/1uvr8XZ4-E1sGj2WWG3NTgnj2rY3qOkTe/view?usp=sharing&amp;gt;UC24612.lib&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
&amp;lt;html&amp;gt;&amp;lt;a href=https://wiki.opensourceecology.org/wiki/File:BuckBoostSch.jpg&amp;gt;&amp;lt;img src=https://wiki.opensourceecology.org/images/c/cf/BuckBoostSch.jpg width=1150 height=450&amp;gt;&amp;lt;/a&amp;gt;&amp;lt;a href=https://drive.google.com/drive/folders/1GTlBO0V6huO2SHp2aWkBbo3RVD3Nfane?usp=sharing&amp;gt;edit&amp;lt;/a&amp;gt;&amp;lt;/html&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
https://wiki.opensourceecology.org/images/thumb/f/fc/FlybackDraft.jpg/800px-FlybackDraft.jpg [https://drive.google.com/file/d/1dRuDUdYCjfiMH3gN5b1DNvURy5PTcsm4/view?usp=sharing [edit]]&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;&#039;DRAFT, values are not correct&#039;&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
10 gauge wire for secondary winding. Primary has 8.5 turns, try 3 or 3.5 for secondary.&lt;br /&gt;
&lt;br /&gt;
==Software==&lt;br /&gt;
[https://bitbucket.org/OSEUPS/apsv1808/src/master/ Git Repository]&lt;br /&gt;
&lt;br /&gt;
==Possible Parts==&lt;br /&gt;
Output Capacitor: Aluminum (cheaper but more lossy), organic semiconductor (good overall), tantalum (best for surface mount) [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Output Inductor: Bobbin or rod-core cause more noise [http://www.ti.com/lit/an/slva059a/slva059a.pdf]&lt;br /&gt;
&lt;br /&gt;
Isolator: [https://www.digikey.ca/short/jw00p5 DGTL ISO 2.5KV 2CH GEN PURP 8DIP]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jnc47m SOT-23-5]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/jv7n34 IC DGTL POT 10BIT NV 14-TSSOP]&lt;br /&gt;
&lt;br /&gt;
===Buck-Boost Converter===&lt;br /&gt;
=====Main Circuit=====&lt;br /&gt;
Cost of components: ~$35&lt;br /&gt;
&lt;br /&gt;
Switching Transistors: [https://www.digikey.ca/short/jnjmwq MOSFET N-CH 60V 100A POWERDI5060] or [https://www.digikey.ca/short/jnjmwh MOSFET N-CH 60V 200A TO-220-3]&lt;br /&gt;
&lt;br /&gt;
Inductor: [https://www.digikey.ca/short/jnjh8c FIXED IND 33UH 30A 1.9MOHM SMD] (would require 2.5 MHz switching frequency)&lt;br /&gt;
&lt;br /&gt;
Rectifier Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
PWM Controller: [https://www.digikey.com/short/jnjwcd IC REG CTRLR BUCK/BST 20HTSSOP-B]&lt;br /&gt;
&lt;br /&gt;
Digital Potentiometer: [https://www.digikey.com/short/j0rqqt IC DGTL POT 10BIT 16TQFN], 50 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Input/Output Capacitor: [https://www.digikey.com/short/j075p3 CAP CER 15UF 100V X7S SMD]&lt;br /&gt;
&lt;br /&gt;
=====PWM Control=====&lt;br /&gt;
High-side gate driver: [https://www.digikey.com/short/jv7b44 IC HIGH-SIDE DVR HS HV 8-MSOP]&lt;br /&gt;
&lt;br /&gt;
Gate driver bootstrap diode: [https://www.digikey.com/short/jv75jm DIODE GEN PURP 100V 200MA SOD80]&lt;br /&gt;
&lt;br /&gt;
Oscillation setting: [https://www.digikey.com/short/j0r7f0 CAP CER 47PF 50V C0G/NP0 0201], 4.7 kOhm resistor&lt;br /&gt;
&lt;br /&gt;
Short circuit protection timer: [https://www.digikey.com/short/j0rtrj CAP CER 0.47UF 100V X7R 0805]&lt;br /&gt;
&lt;br /&gt;
Error Amp Feedback: [https://www.digikey.com/short/j0rttm CAP CER 0.068UF 100V X7R 0805], 100 Ohm resistor&lt;br /&gt;
&lt;br /&gt;
Voltage divider for sensing output: [https://www.digikey.ca/short/jv7nn7 RES SMD 402K OHM 0.5% 1/10W 0805], [https://www.digikey.ca/short/jv7nnm RES SMD 4.99M OHM 1% 1/16W 0402]&lt;br /&gt;
&lt;br /&gt;
=====Control Circuit Power=====&lt;br /&gt;
Voltage regulator: [https://www.digikey.com/short/jv7558 IC REG BUCK 12V 1A TO220-5]&lt;br /&gt;
&lt;br /&gt;
===Forward Configuration===&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jfnv75 XFRMR TOROIDAL 500VA CHAS MOUNT], &lt;br /&gt;
[https://wiki.opensourceecology.org/wiki/Microwave_Transformer Investigating ways to salvage transformers]&lt;br /&gt;
&lt;br /&gt;
Rectifier: [https://www.digikey.com/short/jfnvtc RECT BRIDGE FAST 3PHASE I4-PAC-5]&lt;br /&gt;
&lt;br /&gt;
[https://pdf1.alldatasheet.com/datasheet-pdf/view/68504/IRF/IRFP250N.html IRFP250N]Power transistor (MOSFET) driven by [https://www.microchip.com/wwwproducts/en/en010647 TC1411] 1A High-Speed MOSFET Driver with pulse signal originating from arduino.&lt;br /&gt;
&lt;br /&gt;
(Alternative mosfets requiring no mosfer driver)&lt;br /&gt;
[https://www.infineon.com/dgdl/irf540n.pdf?fileId=5546d462533600a4015355e396cb199f IRF540N &amp;quot;IR&amp;quot; MOSFET N-Channel 33A 100V]&lt;br /&gt;
[https://www.digchip.com/datasheets/parts/datasheet/161/IRFP250N-pdf.php IRFP250N]&lt;br /&gt;
&lt;br /&gt;
Switching Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;br /&gt;
&lt;br /&gt;
===Flyback Configuration===&lt;br /&gt;
Cost of components ~$80&lt;br /&gt;
&lt;br /&gt;
Fuse: [https://www.digikey.com/short/jwncf2 FUSE GLASS 15A 250VAC 5X20MM]&lt;br /&gt;
&lt;br /&gt;
Bridge Rectifier: [https://www.digikey.com/short/jw71qw 50A, 600V BRIDGE RECTIFIER, GBJ], [https://www.digikey.com/short/j2d0dw DIODE BRIDGE FAST DIODE ECO-PAC1], [https://www.digikey.com/short/j2rtq3 50A, 1000V BRIDGE RECTIFIER, GBJ]&lt;br /&gt;
&lt;br /&gt;
Input Capacitor: [https://www.digikey.com/short/jw7vw0 CAP ALUM 18000UF 20% 160V SCREW]&lt;br /&gt;
&lt;br /&gt;
====Snubber====&lt;br /&gt;
Snubber Diode: [https://www.digikey.com/short/jwt9dh DIODE SCHOTTKY 250V 40A TO220AB]&lt;br /&gt;
&lt;br /&gt;
Snubber Capacitor: [https://www.digikey.com/short/jwzccj CAP CER 0.18UF 250V X7R 1812]&lt;br /&gt;
&lt;br /&gt;
Active Snubber Control: [https://www.digikey.com/short/jwjj5m Active clamp flyback controller UCC28780D]&lt;br /&gt;
&lt;br /&gt;
Gate Driver Transistors: [https://www.digikey.com/short/jwm5wn TRANS NPN 60V 3A TP], [https://www.digikey.com/short/jwm1d2 TRANS PNP 60V 5A TO-126]&lt;br /&gt;
&lt;br /&gt;
Integrated Gate Driver: [https://www.digikey.com/short/jwhc5v IC DRIVER HI/LO SIDE 600V 14-DIP]&lt;br /&gt;
&lt;br /&gt;
====Coupled Inductor====&lt;br /&gt;
Switching Transistor: [https://www.digikey.com/short/jw729f MOSFET NCH 650V 21A TO247N], [https://www.digikey.ca/short/j2mvd3 MOSFET NCH 650V 39A TO247N]&lt;br /&gt;
&lt;br /&gt;
Transformer: [https://www.digikey.com/short/jwtcn5 FIXED IND 10UH 16.9A 5.1 MOHM TH], [https://www.mag-inc.com/Media/Magnetics/Datasheets/0077130A7.pdf Kool Mu 77130A7 (11.2mm outer diameter, permeability = 125 u)]&lt;br /&gt;
&lt;br /&gt;
====Output Rectifier====&lt;br /&gt;
Output Diode: [https://www.digikey.com/short/j2dvjj DIODE SCHOTTKY 45V 60A TO247AD]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier IC: [https://www.digikey.ca/short/jwnc78 SYNC RECTIFIER FLYBACK]&lt;br /&gt;
&lt;br /&gt;
Synchronous Rectifier Transistor: [https://www.digikey.ca/short/jwnc84 MOSFET N-CH 40V 95A TO-220AB]&lt;/div&gt;</summary>
		<author><name>Mransaw</name></author>
	</entry>
</feed>