<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Need guidance implementing PID Loops - i.MX 93 in i.MX Processors</title>
    <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-implementing-PID-Loops-i-MX-93/m-p/2203005#M242103</link>
    <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Regarding support, yes the TPM module does support&amp;nbsp;Quadrature Decoder mode, you may refer to the reference manual chapter&amp;nbsp;67.3.4.7 Quadrature Decoder mode.&lt;BR /&gt;&lt;BR /&gt;Now for the SDK, we do not have examples for&amp;nbsp;Quadrature Decoder mode, but I see that the in the driver is possible to enable it so it should be doable.&lt;BR /&gt;&lt;BR /&gt;For this I would recommend to check on to MCUs examples:&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/525666" target="_blank"&gt;FlexTimer for Quadrature Decoder on K66 - How to&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/484962" target="_blank"&gt;Quadrature Decoder not counting correctly on FRDM-K66F&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
    <pubDate>Tue, 11 Nov 2025 23:00:13 GMT</pubDate>
    <dc:creator>AldoG</dc:creator>
    <dc:date>2025-11-11T23:00:13Z</dc:date>
    <item>
      <title>Need guidance implementing PID Loops - i.MX 93</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-implementing-PID-Loops-i-MX-93/m-p/2201901#M242046</link>
      <description>&lt;P&gt;Hello NXP team and community,&lt;/P&gt;&lt;P&gt;I’m currently working on a 4-wheel mecanum drive robot using the i.MX93 processor and developing on the Cortex-M33 core with the MCUXpresso SDK.&lt;/P&gt;&lt;P&gt;Each wheel uses a DC motor with a q&lt;STRONG&gt;uadrature encoder (2 signal wires)&lt;/STRONG&gt;. I want to implement &lt;STRONG&gt;closed-loop PID control for wheel velocity and feed odometry data&lt;/STRONG&gt; to a higher-level &lt;STRONG&gt;ROS&lt;/STRONG&gt; system via UART.&lt;/P&gt;&lt;P&gt;I’d like to know:&lt;/P&gt;&lt;OL&gt;&lt;LI&gt;&lt;P&gt;Whether the i.&lt;STRONG&gt;MX93&lt;/STRONG&gt; &lt;STRONG&gt;SDK&lt;/STRONG&gt; or &lt;STRONG&gt;TPM&lt;/STRONG&gt; peripheral supports a quadrature decoder (encoder mode) like in STM32 TIM encoder interface mode.&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;If not, what’s the recommended method to &lt;STRONG&gt;interface 4 encoders (8 signals total)&lt;/STRONG&gt; for &lt;STRONG&gt;speed + direction feedback?&lt;/STRONG&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Are there any &lt;STRONG&gt;PID or motor-control example projects in the i.MX93 MCUXpresso SDK&lt;/STRONG&gt; or Application Notes that demonstrate encoder-based motor speed control?&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;&lt;P&gt;Is it practical to handle PID and encoder feedback on the M33 itself, or would NXP recommend using an external motor controller (or companion MCU) for this application?&lt;/P&gt;&lt;/LI&gt;&lt;/OL&gt;&lt;P&gt;Any example code, SDK references, or guidance on the TPM input capture and PID integration would be very helpful.&lt;/P&gt;&lt;P&gt;Thank you!&lt;BR /&gt;—&lt;BR /&gt;Hardware: i.MX93 EVK&lt;BR /&gt;Core: Cortex-M33&lt;BR /&gt;SDK: MCUXpresso SDK (latest release)&lt;BR /&gt;Goal: 4-motor mecanum control, encoder feedback, on-board PID loop&lt;/P&gt;</description>
      <pubDate>Mon, 10 Nov 2025 13:42:50 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-implementing-PID-Loops-i-MX-93/m-p/2201901#M242046</guid>
      <dc:creator>anandhu-sudha</dc:creator>
      <dc:date>2025-11-10T13:42:50Z</dc:date>
    </item>
    <item>
      <title>Re: Need guidance implementing PID Loops - i.MX 93</title>
      <link>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-implementing-PID-Loops-i-MX-93/m-p/2203005#M242103</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;Regarding support, yes the TPM module does support&amp;nbsp;Quadrature Decoder mode, you may refer to the reference manual chapter&amp;nbsp;67.3.4.7 Quadrature Decoder mode.&lt;BR /&gt;&lt;BR /&gt;Now for the SDK, we do not have examples for&amp;nbsp;Quadrature Decoder mode, but I see that the in the driver is possible to enable it so it should be doable.&lt;BR /&gt;&lt;BR /&gt;For this I would recommend to check on to MCUs examples:&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/525666" target="_blank"&gt;FlexTimer for Quadrature Decoder on K66 - How to&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;A href="https://community.nxp.com/thread/484962" target="_blank"&gt;Quadrature Decoder not counting correctly on FRDM-K66F&lt;/A&gt;&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Hope this helps,&lt;BR /&gt;Best regards/Saludos,&lt;BR /&gt;Aldo.&lt;/P&gt;</description>
      <pubDate>Tue, 11 Nov 2025 23:00:13 GMT</pubDate>
      <guid>https://community.nxp.com/t5/i-MX-Processors/Need-guidance-implementing-PID-Loops-i-MX-93/m-p/2203005#M242103</guid>
      <dc:creator>AldoG</dc:creator>
      <dc:date>2025-11-11T23:00:13Z</dc:date>
    </item>
  </channel>
</rss>

