{"id":188,"date":"2020-03-17T03:07:36","date_gmt":"2020-03-17T03:07:36","guid":{"rendered":"http:\/\/www.daddyzaur.com\/?p=188"},"modified":"2020-03-17T05:24:00","modified_gmt":"2020-03-17T05:24:00","slug":"part-3-do-you-power-spice","status":"publish","type":"post","link":"http:\/\/www.daddyzaur.com\/?p=188","title":{"rendered":"Part 3: Do you Power SPICE?"},"content":{"rendered":"\n<h3 class=\"wp-block-heading\">Voltage Mode BOOST Converter<\/h3>\n\n\n\n<p class=\"has-small-font-size\">Howdy, welcome to my den! This is the place for various projects to be shared with like minded people.<br>Open source? Use this stuff if you take full responsibility, and give to Daddyzaur what\u2019s Daddyzaur\u2019s.<\/p>\n\n\n\n<div class=\"wp-block-file\"><a href=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/000003_BOOST_VM_T3.tar.gz\">000003_BOOST_VM_T3.tar<\/a><a href=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/000003_BOOST_VM_T3.tar.gz\" class=\"wp-block-file__button\" download>Download<\/a><\/div>\n\n\n\n<p class=\"has-small-font-size\">So, are you an electrical engineer working with SPICE tools, designing real power supplies? Or you\u2019re a hobbyist and you really want to build a <strong>Voltage Mode BOOST<\/strong> converter, but nobody put together some step-by-step instructions you can use for your project? If so, keep reading.<\/p>\n\n\n\n<p class=\"has-small-font-size\">You will find here some explanations and an archive with all you need to get you started. You will get a high degree of confidence on your design, after seeing a perfect match between the average and switch mode models, compared throughout various Transient and AC simulations, under various conditions, with side-by-side perfectly matching signals.<\/p>\n\n\n\n<p class=\"has-small-font-size\">In the archive I provided are all the symbols, models and sub-circuits, included in one single project folder. You also need to install <strong><em>Smath Studio<\/em><\/strong> and <strong><em>LTSpice<\/em><\/strong>. You do not need to litter external folders with bits and pieces of your project files: the project folder is <strong><em>Self Contained<\/em><\/strong>, you can place it anywhere you like and it will just work, in Linux or Windows:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"788\" height=\"1024\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-788x1024.png\" alt=\"\" class=\"wp-image-190\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-788x1024.png 788w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-231x300.png 231w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-768x997.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp.png 857w\" sizes=\"(max-width: 788px) 100vw, 788px\" \/><\/figure>\n\n\n\n<p class=\"has-small-font-size\">Part 3 of my <strong><em>Do you Power SPICE<\/em><\/strong> mini series is an example of a <strong><em>Voltage Mode Control BOOST Converter<\/em><\/strong> one can analyze and build with confidence, using an interactive set of SPICE and math tools. Usually, this type of application will employ a <strong><em>Type 3 Compensator<\/em><\/strong>. I put together those tools using mostly the excellent books written by Christophe Basso, and I tried to follow his work as close as possible. If you do not know who I am talking about go ahead and check his books:<\/p>\n\n\n\n<p><a href=\"https:\/\/www.amazon.com\/Christophe-P.-Basso\/e\/B001IOH604%3F\">https:\/\/www.amazon.com\/Christophe-P.-Basso\/e\/B001IOH604%3F<\/a><\/p>\n\n\n\n<p class=\"has-small-font-size\">The starting point must always be a complete list with requirements for you converter: most everybody would agree, it is a good idea to know beforehand what you need. For this part you will find in my archive a <strong><em>Smath Studio<\/em><\/strong> design file <strong>_000003_BOOST_VM_T3.sm<\/strong> you can use to plug-in your data input and compute the parameters for SPICE. I tried to keep a resemblance of some rules: GREEN fields are title, YELLOW fields are usually for data input, RED fields are resulting parameters, BLUE fields are resulting quantities, and colorless fields are computing fields.<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"767\" height=\"992\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-1.png\" alt=\"\" class=\"wp-image-191\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-1.png 767w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-1-232x300.png 232w\" sizes=\"(max-width: 767px) 100vw, 767px\" \/><\/figure>\n\n\n\n<p class=\"has-small-font-size\">Now that you\u2019ve got the input data and the SPICE parameters, go ahead and modify the LTSpice project files, with your data. The secret sauce for this flexibility is an (almost) identical interface I placed in every schematic with PARAMS for every and all variables you will need, and visual blocks for computed values. I said ALMOST because some of the .IC statements should be sometimes disabled or adjusted as required for the side-by-side sub-projects. Otherwise, nothing should be different. You can copy and paste this PARAMS block in all those LTSpice sub-projects, just verify the .IC statements:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"837\" height=\"1024\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-2-837x1024.png\" alt=\"\" class=\"wp-image-192\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-2-837x1024.png 837w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-2-245x300.png 245w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-2-768x940.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-2.png 886w\" sizes=\"(max-width: 837px) 100vw, 837px\" \/><\/figure>\n\n\n\n<p class=\"has-small-font-size\">Go ahead, open the project files one by one and study them. You will find here almost everything for the transient and the AC analysis you need to design a stable control loop. Here is a summary with the SPICE sub-projects name convention: <strong><em>VM<\/em><\/strong> stands for Voltage Mode, <strong><em>T3<\/em><\/strong> for Type 3 Compensator, <strong><em>SW<\/em><\/strong> for Switch Mode Models, <strong><em>AVG<\/em><\/strong> for Average Models, <strong><em>TRAN<\/em><\/strong> for Transient Simulation, <strong><em>manual<\/em><\/strong> for the manual method of placing poles and zeroes, <strong><em>Kfactor<\/em><\/strong> for the automatic K factor method, <strong><em>AC<\/em><\/strong> for the AC Simulation, and finally <strong><em>Side-by-side<\/em><\/strong> indicates the project file contains two circuits you can compare together, in a single simulation:<\/p>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-1024x640.png\" alt=\"\" class=\"wp-image-193\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-1024x640.png 1024w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-300x188.png 300w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-768x480.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-1536x960.png 1536w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3-1568x980.png 1568w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-3.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-1024x640.png\" alt=\"\" class=\"wp-image-194\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-1024x640.png 1024w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-300x188.png 300w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-768x480.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-1536x960.png 1536w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4-1568x980.png 1568w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-4.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-1024x640.png\" alt=\"\" class=\"wp-image-195\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-1024x640.png 1024w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-300x188.png 300w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-768x480.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-1536x960.png 1536w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5-1568x980.png 1568w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-5.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-1024x640.png\" alt=\"\" class=\"wp-image-196\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-1024x640.png 1024w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-300x188.png 300w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-768x480.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-1536x960.png 1536w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6-1568x980.png 1568w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-6.png 1920w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n\n\n\n<figure class=\"wp-block-image\"><img decoding=\"async\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/image-8-1024x640.png\" alt=\"This image has an empty alt attribute; its file name is image-8-1024x640.png\"\/><\/figure>\n\n\n\n<figure class=\"wp-block-image size-large\"><img loading=\"lazy\" decoding=\"async\" width=\"1024\" height=\"640\" src=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-1024x640.png\" alt=\"\" class=\"wp-image-198\" srcset=\"http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-1024x640.png 1024w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-300x188.png 300w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-768x480.png 768w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-1536x961.png 1536w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8-1568x981.png 1568w, http:\/\/www.daddyzaur.com\/wp-content\/uploads\/2020\/03\/tmp-8.png 1919w\" sizes=\"(max-width: 1024px) 100vw, 1024px\" \/><\/figure>\n","protected":false},"excerpt":{"rendered":"<p>Voltage Mode BOOST Converter Howdy, welcome to my den! This is the place for various projects to be shared with like minded people.Open source? Use this stuff if you take full responsibility, and give to Daddyzaur what\u2019s Daddyzaur\u2019s. So, are you an electrical engineer working with SPICE tools, designing real power supplies? Or you\u2019re a &hellip; <\/p>\n<p class=\"link-more\"><a href=\"http:\/\/www.daddyzaur.com\/?p=188\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;Part 3: Do you Power SPICE?&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_jetpack_memberships_contains_paid_content":false,"footnotes":""},"categories":[1],"tags":[13,15,16,18,11],"jetpack_sharing_enabled":true,"jetpack_featured_media_url":"","_links":{"self":[{"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/posts\/188"}],"collection":[{"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=188"}],"version-history":[{"count":4,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions"}],"predecessor-version":[{"id":222,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=\/wp\/v2\/posts\/188\/revisions\/222"}],"wp:attachment":[{"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=188"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=188"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.daddyzaur.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=188"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}