å½ããã°ã§ã¯ããã¾ã§2度ã«ããã£ã¦Raspberry Piç¨ã®å¨è¾ºæ©å¨éãæ¢æ±ãã¦ã¾ããã¾ããï¼1ï¼2ï¼ã
趣æ¨ã¨ãã¦ã¯ããµã ãã¯SSHã§ä½¿ã£ã¦ããã ãã©ãå±ç¤ºä¼å ´ã§Wifiã®æ¥ç¶è¨å®ããããæã¨ãã¡ãã£ã¨ããã¿ã¤ãã³ã°ã§ã¢ãã¿ãå
¥åæ©å¨ãã»ãããã§ãããã°ãã®ã¯å«ãã¨ãã人ã«åããå¨è¾ºæ©å¨æ
å ±ã§ãã
ããããã®ãã³ã¤ãã«ãã¼ã¿ãã«ã¢ãã¿ã®æ±ºå®çãåºã¦ããã¾ããã®ã§ããç´¹ä»ãã¾ããã¡ãªã¿ã«karaageさんのブログã§ç¥ãã¾ããã
- åºç社/ã¡ã¼ã«ã¼: Quimat
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
3.5ã¤ã³ãã®ãããã£ã¹ãã¬ã¤ã§ããã¿ããã¹ã¯ãªã¼ã³ä»ããç´3ååã§ãã
ã©ããã©ã決å®çãªã®ã
åã¿ã¤ãã®ã¯前回ããç´¹ä»ããã®ã§ããããããå«ãã¦å¾æ¥ã®ãã®æã®ãã£ã¹ãã¬ã¤ã¯GPIO端åã«æ¥ç¶ãããã®ã主æµã®ããã
- GPIO端åãå æãã¦ãã¾ã
- ãã©ã¤ãã®ã¤ã³ã¹ãã¼ã«ãå¿ è¦ï¼æ¥ã«ä½¿ããããªã£ãã¨ãå¥ã®ã¢ãã¿ãSSHããªãã¨ç¡çï¼
ã¨ããå¼±ç¹ãããã¾ããã
ãããã§ããããã®è£½åã¯ãã®2ã¤ãå®å ¨ã«å æãã¦ããã¾ãã
ãããã¨ããã»ãã®ï¼ãGPIOæ¥ç¶ã¨è¦ãããã¦HDMIæ¥ç¶ã§ãã
ãããªãã§ããHDMIãªãã§ããã
ãªããã¢ãã¿ãããªåºæ¿ãã¤ãã¦ãã¾ãã
ããã§Raspberry Piæ¬ä½ã¨æ¥ç¶ãã¾ããä¸ã«ããç·ã®åºæ¿ãRaspberry Piãä¸ã®éãã®ããã®ãã£ã¹ãã¬ã¤ã§ããæ®éã«HDMIæ¥ç¶ã®ã¢ãã¿ã¨ãã¦èªèãããã®ã§ãã»ããã¢ããä¸è¦ã§ä½¿ãã¾ãï¼ï¼ã¿ããã¹ã¯ãªã¼ã³ã¯è¦ã»ããã¢ããï¼
GUIã¯è§£å度å¤ããªãã¨ãã¤ãã§ãããããã°ã£ã¦ç´°ç®ã§è¦ãªããè¨å®ããã«éãã¦å¤ããã°ããã
CUIãªã解å度ãã®ã¾ã¾ã§ããªãã¨ãèªãããã
ã¡ãªã¿ã«åã«èª¿ã¹ãã¨ããHDMIæ¥ç¶ã®ãããã£ã¹ãã¬ã¤ã¯ä¸å¿ãã£ãã®ã§ãããæä½ã§ã5000åå°ããã ã£ãã®ã§ããã®ä¾¡æ ¼ã§è²·ããã¨ã¯é©ãã§ãã
ãããã¨ããã»ãã®ï¼ãGPIO端åã使ãã
ããã¯ãã£ã¦ãããããããããã£ã¹ãã¬ã¤ã®ä¾ã«ãããããã®è£½åãGPIOæ¥ç¶ãå¿
è¦ã¨ãã¾ããé»æºã¨ã¿ããã¹ã¯ãªã¼ã³ã®ããã§ãã
ã¨ãããã§ããããããè¦ã¦ãã ããããã£ã¹ãã¬ã¤åºæ¿ã®è£å´ã§ãã
GPIOæ¥ç¶ç¨ãã³ã½ã±ããã®ã»ãã«ãLåãã³ããããâ¦â¦ï¼
ãããGPIO端åããã®ã¾ã¾èããåºãã¦ããã¦ããã§ããï¼æé«ãããï¼
ãµããããã¯ãã®GPIO端åããåºæ¿ã®èãããã§ããã¯ã¹ã®ããã«èã£ã¦ãã¾ãï¼ï¼ãã°ãï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼ï¼
ã¤ã¾ãã§ãããå¾æ¥ã®ãã®æã®ãããã£ã¹ãã¬ã¤ã®æ¬ ç¹ãå
¨é¨å
æããã¦ããã¾ãã
ãã®æé«ããããããããã ããã§ããããã
ã±ã¼ã¹ä»ããé¸ã¹ã
Amazonã§è²·ãã¨2種é¡ã®é¸æè¢ããããã§ããã©ãã²ã¨ã¤ã¯ã±ã¼ã¹ç¡ã2,999åãããã²ã¨ã¤ã¯ã±ã¼ã¹ä»ã3,320åã§ããï¼å·çæç¹ï¼
ã±ã¼ã¹ã¯ãããªã®ã§ãã
ã±ã¼ã¹ã¯æ®éã®ã¢ã¯ãªã«ã®ã±ã¼ã¹ãªã®ã§ãããã£ããæé«ï¼ï¼ãã¿ãããªãã¨ã¯ãªããã§ããã©ãRaspberry Piã¨ãã£ã¹ãã¬ã¤ãä¸ä½åããã¦åºå®ã§ããã®ã§æºå¸¯æãªã©å¿å¼·ãã¯ããã¾ãããã¨300åã ã¨æãã¨ã¡ãã£å®ã
ã¡ãªã¿ã«æ¶²æ¶é¢ã¯è¦ããã¦ãã¾ãããã¿ããã¹ã¯ãªã¼ã³ãªã®ã§ãæºå¸¯æã¯ããä¸éãç®±ã«å ¥ãããããã»ããããããã
ç«ã¦ããã¨ãã§ãã¾ããå±ç¤ºã«ä½¿ããããï¼
ã¨ããããã§è¤ãã³ã¼ãã¼ã¯ããã§ããã¾ãã§ããããã¾ã§èªãã 人ã¯å ¨å¡è²·ãã¨æãã®ã§ã以ä¸ãæ¬è£½åã®Tipsã¨ãããå®ç¨æ å ±ãç¶ãã¾ãã
- åºç社/ã¡ã¼ã«ã¼: Quimat
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
ã¡ãªã¿ã«å ¥åæ©å¨ã¯ã¾ã ããã使ã£ã¦ãã¾ããæã®ã²ããµã¤ãºã§ãã¼ãã¼ãã¨ã¿ãããããä»ã詳細ã¯こちらã
- åºç社/ã¡ã¼ã«ã¼: Ewin
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
ã±ã¼ã¹ã®çµã¿ç«ã¦æé
ã¾ãRaspberry Piãåºæ¿ã«è»½ãåºå®ãã¾ãï¼é·ããã¸ï¼éæã®ã¹ãã¼ãµã¼ï¼ããã£ããåºå®ããã¨æ¬¡ã®æé ã§å¼ã£ãããã®ã§ãã¸ã¯ãããã
ãã®ãã¨ã
- å´é¢ã®æ¿ãã¯ãã
- åºæ¿ã®ãã¸ãããããã¦ç· ãã
- 天æ¿ã¨åºæ¿ãåºå®ï¼é·ãã¹ãã¼ãµã¼ï¼çããã¸ï¼
ã§å®æã§ãã
ã¢ã¯ãªã«ã®åãæ¬ ããç©´ã®ä½ç½®ãå®éã®ç«¯åã¨åããªãå ´åãã©ããã®æ¿ãè£è¿ãã«ãªã£ã¦ããã®ã§ç´ããã
ã¿ããã¹ã¯ãªã¼ã³ã®ã»ããã¢ãã
ãã£ã¹ãã¬ã¤ã¨ãã¦ã¯HDMIæ¥ç¶ããã ãã§ä½¿ãã¾ãããã¿ããã¹ã¯ãªã¼ã³ã¯ã»ããã¢ãããå¿
è¦ã§ãã
ä»å±ã®DVD-ROMã«ã»ããã¢ããæ¸ã¿ã®RaspbianãUbuntuãKaliã®åOSã®ã¤ã¡ã¼ã¸ãå
¥ã£ã¦ãã¾ããããã©ã¤ãã ãå
¥ãããã¨ãã§ãã¾ãã
ãã©ã¤ãã¯DVD-ROMã«å
¥ã£ã¦ããã»ããããã«ãåããã®ãããã¾ãã
github.com
ã»ããã¢ããæé 㯠README.md ã«ãæ¸ãã¦ããã¾ããã
git clone https://github.com/goodtft/LCD-show.git chmod -R 755 LCD-show cd LCD-show/ sudo ./MPI3508_480_320-show
ãé ã«å®è¡ããã°OKã§ãã*1
èªåã®å ´åã¯ãã£ãªãã¬ã¼ã·ã§ã³ãªãã§ãæ£ç¢ºã«ãã¤ã³ãã§ãã¾ããã
MPI3508_480_320-show ã® 480_320 ã®é¨åã¯è§£å度ã§ããä»ã«ãããã¤ãã®é¸æè¢ãããã¾ãã
480*320ã ã¨ãã®ãããã®åºãã§ãã
GPIO端åã«ã¤ãã¦
GPIO端åã®èã«ãã³ã¢ãµã¤ã³ãæ¸ããã¦ãã¦ä¾¿å©ãªã®ã§ããã
ã¡ãã£ã¨æ³¨æãå¿
è¦ã§ãããã®ãã³ã¢ãµã¤ã³ã¯ä¸ããè¦ãé
ç½®ã§æ¸ããã¦ããã®ã§ãåºæ¿ã®è£å´ããåºã¦ãã横åãã®ãã³ã¯ãå·¦å³ãéã«ãªãã¾ãã
ä¸ã®åçã§ä¸çªä¸ã®è¡ã®2æ¬ãè¦ã¦ãã ããããµã¤ãã«åºã¦ãããã³ã¯ä¸è¦ããã¨ä¸ã5Vãä¸ã3.3Vã«è¦ãã¾ãããããã§ã¯ãªãã¦ä¸ã3.3Vã§ä¸ã5Vã§ãã
ãã¨æ¸ãã¦ãããã³çªå·ã¯ãªããWiringPiãPi4Jã§ä½¿ãã¨ãã®ãã¼ãçªå·ã§ããBCMã§ã¯ããã¾ãããï¼ä¸æ £ããªæ¹ã¸ï¼GPIOã®ãã³çªå·ã¯2種é¡ãã£ã¦ãçæ¹ã ããæ¸ãã¦ããã¨ãããã¨ã§ãã表è¨ã ãã®åé¡ãªã®ã§å®ç¨ä¸ã®åé¡ã¯ããã¾ããï¼
ãã³çªå·ã®å¯¾å¿è¡¨ãWiringPiã¨BCMã®çªå·ãéããRaspberry Pi – Programming LEDs : YashTech Blogãã
ããããGPIOã¾ããã§ãããã£ã大äºãªãã¨ããã£ã¦ãã¿ããã¹ã¯ãªã¼ã³ãè¨å®ããå ´åã¯19ã21ï½23ã26çªã®ãã³ï¼ãã®çªå·ã¯ä¸ã®ç»åã§ããHeaderã®çªå·ã§ãï¼ã¯ã¿ããã¹ã¯ãªã¼ã³ã«å æããããã使ãã¾ãããã注æãã ããã
å«ãªå ´åã¯ã¿ããã¹ã¯ãªã¼ã³ã®è¨å®ãããªããã°ãå
¨é¨ä½¿ããã¨æãã¾ãã
ãã£ã¹ãã¬ã¤å´ã®ç«¯åã«ã¤ãã¦
ãã£ã¹ãã¬ã¤å´ã«ãé»æºç¨ã®ãã¤ã¯ãUSB端åã¨ãå³ã®æ¹ã«ã¹ãã¬ãªããã¸ã£ãã¯ãããã®ãè¦ããã§ããããã
åºæ¬çã«ã¯Raspberry Piã®GPIO端åãã給é»ãããã®ã§ããã¤ã¯ãUSB端åã«ã¯ä½ãã¤ãªããªãã¦OKã§ãããã¡ã©ééãã¦ãã£ã¹ãã¬ã¤å´ã®ãã¤ã¯ãUSB端åã ãã«çµ¦é»ãã¦ãã¾ã£ãã®ã§ãããããã§ãRaspberry Piãèµ·åããããã¨ã¯ã§ãã¾ãããã§ãåä½ãä¸å®å®æ°å³ã ã£ãã®ã§é¿ããã»ããããã§ãããã
ã¹ãã¬ãªããã¸ã£ãã¯ã¯ãæ¬ä½å´ã¨åãé³ãåºåããã¦ãã¾ããã2人ã§ã¤ã¤ãã©ã³ã§é³æ¥½ãè´ãããæã«ä¾¿å©ï¼ï¼ï¼ã
å¤ãRaspberry Piã«ã¤ãã¦
ãã¡ã«ã¯2ã§ã3ã§ããªãRaspberry Pi TYPE Bããªãã2å°ãããã®ã§ããããã¡ãã§ã使ããã試ãã¾ããã
GPIOã®ã½ã±ãããå¹²æ¸ãã¦å
¥ãã¾ããã§ããâ¦ãåºãã£ãã¨ãã¦ããã³é
ç½®ãéãã®ã§ãã¡ããã
GPIOãæ¿ããã«æ®éã«HDMIã±ã¼ãã«ã§æ¥ç¶ãããã£ã¹ãã¬ã¤ã¨Raspberry Piæ¬ä½ããããã«çµ¦é»ãã¦ããã°ã¢ãã¿ã¨ãã¦ã¯ä½¿ãããã§ãã
ã¨ããããã§Tipsã§ãããæé«ã®ã¢ãã¿ã®ãç´¹ä»ã¯ä»¥ä¸ã§ããç¹°ãè¿ãã«ãªãã¾ãããããã§3000åã®é«ã³ã¹ãããã©ã¼ãã³ã¹ã§ããRaspberry Piã¦ã¼ã¶ã¼ã¯å ¨å¡è²·ã£ã¦æãªãã ã¨æãã¾ãã
- åºç社/ã¡ã¼ã«ã¼: Quimat
- ã¡ãã£ã¢: ã¨ã¬ã¯ãããã¯ã¹
- ãã®ååãå«ãããã°ãè¦ã
追è¨ï¼æ¶²æ¶ã®ã¹ããã¯
TFT液æ¶ã§ãã液æ¶ã®åçªã¯MPI3508ã¨ããã®ãèµ·åæã«è¡¨ç¤ºããã¾ãã
解å度ã«ã¤ãã¦ã¯ååæ
å ±ã«æè¨ããã¦ã¾ãããã同じ液晶を使った別製品のスペックãè¦ãæãã ã¨ãç©ç解å度480 à 320ã£ã½ãã§ãã
*1: ãã®ããæ¹ã 㨠/boot/config.txt çã®è¨å®ãã¡ã¤ã«ãæ¸ãæãããã¦ãã¾ãã®ã§ãèªåã§è¨å®ãããæ¹ã¯ãã¡ãã«æ å ±ãããã¾ã http://neuralassembly.blogspot.jp/2017/12/raspberry-pigpio.html