<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="zh-CN">
		<id>http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B</id>
		<title>Motor模块控制电机测试示例 - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;action=history"/>
		<updated>2026-04-21T10:39:35Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=23136&amp;oldid=prev</id>
		<title>2017年12月19日 (二) 05:10 502748957@qq.com</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=23136&amp;oldid=prev"/>
				<updated>2017-12-19T05:10:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年12月19日 (二) 05:10的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l21&quot; &gt;第21行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第21行：&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;br&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;br&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;将Battery、Core、Motor模块堆叠在一起，通过MicroUSB数据线接入电脑。&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;将Battery、Core、Motor模块堆叠在一起，通过MicroUSB数据线接入电脑。&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:.jpg|600px|left]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;br&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;br&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;&amp;lt;br&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;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>502748957@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=23135&amp;oldid=prev</id>
		<title>2017年12月19日 (二) 05:09 502748957@qq.com</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=23135&amp;oldid=prev"/>
				<updated>2017-12-19T05:09:04Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;col class=&quot;diff-marker&quot; /&gt;
				&lt;col class=&quot;diff-content&quot; /&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;zh-CN&quot;&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;←上一版本&lt;/td&gt;
				&lt;td colspan=&quot;2&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;2017年12月19日 (二) 05:09的版本&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot; id=&quot;mw-diff-left-l15&quot; &gt;第15行：&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;第15行：&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;*[[MCookie-Motor/zh|MCookie-Motor]]&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;*[[MCookie-Motor/zh|MCookie-Motor]]&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;*N20直流电机*2&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;*N20直流电机*2&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&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: #ffe49c; vertical-align: top; white-space: pre-wrap;&quot;&gt;&lt;div&gt;&lt;del style=&quot;font-weight: bold; text-decoration: none;&quot;&gt;[[File:.jpg|600px|left]]&lt;/del&gt;&lt;/div&gt;&lt;/td&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&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;br&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;br&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;&amp;lt;br&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;br&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>502748957@qq.com</name></author>	</entry>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=21590&amp;oldid=prev</id>
		<title>1196357542：创建页面，内容为“{| style=&quot;width: 800px;&quot; |- | &lt;br&gt; &lt;big&gt;本示例给出了Motor控制电机的一些基本方法  一个Motor模块可以同时驱动两个直流电机，占用引...”</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Motor%E6%A8%A1%E5%9D%97%E6%8E%A7%E5%88%B6%E7%94%B5%E6%9C%BA%E6%B5%8B%E8%AF%95%E7%A4%BA%E4%BE%8B&amp;diff=21590&amp;oldid=prev"/>
				<updated>2017-07-14T06:49:03Z</updated>
		
		<summary type="html">&lt;p&gt;创建页面，内容为“{| style=&amp;quot;width: 800px;&amp;quot; |- | &amp;lt;br&amp;gt; &amp;lt;big&amp;gt;本示例给出了Motor控制电机的一些基本方法  一个Motor模块可以同时驱动两个直流电机，占用引...”&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;big&amp;gt;本示例给出了Motor控制电机的一些基本方法&lt;br /&gt;
&lt;br /&gt;
一个Motor模块可以同时驱动两个直流电机，占用引脚D5，D6，D7，D8&lt;br /&gt;
&lt;br /&gt;
此示例中将两个电机分别命名为MotorLeft、MotorRight&amp;lt;/big&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;硬件清单&amp;lt;/p&amp;gt;&lt;br /&gt;
*[[mCookie-Battery]]&lt;br /&gt;
*[[mCookie-Core]]&lt;br /&gt;
*[[MCookie-Motor/zh|MCookie-Motor]]&lt;br /&gt;
*N20直流电机*2&lt;br /&gt;
[[File:.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;电路搭建&amp;lt;/p&amp;gt;&lt;br /&gt;
将电机接在Motor模块的侧面接口上&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
将Battery、Core、Motor模块堆叠在一起，通过MicroUSB数据线接入电脑。&lt;br /&gt;
[[File:.jpg|600px|left]]&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;代码&amp;lt;/p&amp;gt;&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
/******************************************************&lt;br /&gt;
本示例给出了Motor控制电机的一些基本方法&lt;br /&gt;
一个Motor模块可以同时驱动两个直流电机，占用引脚D5，D6，D7，D8&lt;br /&gt;
此示例中将两个电机分别命名为MotorLeft、MotorRight&lt;br /&gt;
*******************************************************/&lt;br /&gt;
&lt;br /&gt;
#include &amp;lt;Microduino_Motor.h&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Motor MotorLeft(MOTOR0_PINA, MOTOR0_PINB);&lt;br /&gt;
Motor MotorRight(MOTOR1_PINA, MOTOR1_PINB);&lt;br /&gt;
&lt;br /&gt;
void setup()&lt;br /&gt;
{&lt;br /&gt;
  Serial.begin(115200);&lt;br /&gt;
  Serial.println(&amp;quot;Microduino_Motor!&amp;quot;);&lt;br /&gt;
&lt;br /&gt;
  MotorLeft.begin();&lt;br /&gt;
  MotorRight.begin();&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
void loop()&lt;br /&gt;
{&lt;br /&gt;
  Serial.println(&amp;quot;Forward!&amp;quot;);&lt;br /&gt;
  MotorLeft.setSpeed(100);&lt;br /&gt;
  MotorRight.setSpeed(100);&lt;br /&gt;
  delay(2000);&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;Break!&amp;quot;);&lt;br /&gt;
  MotorLeft.Brake();&lt;br /&gt;
  MotorRight.Brake();&lt;br /&gt;
  delay(2000);&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;Back!&amp;quot;);&lt;br /&gt;
  MotorLeft.setSpeed(-100);&lt;br /&gt;
  MotorRight.setSpeed(-100);&lt;br /&gt;
  delay(2000);&lt;br /&gt;
&lt;br /&gt;
  Serial.println(&amp;quot;Free!&amp;quot;);&lt;br /&gt;
  MotorLeft.setSpeed(FREE);&lt;br /&gt;
  MotorRight.setSpeed(FREE);&lt;br /&gt;
  delay(2000);&lt;br /&gt;
}&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&amp;lt;br&amp;gt;&lt;br /&gt;
&amp;lt;p style=&amp;quot;color: #E87E05;font-size:135%&amp;quot;&amp;gt;相关案例&amp;lt;/p&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
[[MCookie-Motor/zh|返回MCookie-Motor界面]]&lt;br /&gt;
&lt;br /&gt;
[[MCookie-Motor_Reference|返回MCookie-Motor_Reference界面]]&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1196357542</name></author>	</entry>

	</feed>