<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom"><channel><title>FOC on Skylake 的博客</title><link>https://skylakc.github.io/zh/tags/foc/</link><description>Recent content in FOC on Skylake 的博客</description><generator>Hugo -- gohugo.io</generator><language>zh</language><lastBuildDate>Thu, 11 Aug 2022 00:00:00 +0000</lastBuildDate><atom:link href="https://skylakc.github.io/zh/tags/foc/index.xml" rel="self" type="application/rss+xml"/><item><title>初窥电驱动世界</title><link>https://skylakc.github.io/zh/p/first-look-at-the-world-of-electric-drives/</link><pubDate>Thu, 11 Aug 2022 00:00:00 +0000</pubDate><guid>https://skylakc.github.io/zh/p/first-look-at-the-world-of-electric-drives/</guid><description>&lt;img src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/wave.jpg" alt="Featured image of post 初窥电驱动世界" /&gt;&lt;p&gt;初中时，我接触了航空模型。这是一类由电机（主要是无刷电机）驱动的航模。随着水平提高，我不断尝试自己做无刷电机驱动。&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="323px" data-flex-grow="134" decoding="async" height="3120" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/plane_hu_53217d73e769912d.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/plane_hu_92e2b662f18bd3c4.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/plane_hu_985c1322823b09e9.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/plane_hu_6f9c82aafd6ed29a.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/plane_hu_53217d73e769912d.jpg 1600w" width="4208"&gt;&#10;&lt;/p&gt;&#10;&lt;h2 id="起点"&gt;起点&#10;&lt;/h2&gt;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="426px" data-flex-grow="177" decoding="async" height="720" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver3.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver3_hu_20d67fed9173be6d.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver3_hu_cf371753277b69d3.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver3_hu_f81859f920b281e9.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver3.jpg 1280w" width="1280"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;实际上，BLDC 的驱动方式是很简单的六步换相。本质上，BLDC 就是把有刷直流电机的换向器变成了电子开关。&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="177px" data-flex-grow="74" decoding="async" height="4208" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW1_hu_19312d599467491d.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW1_hu_f7e517bfb831f33e.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW1_hu_40ecf4ec418463bd.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW1_hu_e53ba54e1cef2960.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW1_hu_19312d599467491d.jpg 1600w" width="3120"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;很快，我用单片机做出了自己的驱动。&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="180px" data-flex-grow="75" decoding="async" height="4160" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW2_hu_a9753dd7fdb1eeb4.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW2_hu_ead101c20705f393.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW2_hu_569a54a9ddde592f.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW2_hu_b08155da3f0e6dba.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/UVW2_hu_a9753dd7fdb1eeb4.jpg 1600w" width="3120"&gt;&#10;&lt;/p&gt;&#10;&lt;h2 id="发展"&gt;发展&#10;&lt;/h2&gt;&lt;p&gt;之后，我发现了 TI C2000 系列单片机的电机驱动函数库和 PMSM 电机。FOC 算法能为电机驱动带来无限可能。&lt;/p&gt;&#10;&lt;p&gt;于是我搭了一个电机实验平台：57 步进电机加 AMT102 光电编码器。&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="320px" data-flex-grow="133" decoding="async" height="2736" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver5_hu_5104958f4c9cd8be.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver5_hu_a61f6a8d2867723.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver5_hu_4c106ad2dc693464.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver5_hu_5f699cf7d4f9058e.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver5_hu_5104958f4c9cd8be.jpg 1600w" width="3648"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;后来，基于 MEMS 的磁编码器开始大量出货。我把驱动算法移植到 ST 单片机，用径向磁化磁铁的磁编码器替换了光电编码器。最终做成了一块小型电机驱动板。&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="426px" data-flex-grow="177" decoding="async" height="1080" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver1_hu_37f7860a0a3e2ea6.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver1_hu_f6eafe2c4db35838.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver1_hu_aad0c0f752e0a44c.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver1_hu_12fe39c3a0dacd11.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver1_hu_37f7860a0a3e2ea6.jpg 1600w" width="1920"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="426px" data-flex-grow="177" decoding="async" height="1080" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver2_hu_8d10cc3ead4ec831.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver2_hu_e013b4d77460c6d6.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver2_hu_fcd88a378402eb79.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver2_hu_e9901095b7e37595.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver2_hu_8d10cc3ead4ec831.jpg 1600w" width="1920"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;&lt;img class="gallery-image" data-flex-basis="493px" data-flex-grow="205" decoding="async" height="1960" loading="lazy" sizes="(max-width: 767px) calc(100vw - 30px), (max-width: 1023px) 700px, (max-width: 1279px) 950px, 1232px" src="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver4_hu_2ba22d40cf62ed6.jpg" srcset="https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver4_hu_d5e9570e0c172eff.jpg 480w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver4_hu_a1cd199510e2af50.jpg 800w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver4_hu_8b13b78178e5bbe8.jpg 1200w, https://skylakc.github.io/p/first-look-at-the-world-of-electric-drives/driver4_hu_2ba22d40cf62ed6.jpg 1600w" width="4032"&gt;&#10;&lt;/p&gt;&#10;&lt;p&gt;现在，基于 FOC 控制的电机出现在我家所有需要电机驱动的地方，包括鱼缸水泵、电脑水冷泵、空调变频压缩机、新风风扇等等。&lt;/p&gt;&#10;&lt;p&gt;我为这些电机开发了各种驱动板。其中一些是无感的，在轻载下也能工作。&lt;/p&gt;&#10;</description></item></channel></rss>