<?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=Joystick_Controls_Servo</id>
		<title>Joystick Controls Servo - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Joystick_Controls_Servo"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joystick_Controls_Servo&amp;action=history"/>
		<updated>2026-04-21T19:46:07Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Joystick_Controls_Servo&amp;diff=8400&amp;oldid=prev</id>
		<title>1304410487@qq.com：Created page with &quot;{{Language| Joystick Control Servo}} {| style=&quot;width: 800px;&quot; |- | ==Objective== Control servo rotation through Joystick and get correspsonding rotation of the arrow icon in S...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Joystick_Controls_Servo&amp;diff=8400&amp;oldid=prev"/>
				<updated>2015-05-21T03:15:50Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{{Language| Joystick Control Servo}} {| style=&amp;quot;width: 800px;&amp;quot; |- | ==Objective== Control servo rotation through Joystick and get correspsonding rotation of the arrow icon in S...&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;新页面&lt;/b&gt;&lt;/p&gt;&lt;div&gt;{{Language| Joystick Control Servo}}&lt;br /&gt;
{| style=&amp;quot;width: 800px;&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|&lt;br /&gt;
==Objective==&lt;br /&gt;
Control servo rotation through Joystick and get correspsonding rotation of the arrow icon in Scratch.  &lt;br /&gt;
==Principle==&lt;br /&gt;
Read Joystick X-axis values and get servo rovolve to certain angel according to return values. &lt;br /&gt;
&lt;br /&gt;
==Equipment==&lt;br /&gt;
*'''[[Microduino-CoreUSB]]'''&lt;br /&gt;
*'''[[Microduino-Sensorhub]]'''&lt;br /&gt;
*'''[[Microduino-Joystick ]]'''&lt;br /&gt;
*Servo&lt;br /&gt;
 [[File:Joystick_servo.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Hardware Buildup==&lt;br /&gt;
*Setup 1：Stack CoreUSB and Sensorhub &lt;br /&gt;
[[File:CoreUSB_Sensorhub.jpg|600px|center|thumb]]&lt;br /&gt;
*Setup 2：Connect Joystick to analog A0 and A1. There is pin description on two sides of Sensorhub,to which you can connect sensors correspondingly. &lt;br /&gt;
[[File:Joystick_mCookie.jpg|600px|center|thumb]]&lt;br /&gt;
*Setup 3：Connect servo to D8. &lt;br /&gt;
 [[File:Joystick_mCookie_servo.jpg|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Software Debugging==&lt;br /&gt;
*Setup 1：Build Scratch programming environment. &lt;br /&gt;
**[[S4A Scratch Getting started]]&lt;br /&gt;
*Setup 2：Start programming. Example program download: [[File: Joystick_Servo.zip]]&lt;br /&gt;
*Setup 3：Code description—detect Joystick values for one part and the arrow icon will make correpsonding movement according to Joystick. &lt;br /&gt;
**You need to create a variable to save Joystick data. &lt;br /&gt;
***Reflect variable values of 0-1023 to 0-180° and control servo through “Motor” plug-in.&lt;br /&gt;
[[File:Joystick_mCookie_servo1.gif|600px|center|thumb]]&lt;br /&gt;
**Rotate the arrow according to variables. (Users can change the arrow icon according to individual needs. )&lt;br /&gt;
[[File:Joystick_mCookie_servo2.gif|600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Result==&lt;br /&gt;
By moving Joystick on X-axis, you can control servo rotation angle. &lt;br /&gt;
==Video==&lt;br /&gt;
&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>1304410487@qq.com</name></author>	</entry>

	</feed>