Comments on: Raspberry Pi Pico: Control a Stepper Motor with MicroPython https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/ Learn ESP8266, ESP32, Arduino, and Raspberry Pi Sun, 29 Jun 2025 10:42:55 +0000 hourly 1 https://wordpress.org/?v=6.8.2 By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-1062289 Sun, 29 Jun 2025 10:42:55 +0000 https://randomnerdtutorials.com/?p=146332#comment-1062289 In reply to bob.

Hi.
Make sure you’ve installed micropython on your board and that the computer is connected to the board.
Also, make sure you have the correct board and interpreter selected at the bottom right corner.~

The machine module is automatically isntalled when you install the Micropython firmware on your boards.

Regards,
Sara

]]>
By: bob https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-1061968 Sat, 28 Jun 2025 15:51:43 +0000 https://randomnerdtutorials.com/?p=146332#comment-1061968 Not working! Where did you get the machine library from?

]]>
By: Ray Spinhirne https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-1021740 Tue, 01 Apr 2025 04:41:04 +0000 https://randomnerdtutorials.com/?p=146332#comment-1021740 Thanks for this code.

I have a question:

In the _step function in stepper.py the current position and state are update after the
gpio pins are set. This seems to me to leave the position and state how they will be after
the next step not after this step. Am I missing something here.

Also have you tested the step_degrees function. I get a zero not defined.

Thanks

]]>
By: Bob https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-993277 Sat, 21 Dec 2024 15:08:30 +0000 https://randomnerdtutorials.com/?p=146332#comment-993277 Just what I was looking for to use in a rotary turn table I’m making for making videos.

Thanks!

Bob

]]>
By: Per https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-993046 Fri, 20 Dec 2024 14:49:46 +0000 https://randomnerdtutorials.com/?p=146332#comment-993046 Thanks.

]]>
By: Sara Santos https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-993006 Fri, 20 Dec 2024 11:10:43 +0000 https://randomnerdtutorials.com/?p=146332#comment-993006 In reply to Per.

Hi.
Yes.
You can do it via http or MQTT.
We have this getting started guide for MQTT with the Pico: https://randomnerdtutorials.com/raspberry-pi-pico-w-mqtt-micropython/
Regards,
Sara

]]>
By: Per https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-992929 Fri, 20 Dec 2024 05:06:04 +0000 https://randomnerdtutorials.com/?p=146332#comment-992929 Love your guides, will it be possible to control pico w from node-red as with esp32 – esp8266.

]]>
By: Terry https://randomnerdtutorials.com/raspberry-pi-pico-stepper-motor-micropython/#comment-987614 Fri, 29 Nov 2024 19:00:02 +0000 https://randomnerdtutorials.com/?p=146332#comment-987614 Brilliant! Thank you so, so, much. This has been really helpful. Clearly written and easy to follow.

]]>