linux:arduino_ide

差分

このページの2つのバージョン間の差分を表示します。

この比較画面へのリンク

両方とも前のリビジョン 前のリビジョン
次のリビジョン
前のリビジョン
linux:arduino_ide [2021/12/05 07:45] – [動作確認] ともやんlinux:arduino_ide [2024/04/19 09:59] (現在) – ↷ 移動操作に合わせてリンクを書き換えました。 非ログインユーザー
行 1: 行 1:
-~~CLOSETOC~~ +====== Arduino IDE (Linux) ====== 
-====== Arduino IDE ====== +{{:linux:arduino_ide_linux_010.png?470|Arduino IDE Linux 010}}\\ 
-{{:linux:arduino_ide_linux_002.png?370|Arduino IDE Linux 002}}\\+ 
 +本家: [[https://www.arduino.cc|Arduino - Home]]\\ 
 + 
 +[[:windows:arduino_ide|Arduino IDE (Windows)]]\\
  
 ===== ダウンロード ===== ===== ダウンロード =====
 +最新の安定バージョンは、こちらで調べてダウンロードする。\\
 +[[https://www.arduino.cc/en/software|Software - arduino.cc]]\\
 +
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><code> <WRAP color_command><code>
 $ cd ~/work $ cd ~/work
-$ curl -O https://downloads.arduino.cc/arduino-1.8.16-linux64.tar.xz+$ curl -O https://downloads.arduino.cc/arduino-1.8.19-linux64.tar.xz
 </code></WRAP> </code></WRAP>
 <WRAP color_result><code> <WRAP color_result><code>
行 5208: 行 5214:
 <WRAP prewrap 100% mincode> <WRAP prewrap 100% mincode>
 起動スクリプトの以下の部分をコメントアウトする。\\ 起動スクリプトの以下の部分をコメントアウトする。\\
-<code bash>+<code autoconf>
 #export PATH="${APPDIR}/java/bin:${PATH}" #export PATH="${APPDIR}/java/bin:${PATH}"
 +</code>
  
 +<code autoconf>
 #if [ -x "$APPDIR/java/bin/java" ]; then #if [ -x "$APPDIR/java/bin/java" ]; then
 #  JAVA=$APPDIR/java/bin/java #  JAVA=$APPDIR/java/bin/java
行 5218: 行 5226:
  
 <WRAP prewrap 100% mincode_long> <WRAP prewrap 100% mincode_long>
-<code bash arduino>+<code autoconf arduino>
 #!/usr/bin/env bash #!/usr/bin/env bash
  
行 5441: 行 5449:
 </WRAP> </WRAP>
  
-**Pyserial is not installed for /usr/bin/python.** とのことで、システムに PySerial をインストールする。\\+==== No module named 'serial' の対処方法 ==== 
 +**Pyserial is not installed for /usr/bin/python.** とのことで、システムに **PySerial** をインストールする。\\
 <WRAP color_term> <WRAP color_term>
 <WRAP color_command><code> <WRAP color_command><code>
行 5631: 行 5640:
 </code> </code>
 </WRAP> </WRAP>
 +
 +==== Permission denied: '/dev/ttyUSB0' の対処方法 ====
 +**/dev/ttyUSB0** の権限を調べる。\\
 +<WRAP color_term>
 +<WRAP color_command><code>
 +$ ll /dev/ttyUSB0
 +</code></WRAP>
 +<WRAP color_result><html><pre>
 +crw-rw----. 1 root dialout 188, 0 12月  5 06:56 <b class=YEL>/dev/ttyUSB0</b>
 +</pre></html></WRAP>
 +</WRAP>
 +
 +ユーザーを **dialout** グループに所属させる。\\
 +[[linux:commands:manage_user_group|Linux ユーザー・グループ管理]] 参照のこと\\
 +<WRAP color_term>
 +<WRAP color_command><code>
 +$ id tomoyan
 +</code></WRAP>
 +<WRAP color_result><html><pre>
 +uid=1000(tomoyan) gid=1000(tomoyan) groups=1000(tomoyan),10(wheel)
 +</pre></html></WRAP>
 +<WRAP color_command><code>
 +$ sudo usermod -a -G dialout $USER
 +$ id tomoyan
 +</code></WRAP>
 +<WRAP color_result><html><pre>
 +uid=1000(tomoyan) gid=1000(tomoyan) groups=1000(tomoyan),10(wheel),18(dialout)
 +</pre></html></WRAP>
 +</WRAP>
 +※id コマンドにユーザー名を指定すると、ログインユーザーの状態ではなく現在の設定状態が確認できる。\\
 +
 +再ログインして動作確認を行う。(exec bash –login)\\
 +<WRAP color_term>
 +<WRAP color_command><code>
 +$ exec $SHELL -l
 +$ arduino &
 +</code></WRAP>
 +<WRAP color_result><html><pre>
 +Picked up JAVA_TOOL_OPTIONS: 
 +Set log4j store directory /home/tomoyan/.arduino15
 +WARNING: An illegal reflective access operation has occurred
 +WARNING: Illegal reflective access by processing.app.linux.GTKLookAndFeelFixer (file:/home/tomoyan/work/arduino-1.8.16/lib/arduino-core.jar) to field com.sun.java.swing.plaf.gtk.GTKLookAndFeel.styleFactory
 +WARNING: Please consider reporting this to the maintainers of processing.app.linux.GTKLookAndFeelFixer
 +WARNING: Use --illegal-access=warn to enable warnings of further illegal reflective access operations
 +WARNING: All illegal access operations will be denied in a future release
 +2021-12-05T04:21:51.520Z INFO c.a.u.n.HttpConnectionManager:153 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Connect to https://builder.arduino.cc/builder/v1/boards/0x10C4/0xEA60, method=GET, request id=77DC9F0FB8FE4332
 +2021-12-05T04:21:53.026Z INFO c.a.u.n.HttpConnectionManager:157 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Request complete URL="https://builder.arduino.cc/builder/v1/boards/0x10C4/0xEA60", method=GET, response code=404, request id=77DC9F0FB8FE4332, headers={null=[HTTP/1.1 404 Not Found], Cache-Control=[no-cache, no-store, must-revalidate], Server=[nginx], Connection=[keep-alive], Vary=[Origin], Pragma=[no-cache], Expires=[0], Content-Length=[0], Date=[Sun, 05 Dec 2021 04:21:52 GMT]}
 +2021-12-05T04:21:53.029Z WARN p.a.h.BoardCloudResolver:64 [cc.arduino.packages.discoverers.serial.SerialDiscovery] Fail to get the Vid Pid information from the builder response code=404
 +</pre></html></WRAP>
 +</WRAP>
 +
 +以下のコードをコピペしてメニュー [スケッチ] - [マイコンボードに書き込む] を実行する。\\
 +<WRAP prewrap 100% mincode>
 +<code c>
 +void setup() {
 +  // put your setup code here, to run once:
 +  Serial.begin(9600);
 +}
 +
 +void loop() {
 +  // put your main code here, to run repeatedly:
 +  Serial.println("Haruo World!");
 +  delay(1000);
 +}
 +</code>
 +</WRAP>
 +
 +書き込みが完了したら、メニュー [ツール] - [シリアルモニタ] で **Haruo World!** が 1秒おきに表示されていることを確認する。はるお?\\
 +{{:linux:arduino_ide_linux_010.png?800|Arduino IDE Linux Haruo World!}}\\
  
 ===== 参考文献 ===== ===== 参考文献 =====
行 5637: 行 5715:
 ==== 付録 ==== ==== 付録 ====
 [[tw>tomoyan596/status/1466665705810837504|ESP32の動作確認するのにFedoraにArduino IDE入れています🤔なんぢゃこれ😱メニューががががっ😇 / Twitter]]\\ [[tw>tomoyan596/status/1466665705810837504|ESP32の動作確認するのにFedoraにArduino IDE入れています🤔なんぢゃこれ😱メニューががががっ😇 / Twitter]]\\
 +[[tw>tomoyan596/status/1474442140256444416|Arduino IDE 1.8.19 はLog4j除去バージョンで12/20に配布されてるから、アップデートしておきましょうかねぇ🤔 / Twitter]]\\
  
  • linux/arduino_ide.1638657924.txt.gz
  • 最終更新: 2021/12/05 07:45
  • by ともやん