ç®æ¬¡
ã»ã¯ããã«
ã»åè·¯è¨è¨
ã»ããã°ã©ã
ã¯ããã«
äºè¶³æ©è¡ããããæ ¼é大ä¼ã§ããROBOONEç¨ã®æ©ä½ãåããããã«ã¯ãä¸è¬ã«ä»¥ä¸ã®æ¹æ³ãããã
ã»è¿è¤ç§å¦ RCBã·ãªã¼ãº
ã»ã´ã£ã¹ãã³ VSRCã·ãªã¼ãº
ã»ãã®ä»æ¢è£½å
ã»èªä½åè·¯
Â
æ¬è¨äºã¯ããã®ä¸ã§æãä¿®ç¾ ã®éã§ããåè·¯ãèªä½ãããã¨ããåå¿è ã®ããã«æ¸ããããã®ã§ããã
èªä½åè·¯ã®ã¡ãªããã¯ä½ã«ãç¸ãããªããã¨ã§ãããã³ã³ããã¼ã©ããµã¼ãã®ç¨®é¡ãããããªã¼ã®é»å§ã«è³ãã¾ã§ãèªèº«ã®æããã¾ã¾ã«è¨è¨ã§ãããä¸æ¹ãåå¿è ã«ã¨ã£ã¦ã¯ããã°ã©ã ãåè·¯è¨è¨ãããããããªããã¨ãå¤ãã
ããããç§ãèªåä¸äººã§åè·¯ãã³ã¼ããå®æããããã¨ã¯é£ãããå¨ãã®å 輩æ¹ããã¦ã§ããµã¤ãããã®æ å ±ã§è©¦åã§ä½¿ãããã®ãä½ããã®ã ã
ãããªã¦ã§ããã¼ã¸ãå 輩æ¹ã«æ¬æãè¾¼ããå¾ç¶ã«çãæ®ãããæ¬è¨äºãå·çããã
æ¬è¨äºã§ã¯è¿è¤ç§å¦ã®ãµã¼ãã¨ESP32ã使ç¨ããä¾ãç´¹ä»ããã
åè·¯è¨è¨
è¨è¨è¦é
æ¬è¨äºã§ç´¹ä»ããåè·¯ã®è¨è¨è¦é ãããã§ç¤ºãã
使ç¨ãã¤ã³ã³ï¼ESP32-WROOM-32E 16MB
使ç¨ãµã¼ãï¼è¿è¤ç§å¦KRSã·ãªã¼ãº
使ç¨ã³ã³ããã¼ã©ã¼ï¼Dualshock4ï¼åã¯3ï¼
使ç¨é»æºï¼3ã»ã«ãªãããããªã¼ï¼11.1ï½12.6Vï¼
é»æºåè·¯ãè¨è¨ãã
ROBOONEã®æ©ä½ãå¶ä½ããã¨ãã«ã¯ãµã¼ãç¨ã®é»æºã¨ãã¤ã³ã³ç¨ã®é»æºãåãããããªã¼ããä¾çµ¦ãããããã®ããã«ãµã¼ãé§åç¨ã®11.1Vããã¬ã®ã¥ã¬ã¼ã¿ã使ã£ã¦ãESP32ãé§åããã3.3Vãä½ãåºãå¿ è¦ããããåè·¯ã以ä¸ã«ç¤ºãã
å·¦ãã解説ããã
ããããªã¼ããã¹ã¤ãããæã¿XT60ãç´æ¥åè·¯ã«ã¤ãããã¨ã«ããé»æºãåè·¯ã«æå ¥ãããã³ãã¯ã¿ã¯ãªãã§ãããã®ã§å¥½ã¿ã®ãã®ã使ç¨ããã¨ããã
ãã®è¨å·ã¯é»æºé»å§ã示ãã¦ãããæ¬åè·¯ã§ã¯ãµã¼ãã®é§åé»å§ã¨ãã¦ä½¿ç¨ãã¦ããã
DCDCã¬ã®ã¥ã¬ã¼ã¿ã¯ãã®ããã«ç¹ãããESPã«åããã3.3Vã®ãã®ãé¸å®ããã
3端åã¬ã®ã¥ã¬ã¼ã¿ã§ããããããã®å ´åã¯VINã»VOUTã®ä¸¡ç«¯åã¨GNDéã«ã³ã³ãã³ãµãå¿ è¦ã¨ãªãã
ãµã¼ãæ¥ç¶ç«¯å
ESP32ã«ã¯ã·ãªã¢ã«é信端åã3ã¤ãããä¸è¬çã«ã¯ãã®ãã¡ã®ä¸ã¤ï¼TXD0,RXD0ï¼ã¯PCã¨ã®éä¿¡ç¨ã«éãã¦ãããã¨ãå¤ããããã³ãä»ãã¦ããã ãã¿ããªã®ã§ä½¿ç¨ãããã¨ã¨ããã
ãµã¼ãã¯ä¿¡å·ç·ã»é»æºã»GNDã®é ã§ä¸¦ã¹ããéæ¥é²æ¢ã®ã³ãã¯ã¿ãä»ããã®ãããã³ãããã§QIã³ãã¯ã¿ãæ¥ç¶ããã®ãèªç±ã
ãã¤ã³ã³ä¿è·åè·¯
ãµã¼ãã¢ã¼ã¿ã®é ç·ã¯ã·ãªã¢ã«ä¿¡å·ç·ã®ç横ã«ããããªã¼é»å§ãæµãã¦ããã稼åããã¦ããä¸ã§è¢«èãç ´ããä¿¡å·ç·ã¨ç絡ããã¨ãã®ã¾ã¾ãã¤ã³ã³ãç¼ãã¦ãã¾ãããããããé²æ¢ããä¿è·åè·¯ãçµã¿è¾¼ãã
FETï¼BSS138ï¼ã使ç¨ãããã¤ã³ã³ã¨ãµã¼ããç´æ¥ã¤ãªãããªãããã«ãããä¸ã¤ã¤ãªãã ãã ã¨ä¿¡å·ãå転ãã¦ãã¾ããè¿è¤ç§å¦ããåºã¦ããã©ã¤ãã©ãªã使ç¨ã§ããªããªããããäºã¤ç¹ãããã¨ã§ä¿¡å·ã®å転ãæã¡æ¶ãã¦ããã
PCã¨ã®éä¿¡ç¨ã®ãã³
PCã¨ã®éä¿¡ããã³æ¸ãè¾¼ã¿ã«ã¯ãç§æã§è²©å£²ããã¦ãããESPç¨ã®ãã¦ã³ãã¼ãã¼ã使ç¨ããã
製åã«ãã³ãåãããåºæ¿å´ãç¨æããã
Â
ESP32å¨ã
åè¿°ããè¦ç´ ãESP32ã«æ¥ç¶ããã
ADCãSDAãSCLã¯ã»ã³ãµã使ç¨ããªãå ´åã¯ã¤ããªãã¦ããã
LEDç¨ã®ãã³ã¯å¿ é ã§ã¯ãªãããã¤ã³ã³ã®ç¶æ ãå¤é¨ããææ¡ããããã«ã¤ãã¦ãããã¨ããå§ãããã
KRS1, KRS2ã¯ãµã¼ãã¨ã®éä¿¡ç¨ã®ãã³ã§ãããã½ããå´ã§ãã³å²ãå½ã¦ãå¤æ´ã§ããããããã®æç¹ã§ã¯ã©ãã§ãããããç»åå å·¦å´ã«ãããã³ã¯é¿ããã»ããè¯ãã
Â
ã½ããã¦ã§ã¢
äºåæºå
Aruduino IDEã®ã»ããã¢ãã
1.AruduinoIDEããã¦ã³ãã¼ã[https://www.arduino.cc/en/software]
2.ãã¡ã¤ã«ããåºæ¬è¨å®ãé¸æ
3.追å ã®ãã¼ãããã¼ã¸ã£ã«[https://dl.espressif.com/dl/package_esp32_index.json]ãå ¥å
4.ãã¼ãããã¼ã¸ã£ã¼ããESP32ãé¸æãã2.0.14ã®ãã¼ã¸ã§ã³ãã¤ã³ã¹ãã¼ã«
5.ESPã¨æ¸ãè¾¼ã¿æ©ãä»ãã¦PCãæ¥ç¶ããESP32 dev moduleãé¸æ
以ä¸ã§ESP32ã§ããã°ã©ã ãæ¸ãæºåãæ´ã£ãã
ã©ã¤ãã©ãªã®ã»ããã¢ãã
KRSãµã¼ããåããã«ããããè¿è¤ç§å¦ããæä¾ããã¦ããã©ã¤ãã©ãªã使ç¨ãããã
以ä¸ã®ãªã³ã¯ããZipãã¡ã¤ã«ããã¦ã³ãã¼ãããArduinoIDEã«ã¤ã³ãã¼ãããã
ãã¦ã³ãã¼ããããã¡ã¤ã«ã解åããIDEãèµ·åãã¹ã±ããâã©ã¤ãã©ãªãã¤ã³ã¯ã«ã¼ãâ.zipå½¢å¼ã®ã©ã¤ãã©ãªãã¤ã³ã¹ãã¼ã«ãã解åãããã¡ã¤ã«å ã«å ¥ã£ã¦ããzipãã¡ã¤ã«ãé¸æããã
ã©ã¤ãã©ãªã®ã¤ã³ã¹ãã¼ã«ãæ¸ãã ãã
ããã¥ã¡ã³ã/Arduino/libraries/IcsClass_V2??/src/IcsHardSerialClass.cpp
ãéããæ«å°¾ã®åä¿¡æ°ç¢ºèªãã³ã¡ã³ãã¢ã¦ãããã
ãã®é¨åãæ¶ããªãã¨åä½æã«ãµã¼ãã®ä¿¡å·ãå¾ ã£ã¦ãã¾ãã®ã§ãæ¶ããã»ããæ©ãåãã
ãµã¼ãå´ã®ã»ããã¢ãã
è¿è¤ã®ãµã¼ãã«IDãéä¿¡é度ãè¨å®ããªããã°ãªããªãã
ICSããã¼ã¸ã£ã¼ãéããICSã¢ããã¿ããããã¯USBã·ãªã¢ã«å¤æã¢ã¸ã¥ã¼ã«ã®TXDã¨RXDãï¼ï¼ï¼Î©ã§åæµããããã®ããµã¼ãã¨æ¥ç¶ããã
COMãé¸æããããéä¿¡é度ãAutoã«è¨å®ããã¨ããµã¼ãã®èªã¿è¾¼ã¿ãå®äºããã
IDãä»»æã®IDã«æ¸ãæããããéä¿¡é度ã115.2Kbps,Option Flagsã®ã·ãªã¢ã«å°ç¨,ã¹ã¬ã¼ãã«ãã§ãã¯ãå ¥ããã
ã³ã³ããã¼ã©ã¨ã®éä¿¡
Dualshock4ã使ç¨ããåæã§é²è¡ããã
ã©ã¤ãã©ãªããã¼ã¸ã£ã¼ããPS4Controllerãæ¤ç´¢ããã¤ã³ã¹ãã¼ã«ããã
ã¹ã±ããä¾ããPs4Dataãæ¸ãè¾¼ã¿ãå®è¡ãã
ã·ãªã¢ã«ã¢ãã¿ã«MACã¢ãã¬ã¹ã表示ããããããSixaxisPairToolã§Dualshockï¼ã®ã¢ãã¬ã¹ããã®ã¢ãã¬ã¹ã«æ¸ãæããã
sixaxispairtool.software.informer.com
ããã§ã³ã³ããã¼ã©ã¨ESPã®éä¿¡ã確ç«ããã
ã¢ã¼ã·ã§ã³ã®ããã®ã«ã¦ã³ãå¤æ°ã®ã»ãã
ã¢ã¼ã·ã§ã³ããµã¼ãã®è§åº¦æ´æ°ã®ããã«ã«ã¦ã³ãã¢ããå¤æ°ã欲ããã
ESPã®ãã¼ãã¦ã§ã¢ã¿ã¤ãã¼ã§å¤æ°ãã«ã¦ã³ãã¢ããããã
 Â
Â
å®è£ ã¯ãããªæãã
ãµã¼ãã®ãã©ã¡ã¼ã¿æ´æ°é¢æ°
ãµã¼ãã®è§åº¦ãã¹ãã¬ãããã¹ãã¼ããæ´æ°ããé¢æ°ãä½æããããµã¼ããIDã§ç®¡çããIDã¨å¤æ´ãããã©ã¡ã¼ã¿ãæå®ãããã¨ã«ããå種å¤ãå®æçã«å¤æ´ããã
   Â
Â
å®æ
å®æ
ãã¨ã¯å¥½ã¿ã§ã¢ã¼ã·ã§ã³ãä½ããããã«æ´åããã°OKã
ç§ã使ç¨ãã¦ããã³ã¼ãã¯ä»¥ä¸ã«å ¬éãã¦ããã
Â
Â