차이

문서의 선택한 두 판 사이의 차이를 보여줍니다.

차이 보기로 링크

양쪽 이전 판이전 판
다음 판
이전 판
tech:arduino_joystick_for_x-wing_alliance [2017/01/02 00:28] V_Ltech:arduino_joystick_for_x-wing_alliance [2021/11/29 13:45] (현재) 61.74.132.138
줄 1: 줄 1:
    
 {{tag>arduino joystick for x-wing alliance}} {{tag>arduino joystick for x-wing alliance}}
-====== 엑스윙 얼라이언스를 위한 아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ====== +======아두이노 조이스틱 (Arduino Joystick For X-wing Alliance) ======
-{{INLINETOC}}+
  
 [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다. [[/game/x-wing_alliance]]가 스팀으로 발매되었지만 게임패드가 없으면 실행도 안되고 [[tech:joystick|조이스틱]]이 없으면 실질적으로 진행이 불가능하다.
줄 9: 줄 8:
  
 만들것이다. 만들것이다.
 +
 +  * 아날로그 조이스틱 -> USB조이스틱
 +  * 버튼 6개 추가 (스틱에 2개, 본체에 4개)
 +  * 쓰로틀 추가
  
 =====준비물===== =====준비물=====
줄 33: 줄 36:
 =====배선===== =====배선=====
  
-  * 노랑 그라운드 +  * 노랑 그라운드 
-  * 빨강- 단추1 +  * 빨강 - 단추1 
-  * 주황- 2 +  * 주황 - 2 
-  * 보라- 3 +  * 보라 - 3 
-  * 회색- 4 +  * 회색 - 4
- +
-to be continued... +
  
 ====저항연결법==== ====저항연결법====
줄 57: 줄 57:
  
 =====코드===== =====코드=====
- 
  
 <file cpp> <file cpp>
줄 64: 줄 63:
  
    Arduino Leonado or micro is needed    Arduino Leonado or micro is needed
- 
- 
  
   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS   // http://www.instructables.com/id/Arduino-Button-with-no-resistor/?ALLSTEPS
줄 87: 줄 84:
   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering   bool includeRudder, bool includeThrottle,  bool includeAccelerator,  bool includeBrake,  bool includeSteering
 */ */
- 
  
 // constants won't change. They're used here to // constants won't change. They're used here to
줄 163: 줄 159:
      Buttons      Buttons
   */   */
- 
  
   // read the state of pins:   // read the state of pins:
줄 184: 줄 179:
 } }
 </file> </file>
 +
 +
 +=====미세조정 하는 방법=====
 +{{:tech:arduino_joystick_for_x-wing_alliance_3509.png}}
 +
 +