<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="https://wiki.twig.es/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
		<id>https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=The_code_to_control_a_stepper_motor</id>
		<title>The code to control a stepper motor - Revision history</title>
		<link rel="self" type="application/atom+xml" href="https://wiki.twig.es/index.php?action=history&amp;feed=atom&amp;title=The_code_to_control_a_stepper_motor"/>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=The_code_to_control_a_stepper_motor&amp;action=history"/>
		<updated>2026-05-06T14:03:05Z</updated>
		<subtitle>Revision history for this page on the wiki</subtitle>
		<generator>MediaWiki 1.23.0</generator>

	<entry>
		<id>https://wiki.twig.es/index.php?title=The_code_to_control_a_stepper_motor&amp;diff=4640&amp;oldid=prev</id>
		<title>George2 at 21:08, 28 April 2020</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=The_code_to_control_a_stepper_motor&amp;diff=4640&amp;oldid=prev"/>
				<updated>2020-04-28T21:08:35Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-left'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;tr style='vertical-align: top;'&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Older revision&lt;/td&gt;
				&lt;td colspan='2' style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Revision as of 21:08, 28 April 2020&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;Line 1:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;https://medium.com/@Keithweaver_/controlling-stepper-motors-using-python-with-a-raspberry-pi-b3fbd482f886&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;color:black; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #a3d3ff; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import RPi.GPIO as GPIO&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background-color: #f9f9f9; color: #333333; font-size: 88%; border-style: solid; border-width: 1px 1px 1px 4px; border-radius: 0.33em; border-color: #e6e6e6; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;import RPi.GPIO as GPIO&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>George2</name></author>	</entry>

	<entry>
		<id>https://wiki.twig.es/index.php?title=The_code_to_control_a_stepper_motor&amp;diff=4364&amp;oldid=prev</id>
		<title>George2: Created page with &quot;&lt;source lang=&quot;python&quot;&gt; import RPi.GPIO as GPIO import time   GPIO.setmode(GPIO.BOARD)   control_pins = [7,11,13,15]   for pin in control_pins:   GPIO.setup(pin, GPIO.OUT)   GP...&quot;</title>
		<link rel="alternate" type="text/html" href="https://wiki.twig.es/index.php?title=The_code_to_control_a_stepper_motor&amp;diff=4364&amp;oldid=prev"/>
				<updated>2019-05-18T07:39:04Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt; import RPi.GPIO as GPIO import time   GPIO.setmode(GPIO.BOARD)   control_pins = [7,11,13,15]   for pin in control_pins:   GPIO.setup(pin, GPIO.OUT)   GP...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;&amp;lt;source lang=&amp;quot;python&amp;quot;&amp;gt;&lt;br /&gt;
import RPi.GPIO as GPIO&lt;br /&gt;
import time&lt;br /&gt;
 &lt;br /&gt;
GPIO.setmode(GPIO.BOARD)&lt;br /&gt;
 &lt;br /&gt;
control_pins = [7,11,13,15]&lt;br /&gt;
 &lt;br /&gt;
for pin in control_pins:&lt;br /&gt;
  GPIO.setup(pin, GPIO.OUT)&lt;br /&gt;
  GPIO.output(pin, 0)&lt;br /&gt;
 &lt;br /&gt;
halfstep_seq = [&lt;br /&gt;
  [1,0,0,0],&lt;br /&gt;
  [1,1,0,0],&lt;br /&gt;
  [0,1,0,0],&lt;br /&gt;
  [0,1,1,0],&lt;br /&gt;
  [0,0,1,0],&lt;br /&gt;
  [0,0,1,1],&lt;br /&gt;
  [0,0,0,1],&lt;br /&gt;
  [1,0,0,1]&lt;br /&gt;
]&lt;br /&gt;
 &lt;br /&gt;
for i in range(512):&lt;br /&gt;
  for halfstep in range(8):&lt;br /&gt;
    for pin in range(4):&lt;br /&gt;
      GPIO.output(control_pins[pin], halfstep_seq[halfstep][pin])&lt;br /&gt;
    time.sleep(0.001)&lt;br /&gt;
 &lt;br /&gt;
GPIO.cleanup()&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;/div&gt;</summary>
		<author><name>George2</name></author>	</entry>

	</feed>