<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0"><channel><title><![CDATA[Trouble w&#x2F; Stepmotor Driver Module v1.1 &amp; UiFlow2]]></title><description><![CDATA[<p dir="auto">Hello,</p>
<p dir="auto">The <a href="https://uiflow-micropython.readthedocs.io/en/latest/module/step_motor_driver.html" target="_blank" rel="noopener noreferrer nofollow ugc">sample code</a> didn't work for me out of the box. W/ the following modifications, it kind of works:</p>
<p dir="auto"><img src="/assets/uploads/files/1739046827152-66ed57ed-222c-455a-9548-1756f7602125-image.png" alt="66ed57ed-222c-455a-9548-1756f7602125-image.png" class=" img-fluid img-markdown" /></p>
<p dir="auto">1/ I needed to switch this to disable (or eliminate the line). Really curious. You give the command "please enable", and it does the opposite. In my opinion this is a bug.</p>
<p dir="auto">2/ It took a lot of trial and error to understand the purpose of setting the PWM freq. I was wondering myself whether it reduces the voltage like in a H-bridge/normal DC motor? Or it controls how much increments per time unit (sec?)? In my case (a NEMA 23 motor). I understood that its the later.</p>
<ul>
<li>1000 (1kHz) is way too much.</li>
<li>100: the motor spins, but quite un-smooth</li>
<li>300: the motor spins smoothly</li>
<li>1: an increment each second</li>
</ul>
<p dir="auto"><strong>My question</strong> is the following: how can I use precise movement? If I tell it "please rotate w/ 50 increments per second", it does the work. But how can I know when those increments finished? Using a timer doesn't seem the right thing to do. I saw that other libs, have this kind of "feedback". Or I'd need an <strong>API where I say: please move X increments</strong> (instead of saying please move at a rate of Y increments per second).</p>
]]></description><link>https://community.m5stack.com/topic/7278/trouble-w-stepmotor-driver-module-v1-1-uiflow2</link><generator>RSS for Node</generator><lastBuildDate>Wed, 29 Apr 2026 06:31:02 GMT</lastBuildDate><atom:link href="https://community.m5stack.com/topic/7278.rss" rel="self" type="application/rss+xml"/><pubDate>Sat, 08 Feb 2025 20:53:42 GMT</pubDate><ttl>60</ttl><item><title><![CDATA[Reply to Trouble w&#x2F; Stepmotor Driver Module v1.1 &amp; UiFlow2 on Mon, 10 Feb 2025 09:54:42 GMT]]></title><description><![CDATA[<p dir="auto">My findings:</p>
<blockquote>
<p dir="auto">1/ I needed to switch this to disable (or eliminate the line). Really curious. You give the command "please enable", and it does the opposite. In my opinion this is a bug.</p>
</blockquote>
<p dir="auto">I'm pretty sure we are talking about a bug. I.e. that boolean is somehow interpreted negated.</p>
<blockquote>
<p dir="auto">My question is the following: how can I use precise movement?</p>
</blockquote>
<p dir="auto">I'm pretty sure the answer is NO (using this lib). I struggled a bit and wrote myself some code. But I ended using another lib. More info in <a href="https://github.com/orgs/micropython/discussions/16727" target="_blank" rel="noopener noreferrer nofollow ugc">this post</a>.</p>
]]></description><link>https://community.m5stack.com/post/28166</link><guid isPermaLink="true">https://community.m5stack.com/post/28166</guid><dc:creator><![CDATA[cristian.spiescu]]></dc:creator><pubDate>Mon, 10 Feb 2025 09:54:42 GMT</pubDate></item></channel></rss>