<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Blog 2: Switching MOSFET&amp;#39;s at +100kHz frequencies in high voltage environments - it&amp;#39;s a precursor to getting Flyback Transformers to work properly.</title><link>/challenges-projects/design-challenges/experimenting-with-flyback-transformers/b/blog/posts/blog-2-are-all-mosfet-s-alike-when-it-comes-to-switching-speed-after-all-it-s-a-precursor-to-getting-flyback-transformers-to-work</link><description>Introduction
Intentional instability. According to Wikipedia , this is a highly sought after feature in fighter aircraft design. I think, based on my experiments so far, I could say the same for flyback transformers!

As with many other flyback transf</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Blog 2: Switching MOSFET&amp;#39;s at +100kHz frequencies in high voltage environments - it&amp;#39;s a precursor to getting Flyback Transformers to work properly.</title><link>https://community.element14.com/challenges-projects/design-challenges/experimenting-with-flyback-transformers/b/blog/posts/blog-2-are-all-mosfet-s-alike-when-it-comes-to-switching-speed-after-all-it-s-a-precursor-to-getting-flyback-transformers-to-work</link><pubDate>Mon, 22 Jan 2024 19:54:58 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bf4f8433-d676-43b5-b226-3ac0e947780f</guid><dc:creator>shabaz</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Hi Colin,&lt;/p&gt;
&lt;p&gt;As another project if you fancy it one day: it&amp;#39;s possible to make the Pi Pico into a convenient test tool, using&amp;nbsp;[mention:acaf6a9338de4eef8f6717d5561ed01d:e9ed411860ed4f2ba0265705b8793d05]&amp;nbsp;&lt;a href="https://github.com/jancumps/pico_scpi_usbtmc_labtool" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt; Pico SCPI labTool (PST)&lt;/a&gt;. I didn&amp;#39;t realize but now it&amp;#39;s got a &lt;a href="https://github.com/jancumps/pico_scpi_usbtmc_labtool/wiki" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;PST documentation wiki&lt;/a&gt;.&amp;nbsp;It has PWM capability, although I&amp;nbsp;believe we&amp;nbsp;hard-coded the PWM frequency for now.&lt;/p&gt;
&lt;p&gt;The PWM can serve at least two purposes on PST; one is for an isolated DAC board (which will take that PWM and convert it to an analog output, hopefully on a couple of channels), but the DAC board still needs to be worked on (a schematic for a test board is done), and the other is to use it simply as a frequency or PWM output for general circuit stimulus!&lt;/p&gt;
&lt;p&gt;I wanted to add a display to it, which would be used for monitoring purposes (not for controlling, because that&amp;#39;s too fiddly, it is better to control with SCPI, and see the current live measurements on the display), but then later realized that with PWM, there could be a need for directly controlling from buttons, since there could be occasions where it is desired to detatch from the PC, especially when working with high-voltage projects!&lt;/p&gt;
&lt;p&gt;Unrelated, I was working on a pico-sized GUI and button library in C++, to make pico-sized appliances (they don&amp;#39;t need to be pico-sized! but I liked that Waveshare display/buttons board, it was a quick way of knocking up microcontroller based projects that need a bit of info display/control) , and at the time I tested it with PWM (using the hardware/pwm capability, not PIO). Very basic, the up/down controls on the mini joystick control the frequency, and left/right control the duty cycle, no acceleration etc for now.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve not done much with it recently, the code is very ropey, but if anyone&amp;#39;s interested and wishes to extend it, I&amp;#39;d be happy to stick the code somewhere. It&amp;#39;s nothing special, but those rectangles on the display are all individual C++ text window objects! Each box is a mini text window, which automatically scrolls text if it exceeds the height of each box (e.g. you could have a multi-line box).&lt;/p&gt;
&lt;p&gt;You can see small bugs, like the white box isn&amp;#39;t perfectly rectangular, there is an artifact just below where it says 56%.&lt;/p&gt;
&lt;p&gt;To keep the library simple, it only supports 3 or 4 font sizes.&amp;nbsp;&lt;/p&gt;
&lt;p&gt;&lt;img alt=" " height="504" src="/resized-image/__size/1510x1008/__key/commentfiles/f7d226abd59f475c9d224a79e3f0ec07-bf4f8433-d676-43b5-b226-3ac0e947780f/pst_2D00_pwm.jpg" width="755" /&gt;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27431&amp;AppID=432&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Blog 2: Switching MOSFET&amp;#39;s at +100kHz frequencies in high voltage environments - it&amp;#39;s a precursor to getting Flyback Transformers to work properly.</title><link>https://community.element14.com/challenges-projects/design-challenges/experimenting-with-flyback-transformers/b/blog/posts/blog-2-are-all-mosfet-s-alike-when-it-comes-to-switching-speed-after-all-it-s-a-precursor-to-getting-flyback-transformers-to-work</link><pubDate>Mon, 22 Jan 2024 11:11:02 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bf4f8433-d676-43b5-b226-3ac0e947780f</guid><dc:creator>jc2048</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Interesting blog. Maybe with all this good blog activity, Randel might let the challenge run on a bit longer.&lt;/p&gt;
&lt;p&gt;&amp;quot;Does this match the specification? I&amp;rsquo;ll leave it up to you to decide.&amp;quot;&lt;/p&gt;
&lt;p&gt;Whilst the datasheet specification looks very impressive, switching characteristics are a secondary attribute: they depend very much on the test used to measure them. That&amp;#39;s because the thing that slows is capacitance, and you partially get round that by throwing more current at the capacitance so that the voltage changes quicker.&lt;/p&gt;
&lt;p&gt;The manufacturer wants the part to look good in a comparison, so the test is designed to show the part at it&amp;#39;s best within the limits the part is rated for. In the case of the NTD5867NL, they have the device switching 20A to 48V in the output circuit, and they&amp;#39;re initially throwing several amps at the gate (4A in this case, if the gate is metal rather than heavily doped silicon). In your case, the output is very lightly loaded and the gate current is probably initially something like 100mA - the output pin of the Pico is driven high by an internal MOSFET with an on resistance of maybe something like 20-25 ohms. So you won&amp;#39;t see the figures they are showing you on the datasheet.&lt;/p&gt;
&lt;p&gt;One thing that does help you is that the microcontroller pin driver is fast, so you aren&amp;#39;t being slowed by the performance of the driver in the way Javagoza was with his discrete bipolar circuit. The limitation, though, is that you can only get the gate to 3.3V, so fine for switching lowish currents with a logic-level MOSFET, but may struggle switching higher currents.&lt;/p&gt;
&lt;p&gt;Implementing a digital control loop is quite difficult (but rewarding to look at because there are things that can be done digitally that would be impractical with an analogue loop). You might find it more straightforward to implement an analogue control system first (in a chip so that the difficult part has been done for you), get the converter working, and then move on to experimenting with digital control algorithms knowing you weren&amp;#39;t fighting two things at once. Having the analogue system would also let you see how the controller deals with different scenarios, like the way the controller has to back off after quickly charging the output capacitor, if a light load isn&amp;#39;t then taking the energy being provided, and would give you a benchmark for comparison with your own algorithm.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27431&amp;AppID=432&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Blog 2: Switching MOSFET&amp;#39;s at +100kHz frequencies in high voltage environments - it&amp;#39;s a precursor to getting Flyback Transformers to work properly.</title><link>https://community.element14.com/challenges-projects/design-challenges/experimenting-with-flyback-transformers/b/blog/posts/blog-2-are-all-mosfet-s-alike-when-it-comes-to-switching-speed-after-all-it-s-a-precursor-to-getting-flyback-transformers-to-work</link><pubDate>Sun, 21 Jan 2024 20:27:42 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bf4f8433-d676-43b5-b226-3ac0e947780f</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Very good update.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27431&amp;AppID=432&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Blog 2: Switching MOSFET&amp;#39;s at +100kHz frequencies in high voltage environments - it&amp;#39;s a precursor to getting Flyback Transformers to work properly.</title><link>https://community.element14.com/challenges-projects/design-challenges/experimenting-with-flyback-transformers/b/blog/posts/blog-2-are-all-mosfet-s-alike-when-it-comes-to-switching-speed-after-all-it-s-a-precursor-to-getting-flyback-transformers-to-work</link><pubDate>Sun, 21 Jan 2024 00:35:15 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:bf4f8433-d676-43b5-b226-3ac0e947780f</guid><dc:creator>dougw</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Nicely done with the Pico-Arduino PWM&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=27431&amp;AppID=432&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>