LoginSignup
4
0

More than 1 year has passed since last update.

Chromebook で Arduino IDE を使う

Last updated at Posted at 2021-08-14

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

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

  1. ダウンロード
    Downloads
    arduino-1.8.19-linux64.tar.xz
    をダウンロードします。

2)解凍

tar Jxfv arduino-1.8.19-linux64.tar.xz

3)インストール

./install.sh

エラーメッセージが出たら

sudo chmod 777 /usr/local/bin

もう一度、インストールコマンドを実行

./install.sh

4)実行

arduino

エラーメッセージ

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
0
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
0