<?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 &gt; Mattias Zurković</title><link>https://mattiasz.com/blog/categories/foc/</link><description>Recent content in FOC on &gt; Mattias Zurković</description><generator>Hugo</generator><language>en-us</language><lastBuildDate>Thu, 29 Oct 2026 00:00:00 +0000</lastBuildDate><atom:link href="https://mattiasz.com/blog/categories/foc/index.xml" rel="self" type="application/rss+xml"/><item><title>Agentic PCB Development</title><link>https://mattiasz.com/blog/agentic-pcb-development/</link><pubDate>Thu, 29 Oct 2026 00:00:00 +0000</pubDate><guid>https://mattiasz.com/blog/agentic-pcb-development/</guid><description>&lt;h2 id="background"&gt;Background&lt;/h2&gt;
&lt;p&gt;Recently I started designing a control board for hobby-style brushless motors. Part of this requires actually developing a PCB: schematics, component placements, and traces. In my daily work life as a software engineer, I have re-structured my workflow to leverage the power of AI Agents: I use agentic skills and loops to fully automate any manual and high-effort tasks, for example the act of writing software.&lt;/p&gt;
&lt;p&gt;Agents excel in this kind of work: repetitive, high-effort (for a person), and testable tasks. Since I have not touched KiCad in several years, I thought I would develop an agentic harness to do just that: build the PCB for the motor controller.&lt;/p&gt;</description></item><item><title>Pseudo-FOC Controller - Simulations and Initial Prototype</title><link>https://mattiasz.com/blog/pseudo-foc-controller-simulations-and/</link><pubDate>Tue, 18 Jan 2022 16:40:00 -0800</pubDate><guid>https://mattiasz.com/blog/pseudo-foc-controller-simulations-and/</guid><description>&lt;p&gt;As a part of my FOC controller, I am developing an intermediate project - the &lt;em&gt;Pseudo-FOC Controller.&lt;/em&gt; This post will introduce the theory, simulations, and an initial prototype of the project. At its core, this controller uses sinusoidal commutation, which is being implemented through the inverse Park and Clarke transforms.&lt;/p&gt;
&lt;h2 id="project-goals"&gt;Project Goals&lt;/h2&gt;
&lt;p&gt;The goals of this project are listed below:&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Control torque, speed, and position of a PMSM - specifically for gimbal and drone grade motors&lt;/li&gt;
&lt;li&gt;Develop a PCB for the controller&lt;/li&gt;
&lt;li&gt;Develop auto-tuning algorithms for controller gains&lt;/li&gt;
&lt;li&gt;Develop an auto-calibration sequence for the rotor position sensor&lt;/li&gt;
&lt;/ul&gt;
&lt;h2 id="bldc-vs-pmsm"&gt;BLDC vs PMSM&lt;/h2&gt;
&lt;p&gt;A key point of confusion is motor classification of permanent magnet machines - specifically between &lt;em&gt;Brushless DC Motors&lt;/em&gt; (BLDCs) and &lt;em&gt;Permanent Magnet Synchronous Motors&lt;/em&gt; (PMSMs). In my experience/readings, the differing factors is in their back-emf profile: BLDCs having a trapezoidal BEMF and PMSMs having a sinusoidal BEMF.&lt;/p&gt;</description></item><item><title>VFD Inverter Prototyping</title><link>https://mattiasz.com/blog/vfd-inverter-prototyping/</link><pubDate>Wed, 24 Nov 2021 22:49:00 -0800</pubDate><guid>https://mattiasz.com/blog/vfd-inverter-prototyping/</guid><description>&lt;p&gt;I began prototyping the VFD circuit discussed in the previous post, specifically the inverter stage. I modified it to be a single-phase full bridge inverter instead of the three-phase simulated. This is due to me using a single-phase shaded pole induction motor for testing down the line - 120 V, 60 Hz on the nameplate. Here is an image of the circuit:&lt;/p&gt;
&lt;p&gt;&lt;img src="img-01.png" alt=""&gt;&lt;/p&gt;
&lt;p&gt;&lt;em&gt;Full-bridge inverter circuited&lt;/em&gt;&lt;/p&gt;
&lt;p&gt;Before making the circuit, I simulated the inverter in LTSpice. Similar to the PSIM simulation, a bipolar switching scheme is being generated for the SPWM signal.&lt;/p&gt;</description></item><item><title>First Post on a AC Servo Drive Project + Current Loop Simulation</title><link>https://mattiasz.com/blog/first-post-on-ac-servo-drive-project/</link><pubDate>Mon, 20 Sep 2021 22:27:00 -0700</pubDate><guid>https://mattiasz.com/blog/first-post-on-ac-servo-drive-project/</guid><description>&lt;h2 id="introduction"&gt;Introduction&lt;/h2&gt;
&lt;p&gt;Over the past year I have been working on a motor driver for an AC hobby motor (total time about a month due to school and work) - I decided to document my past developments and continue the project as I am less busy. I looked back and refined what I wanted out of this motor drive.&lt;/p&gt;
&lt;p&gt;&lt;strong&gt;Requirements&lt;/strong&gt;&lt;/p&gt;
&lt;ul&gt;
&lt;li&gt;Have precise control of position, speed, and torque of an AC motor&lt;/li&gt;
&lt;li&gt;No torque ripple in output&lt;/li&gt;
&lt;li&gt;Controller should be suitable for a wide range of PMSM motors&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;&lt;strong&gt;Goals&lt;/strong&gt;&lt;/p&gt;</description></item></channel></rss>