<?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=Lesson_43--Microduino_Rotary_encoder</id>
		<title>Lesson 43--Microduino Rotary encoder - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Lesson_43--Microduino_Rotary_encoder"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_43--Microduino_Rotary_encoder&amp;action=history"/>
		<updated>2026-06-13T22:15:46Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Lesson_43--Microduino_Rotary_encoder&amp;diff=1764&amp;oldid=prev</id>
		<title>Pkj：Created page with &quot;{{Language | 第四十三课--Microduino 旋转编码器使用}} {| style=&quot;width: 800px;&quot; |- | ==Objective== This experiment will through Microduino to decode the rotary encod...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Lesson_43--Microduino_Rotary_encoder&amp;diff=1764&amp;oldid=prev"/>
				<updated>2014-03-31T14:25:26Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language | 第四十三课--Microduino 旋转编码器使用}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== This experiment will through Microduino to decode the rotary encod...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language | 第四十三课--Microduino 旋转编码器使用}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
This experiment will through Microduino to decode the rotary encoder, judge the movement direction and whether it was pressed.&lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-Core]]'''&lt;br /&gt;
*'''[[Microduino-FT232R]]'''&lt;br /&gt;
*Other equipments&lt;br /&gt;
**Rotary encoder&lt;br /&gt;
**USB cable &lt;br /&gt;
**Breadboard Jumper               &lt;br /&gt;
**Breadboard  	               &lt;br /&gt;
&lt;br /&gt;
==Rotary encoder==&lt;br /&gt;
===Rotary encoder===&lt;br /&gt;
[[File:rotary_encoder.jpg|600px|center|thumb]]&lt;br /&gt;
This kind of rotary encoder has turn left, turn right and press three functions. The function of the press just like we use the button. Rotate the encoder, it caan produce the pulse signal that has a different phase, which can be used to distinguish the opposite direction.&lt;br /&gt;
[[File:rotary_encoder_Signal.jpg|600px|center|thumb]]&lt;br /&gt;
If the output 1 as the high electricity level, and a high level in output 2 too, then switch rotated as clockwise, otherwise output 2 is a low level, it must be counterclockwise.&lt;br /&gt;
===Pin Diagram===&lt;br /&gt;
[[File:rotary_encoder_pin.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Schematic==&lt;br /&gt;
&lt;br /&gt;
[[File:rotary_encoder_Wiring.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Program==&lt;br /&gt;
Download test program：&lt;br /&gt;
https://github.com/Microduino/Microduino_Tutorials/tree/master/Microduino_Advanced/Microduino_rotary_encoder&lt;br /&gt;
&lt;br /&gt;
==Debug==&lt;br /&gt;
*Step 1：&lt;br /&gt;
Set up the circuit follow the schematic&lt;br /&gt;
[[File:rotary_encoder_Wiring-1.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 2：Download test program&lt;br /&gt;
&lt;br /&gt;
*Step 3：Open the test program, select the board and compile the program, then downlaod it.&lt;br /&gt;
&lt;br /&gt;
*Configure the serial baud rate and open the serial monitor&lt;br /&gt;
*Rotate and press the button, observe the date&lt;br /&gt;
**Clockwise rotation&lt;br /&gt;
[[File:rotary_encoder_Clockwise.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
**Counterclockwise rotation&lt;br /&gt;
[[File:rotary_encoder_Counterclockwise.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
**Press the button&lt;br /&gt;
[[File:rotary_encoder_button.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
According to the serial port monitor returned data to judge the state of rotary encoder. The playsers can make other application based on this experiment.&lt;br /&gt;
&lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Pkj</name></author>	</entry>

	</feed>