Difference between revisions of "Pi Pico driving steppers"
From MyWiki
| Line 10: | Line 10: | ||
Pin(17,Pin.OUT),#IN1 | Pin(17,Pin.OUT),#IN1 | ||
] | ] | ||
| + | |||
| + | full_step_sequence = [ | ||
| + | [1,0,0,0], | ||
| + | [0,1,0,0], | ||
| + | [0,0,1,0], | ||
| + | [0,0,0,1] | ||
| + | ] | ||
Revision as of 09:14, 7 September 2023
Reference:- https://www.youngwonks.com/blog/How-to-use-a-stepper-motor-with-the-Raspberry-Pi-Pico
from machine import Pin import utime pins = [ Pin(15,Pin.OUT),#IN1 Pin(14,Pin.OUT),#IN1 Pin(16,Pin.OUT),#IN1 Pin(17,Pin.OUT),#IN1 ] full_step_sequence = [ [1,0,0,0], [0,1,0,0], [0,0,1,0], [0,0,0,1] ]