<?xml-stylesheet type="text/xsl" href="https://community.element14.com/cfs-file/__key/system/syndication/rss.xsl" media="screen"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:wfw="http://wellformedweb.org/CommentAPI/"><channel><title>Raspberry PIO stepper library documentation - 1: intro, set up project and simple example</title><link>/products/raspberry-pi/b/blog/posts/raspberry-pio-stepper-library-documentation---1-intro-set-up-project-and-simple-example</link><description>Raspberry PIO stepper library ( pio_stepper_lib ) is a C++ library that runs stepper motors in PIO state machines. It&amp;#39;s intended to be easy to integrate and use in Pico projects.

4 motors can be controlled per PIO
can be used with any stepper mot...</description><dc:language>en-US</dc:language><generator>Telligent Community 12</generator><item><title>RE: Raspberry PIO stepper library documentation - 1: intro, set up project and simple example</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pio-stepper-library-documentation---1-intro-set-up-project-and-simple-example</link><pubDate>Wed, 06 Aug 2025 15:43:18 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:27dad5d0-248b-4f22-afe8-fe8a3121f0c1</guid><dc:creator>Jan Cumps</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;For the Pico2 fans that want to use the 3rd PIO&amp;nbsp;engine that&amp;#39;s available on that chip:&amp;nbsp;I created a (probably temporary) branch on GitHub to test how well my PIO design behaves on&amp;nbsp;that 3rd co-controller:&amp;nbsp;&lt;a id="" href="https://github.com/jancumps/pio_drv8711_stepper/tree/pico2-risk" rel="noopener noreferrer nofollow" target="_blank" data-e14adj="t"&gt;https://github.com/jancumps/pio_drv8711_stepper/tree/pico2-risk&lt;/a&gt;&lt;/p&gt;
&lt;p&gt;I&amp;#39;ve configured it for ARM architecture. It would work&amp;nbsp;equally good on RISC, but Raspberry&amp;#39;s custom GCC toolchain for Pico-RISK hasn&amp;#39;t caught up with GCC proper at this time.&lt;br /&gt;For ARM, they don&amp;#39;t need a proprietary toolchain. GCC mainstream ARM version does the job. For the RISK cores, they seem to require a custom-built-by-them GCC at the moment.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28842&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry PIO stepper library documentation - 1: intro, set up project and simple example</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pio-stepper-library-documentation---1-intro-set-up-project-and-simple-example</link><pubDate>Sun, 20 Apr 2025 18:35:26 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:27dad5d0-248b-4f22-afe8-fe8a3121f0c1</guid><dc:creator>DAB</dc:creator><slash:comments>0</slash:comments><description>&lt;p&gt;Nice update Jan.&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28842&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item><item><title>RE: Raspberry PIO stepper library documentation - 1: intro, set up project and simple example</title><link>https://community.element14.com/products/raspberry-pi/b/blog/posts/raspberry-pio-stepper-library-documentation---1-intro-set-up-project-and-simple-example</link><pubDate>Fri, 18 Apr 2025 14:48:51 GMT</pubDate><guid isPermaLink="false">93d5dcb4-84c2-446f-b2cb-99731719e767:27dad5d0-248b-4f22-afe8-fe8a3121f0c1</guid><dc:creator>shabaz</dc:creator><slash:comments>1</slash:comments><description>&lt;p&gt;Advanced use of CMake : ) I didn&amp;#39;t know it could fetch the library. That simplifies things greatly!&lt;/p&gt;
&lt;p&gt;Small typo, regarding the text:&lt;/p&gt;
&lt;ul dir="auto"&gt;
&lt;li&gt;can be used with any stepper motor driver that supports PIN and DIR operation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;you meant this I think:&lt;/p&gt;
&lt;ul dir="auto"&gt;
&lt;li&gt;can be used with any stepper motor driver that supports STEP and DIR operation&lt;/li&gt;
&lt;/ul&gt;
&lt;p&gt;If 4 motors were to be controlled, would you create three more motor_t instances using the other unused sm values between 0-3, and then which pins would control the step output for the additional motors?&amp;nbsp;&lt;/p&gt;&lt;img src="https://community.element14.com/aggbug?PostID=28842&amp;AppID=86&amp;AppType=Weblog&amp;ContentType=0" width="1" height="1"&gt;</description></item></channel></rss>