DC motor tutorials - owntech-foundation/Tutorials GitHub Wiki

Objective

In the Buck converter tutorial block, we show how to use the O2 as a buck converter from open-loop to closed-loop voltage mode control.

  • DC motor 1 - Current control - You will setup the O2 as an interleaved buck converter on closed-loop operation. You will use both low-side current measurements together with a PID controller to track the low-side current according to a reference that you will be able to control via SerialPlot. You will also plot the speed of the motor on SerialPlot.

  • DC motor 2 - Speed control - You will setup the O2 as an interleaved buck converter on double PID closed-loop operation. One PID will use the speed measurement to create a current reference. The second PID will track this current reference to control the motor using both low-side current measurements. You will be able to control the speed reference via SerialPlot.

Prerequisite Buck converter tutorials

⚠️ **GitHub.com Fallback** ⚠️