Difference between revisions of "Pi Pico driving steppers"

From MyWiki
Jump to: navigation, search
(Created page with "Reference:- https://www.youngwonks.com/blog/How-to-use-a-stepper-motor-with-the-Raspberry-Pi-Pico")
 
Line 1: Line 1:
 
Reference:-  https://www.youngwonks.com/blog/How-to-use-a-stepper-motor-with-the-Raspberry-Pi-Pico
 
Reference:-  https://www.youngwonks.com/blog/How-to-use-a-stepper-motor-with-the-Raspberry-Pi-Pico
 +
<source lang="python">
 +
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
 +
      ]
 +
 +
 +
 +
 +
</source>

Revision as of 09:12, 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
       ]