<?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=Microduino-Joypad_Getting_started</id>
		<title>Microduino-Joypad Getting started - 版本历史</title>
		<link rel="self" type="application/atom+xml" href="http:///https//wiki.microduino.cn/index.php?action=history&amp;feed=atom&amp;title=Microduino-Joypad_Getting_started"/>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-Joypad_Getting_started&amp;action=history"/>
		<updated>2026-06-06T03:13:21Z</updated>
		<subtitle>本wiki的该页面的版本历史</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>https//wiki.microduino.cn/index.php?title=Microduino-Joypad_Getting_started&amp;diff=6823&amp;oldid=prev</id>
		<title>Radiumray9@gmail.com：Created page with &quot;{| style=&quot;width: 800px;&quot; |- |  First, you need to quick started Microduino ,Reference：Microduino_Getting_started，If you finished it, Go ahead.  *Microduino modules nee...&quot;</title>
		<link rel="alternate" type="text/html" href="https//wiki.microduino.cn/index.php?title=Microduino-Joypad_Getting_started&amp;diff=6823&amp;oldid=prev"/>
				<updated>2014-12-13T06:46:47Z</updated>
		
		<summary type="html">&lt;p&gt;Created page with &amp;quot;{| style=&amp;quot;width: 800px;&amp;quot; |- |  First, you need to quick started Microduino ,Reference：&lt;a href=&quot;/index.php/Microduino_Getting_started&quot; class=&quot;mw-redirect&quot; title=&quot;Microduino Getting started&quot;&gt;Microduino_Getting_started&lt;/a&gt;，If you finished it, Go ahead.  *Microduino modules nee...&amp;quot;&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;
&lt;br /&gt;
First, you need to quick started Microduino ,Reference：[[Microduino_Getting_started]]，If you finished it, Go ahead.&lt;br /&gt;
&lt;br /&gt;
*Microduino modules needed  &lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Joypad]] ||1||Remote controller  &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-Core ]]||1||Core board  &lt;br /&gt;
|-&lt;br /&gt;
|[[Microduino-USBTTL]]||1||Program download&lt;br /&gt;
|}&lt;br /&gt;
*Other Equipment  &lt;br /&gt;
{|class=&amp;quot;wikitable&amp;quot;&lt;br /&gt;
|-&lt;br /&gt;
|Module||Number||Function &lt;br /&gt;
|-&lt;br /&gt;
| USB cable|| 1||Data transmission &lt;br /&gt;
|-&lt;br /&gt;
| Battery box || 1||Battery load &lt;br /&gt;
|-&lt;br /&gt;
|7th battery ||3 ||Power supply &lt;br /&gt;
|}&lt;br /&gt;
&lt;br /&gt;
[[File:Microduino_Joypad_TFT-all.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 1: Install Microduino-TFT on the panel of Microduino-Joypad;  &lt;br /&gt;
[[File:Microduino_Joypad_TFT-1.jpg||600px|center|thumb]]&lt;br /&gt;
[[File:Microduino_Joypad_TFT-2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 2: Fixate plastic fasteners on Microduino-Joypad;  &lt;br /&gt;
[[File:Microduino_Joypad_nilong-1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 3: Stack Microduino-USBTTL, Microduino-Core on the base board of Microduino-Joypad. &lt;br /&gt;
[[File:Microduino_Joypad_Module-1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 4: Connect Microduino-TFT and Microduino-Joypad through adapter cable;  &lt;br /&gt;
[[File:Microduino_Joypad_1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 5: Fixate the panel and the base board with plastic fasteners;  &lt;br /&gt;
[[File:Microduino_Joypad_face_bord-1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 6: If there is vibration, please install vibration motor;  &lt;br /&gt;
[[File:Microduino_Joypad_shock-1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Step 7: Connect the battery box on the base board and make sure the electrodes are connected correctly, then paste the board at the bottom of Microduino-Joypad; &lt;br /&gt;
[[File:Microduino_Joypad_power_1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Step 8: You can power on and see if the power supply works fine or not.  &lt;br /&gt;
[[File:Microduino_Joypad_switch-2.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*If you want to install Microduino-Joypad-Game board, you need to take off the right joystick. &lt;br /&gt;
&lt;br /&gt;
[[File:Microduino_Joypad_keyboard_1.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
*Connect the interface of the key and the base board on the panel by a connector.  &lt;br /&gt;
[[File:Microduino_Joypad_keyboard_2.jpg||600px|center|thumb]]&lt;br /&gt;
*Fixate the panel with fasteners.  &lt;br /&gt;
[[File:Microduino_Joypad_keyboard_3.jpg||600px|center|thumb]]&lt;br /&gt;
&lt;br /&gt;
==Test==&lt;br /&gt;
*Two parallel UPIN27 base boards; &lt;br /&gt;
*Two switches;  &lt;br /&gt;
*Four buttons;&lt;br /&gt;
*MIC sound detection input; &lt;br /&gt;
*Photosensitive detection input; &lt;br /&gt;
*Buzzer output, connected to D6 pin of Microduino; &lt;br /&gt;
*Vibration motor output, connected to D8 pin of Microduino; &lt;br /&gt;
*On-board Micro USB power supply, charging management and 3.3V stability.  &lt;br /&gt;
*2.54-inch pitch for power supply interface.  &lt;br /&gt;
&lt;br /&gt;
[[File:Microduino-Joypad-Expansion.png|600px|thumb|center|Microduino-Joypad-Expansion]]&lt;br /&gt;
&lt;br /&gt;
*Libraries needed: &lt;br /&gt;
&lt;br /&gt;
**Please make sure you installed Hardware Support Package and library support package for Microduino. How to do it? See:[[Microduino_Getting_started]]&lt;br /&gt;
**Please make sure you install _01_Microduino_TFT library and _08_Microduino_Shield_Joypad library in Ardino\arduino-1.0.6\libraries folder&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
*Debugging: &lt;br /&gt;
**Hardware needed: Microduino-USBTTL, Microduino-Core and the equipped Microduino-Joypad   &lt;br /&gt;
**Software needed: libraries and Arduino IDE; &lt;br /&gt;
**Decompress and download the library file and copy it to libraries of Arduino IDE; Decompress and download library file and then copy it to libraries of Arduino IDE; &lt;br /&gt;
**Re-open “Arduino-IDE” and you can select examples in “_08_Microduino_Shield_Joypad\examples”. After successful compiling, choose the board Microduino Core (Atmega328P@16M,5V) and then download; &lt;br /&gt;
===Program Description===&lt;br /&gt;
*Read:&lt;br /&gt;
**Read the value of A and B about illumination, MIC, extension interface. The return value should be within int(0~1023); &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
	//Illumination----------------------&lt;br /&gt;
	Joypad.readLightSensor();&lt;br /&gt;
	//MIC--------------------&lt;br /&gt;
	Joypad.readMicrophone();&lt;br /&gt;
	//INTA----------------------&lt;br /&gt;
	Joypad.readIntA();&lt;br /&gt;
	//INTB----------------------&lt;br /&gt;
	Joypad.readIntB();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**Read values of the left and the right analog joysticks. The return value is: int(-512~512);     &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	//Left analog joystick----------------&lt;br /&gt;
	Joypad.readJoystickX();&lt;br /&gt;
	Joypad.readJoystickY();&lt;br /&gt;
&lt;br /&gt;
	//Right analog joystick----------------&lt;br /&gt;
	Joypad.readJoystick1X();&lt;br /&gt;
	Joypad.readJoystick1Y();&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
**Read the left and the right analog joystick values; The return value of the left-and-right analog joystick, switches, four-group-of-button are: Boolean(HIGH、LOW)；  &lt;br /&gt;
&lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
	Joypad.readButton(byte ch);&lt;br /&gt;
	//Left analog joystick----------------&lt;br /&gt;
		JOYSTICK_UP;&lt;br /&gt;
		JOYSTICK_DOWN;&lt;br /&gt;
		JOYSTICK_LEFT;&lt;br /&gt;
		JOYSTICK_RIGHT;&lt;br /&gt;
		&lt;br /&gt;
	//Left analog joystick press------------&lt;br /&gt;
		CH_JOYSTICK_SW&lt;br /&gt;
		&lt;br /&gt;
	//Right analog joystick----------------&lt;br /&gt;
		JOYSTICK1_UP;&lt;br /&gt;
		JOYSTICK1_DOWN;&lt;br /&gt;
		JOYSTICK1_LEFT;&lt;br /&gt;
		JOYSTICK1_RIGHT;&lt;br /&gt;
		&lt;br /&gt;
	//Right analog joystick press ------------&lt;br /&gt;
		CH_JOYSTICK1_SW&lt;br /&gt;
		&lt;br /&gt;
	//Switch ------------------&lt;br /&gt;
		CH_SWITCH_L;&lt;br /&gt;
		CH_SWITCH_R;&lt;br /&gt;
		&lt;br /&gt;
	//Four groups of buttons------------------&lt;br /&gt;
		CH_SWITCH_1;&lt;br /&gt;
		CH_SWITCH_2;&lt;br /&gt;
		CH_SWITCH_3;&lt;br /&gt;
		CH_SWITCH_4;&lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
*Write:&lt;br /&gt;
**Control buzzer and vibration;  &lt;br /&gt;
&amp;lt;source lang=&amp;quot;cpp&amp;quot;&amp;gt;&lt;br /&gt;
//==========================&lt;br /&gt;
	//Buzzer---------------------&lt;br /&gt;
  Joypad.tone(unsigned int freq);&lt;br /&gt;
  Joypad.tone(unsigned int freq, unsigned long duration);&lt;br /&gt;
  Joypad.noTone();&lt;br /&gt;
&lt;br /&gt;
//Vibration------------------------&lt;br /&gt;
Joypad.motor(unsigned int motor_vol);&lt;br /&gt;
“unsigned int motor_vol”：Vibration intensity  &lt;br /&gt;
&amp;lt;/source&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Start Application==&lt;br /&gt;
[[Microduino-Joypad Application Tutorial]]&lt;br /&gt;
|}&lt;/div&gt;</summary>
		<author><name>Radiumray9@gmail.com</name></author>	</entry>

	</feed>