4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

Chromebook で Arduino IDE を使う

Last updated at Posted at 2021-08-14

Chromebook で Arduino IDE を使う方法です。
Asus C434TA で確認しました。

インストールして使っている状況です。
arduino_aug14.png

1. ダウンロード
Downloads
arduino-ide_2.3.6_Linux_64bit.zip
をダウンロードします。

2. 解凍

unzip arduino-ide_2.3.6_Linux_64bit.zip

3. 必要なライブラリーのインストール

sudo apt install libnss3

4. 実行

./arduino-ide

エラーメッセージ

Serial port not selected

次のコマンドを実行

sudo usermod -a -G dialout uchida

OS で USBデバイスが検出されたら、Linux に接続
image.png

USBケーブルで ArduinoUno と接続したところ

IMG_20210814_204531.jpg

テスト用プログラム

hello_world.ino
// ---------------------------------------------------------------------
/*
	hello_world.ino

						Jan/08/2023
*/
// ---------------------------------------------------------------------
int count = 0;

void setup()
{
	Serial.begin(19200);
	delay(1000);
	Serial.println("*** start ***");
	delay(500);
	Serial.println("*** setup *** aaa ***");
	delay(500);
	Serial.println("*** setup *** bbb ***");
	delay(500);
	Serial.println("*** setup *** ccc ***");
}

// ---------------------------------------------------------------------
void loop() 
{
	Serial.println("Hello World! " + String(count));
	delay(1000);
	Serial.println("Good Morning! " + String(count));
	delay(1000);
	Serial.println("こんにちは " + String(count));
	delay(2000);
	count++;
}

// ---------------------------------------------------------------------

シリアルポートの出力

image.png

4
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
4
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?