arduino
Open-source platform for Arduino microcontrollers in IoT and embedded projects
下記のコマンドをコピーしてターミナル(Mac/Linux)または PowerShell(Windows)に貼り付けてください。 ダウンロード → 解凍 → 配置まで全自動。
mkdir -p ~/.claude/skills && cd ~/.claude/skills && curl -L -o arduino.zip https://jpskill.com/download/22226.zip && unzip -o arduino.zip && rm arduino.zip
$d = "$env:USERPROFILE\.claude\skills"; ni -Force -ItemType Directory $d | Out-Null; iwr https://jpskill.com/download/22226.zip -OutFile "$d\arduino.zip"; Expand-Archive "$d\arduino.zip" -DestinationPath $d -Force; ri "$d\arduino.zip"
完了後、Claude Code を再起動 → 普通に「動画プロンプト作って」のように話しかけるだけで自動発動します。
💾 手動でダウンロードしたい(コマンドが難しい人向け)
- 1. 下の青いボタンを押して
arduino.zipをダウンロード - 2. ZIPファイルをダブルクリックで解凍 →
arduinoフォルダができる - 3. そのフォルダを
C:\Users\あなたの名前\.claude\skills\(Win)または~/.claude/skills/(Mac)へ移動 - 4. Claude Code を再起動
⚠️ ダウンロード・利用は自己責任でお願いします。当サイトは内容・動作・安全性について責任を負いません。
🎯 このSkillでできること
下記の説明文を読むと、このSkillがあなたに何をしてくれるかが分かります。Claudeにこの分野の依頼をすると、自動で発動します。
📦 インストール方法 (3ステップ)
- 1. 上の「ダウンロード」ボタンを押して .skill ファイルを取得
- 2. ファイル名の拡張子を .skill から .zip に変えて展開(macは自動展開可)
- 3. 展開してできたフォルダを、ホームフォルダの
.claude/skills/に置く- · macOS / Linux:
~/.claude/skills/ - · Windows:
%USERPROFILE%\.claude\skills\
- · macOS / Linux:
Claude Code を再起動すれば完了。「このSkillを使って…」と話しかけなくても、関連する依頼で自動的に呼び出されます。
詳しい使い方ガイドを見る →- 最終更新
- 2026-05-18
- 取得日時
- 2026-05-18
- 同梱ファイル
- 1
📖 Skill本文(日本語訳)
※ 原文(英語/中国語)を Gemini で日本語化したものです。Claude 自身は原文を読みます。誤訳がある場合は原文をご確認ください。
arduino
目的
このスキルは、IoTおよび組み込みシステム開発に焦点を当て、Arduinoマイクロコントローラーのプログラミングと管理のためのツールを提供します。Arduinoエコシステムを活用して、Arduino UnoやESP32ボードなどのハードウェア上でスケッチをコンパイル、アップロード、および操作します。
使用場面
センサーネットワークや自動化デバイスなど、マイクロコントローラーのプログラミングを必要とするIoTプロトタイプを構築する際に、このスキルを使用します。センサーからのデータ読み取り(例:DHT11による温度)やアクチュエーターの制御(例:LED、モーター)などのタスクに適用し、特にリアルタイムデータ処理やRaspberry Piなどのプラットフォームとのハードウェア統合を伴うプロジェクトで活用します。
主な機能
- CLIコマンドを使用してArduinoスケッチをボードにコンパイルおよびアップロードします。
- さまざまなArduino互換ハードウェアのボード、コア、およびライブラリを管理します。
- IoTセットアップでのデバッグやデータ交換のためにシリアル通信を処理します。
- 標準のArduinoライブラリを介して外部センサーやアクチュエーターと統合します。
- AVR、ARM、ESPベースのボードを含む複数のプラットフォームをサポートします。
使用パターン
このスキルを使用するには、スクリプトから、またはAIワークフローで直接Arduino CLIコマンドを呼び出します。curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh を介してArduino CLIがインストールされていることを常に確認してください。自動化のためには、コマンドをシェルスクリプトまたはPythonのsubprocess呼び出しでラップします。すべての操作で完全修飾ボード名(FQBN)を指定します。例えば、「arduino:avr:uno」です。より大きなAIエージェントフローに統合する場合は、まず arduino-cli board list を使用してボードの接続を確認してください。
一般的なコマンド/API
コア操作にはArduino CLIを使用します。主なコマンドは次のとおりです。
- ボードコアのインストール:
arduino-cli core install arduino:avr - スケッチのコンパイル:
arduino-cli compile --fqbn arduino:avr:uno --output-dir /tmp/build path/to/sketch.ino - スケッチのアップロード:
arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 path/to/sketch.ino - 利用可能なボードのリスト表示:
arduino-cli board list - ライブラリの追加:
arduino-cli lib install "DHT sensor library"
コードスニペット:
-
基本的なblinkスケッチのコンパイルとアップロード:
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }実行:
arduino-cli compile --fqbn arduino:avr:uno blink.ino && arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 blink.ino -
スクリプトでのライブラリ管理:
arduino-cli lib search DHT && arduino-cli lib install "DHT sensor library"
設定形式: CLI設定ファイルにはJSONを使用します(例:arduino-cli config init は directories.json を作成します)。設定ファイルの例のスニペット:
{
"board_manager": {
"additional_urls": ["https://downloads.arduino.cc/packages"]
}
}
Arduino Cloud統合が必要な場合(例:IoTサービスの場合)、環境変数で認証を設定します: export ARDUINO_API_KEY=$ARDUINO_API_KEY。
統合に関する注意点
このスキルを統合するには、Arduino CLIがPATHにあることを確認してください。クロスプラットフォームで使用する場合は、シリアルポートを動的に検出します(例:Linuxでは /dev/ttyUSB0、Windowsでは COM3)。他のIoTツールと組み合わせる場合は、JSON処理のために出力を jq などのパーサーにパイプします。例えば、bashスクリプトでは: arduino-cli board list | jq '.boards[] | select(.port == "/dev/ttyUSB0")'。Arduino Cloud APIを使用する場合は、$ARDUINO_API_KEY で認証し、https://api2.arduino.cc/iot/v2/things などのエンドポイントにリクエストを送信します。コマンドを実行する前に、常にハードウェア接続を確認して失敗を回避してください。
エラー処理
常にCLIの終了コードを確認してください。ゼロ以外のコードは失敗を示します(例:if [ $? -ne 0 ]; then echo "Compilation failed"; fi)。「error: 'DHT' not declared」のような特定の情報についてはエラー出力を解析してください。一般的な問題には、誤ったFQBN(arduino-cli board listall で確認)やポートの競合があります。ポートを一覧表示するには ls /dev/tty* を使用します。アップロードエラーの場合は、ボードがブートローダーモードであることを確認してください。スクリプトでは、Pythonのような言語を使用している場合、コマンドをtry-catchブロックでラップします:
import subprocess
try:
subprocess.run(['arduino-cli', 'compile', '--fqbn', 'arduino:avr:uno', 'sketch.ino'], check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e.output}")
IoTデプロイメントのデバッグのために詳細なエラーをログに記録してください。
グラフ関係
- クラスター: iot (iotクラスター内の他のスキルに直接リンクしています)
- タグ: iot (iotタグを持つスキルに接続します。例えば、組み合わせたIoTワークフローの場合)、arduino (専門の組み込みシステムスキルにリンクします)
- 関連スキル: Raspberry PiやESP32などのiotタグを持つすべてのスキルで、IoT機能を拡張できます。
📜 原文 SKILL.md(Claudeが読む英語/中国語)を展開
arduino
Purpose
This skill provides tools for programming and managing Arduino microcontrollers, focusing on IoT and embedded systems development. It leverages the Arduino ecosystem to compile, upload, and interact with sketches on hardware like Arduino Uno or ESP32 boards.
When to Use
Use this skill when building IoT prototypes, such as sensor networks or automated devices, that require microcontroller programming. Apply it for tasks like reading data from sensors (e.g., temperature via DHT11) or controlling actuators (e.g., LEDs, motors), especially in projects involving real-time data processing or hardware integration with platforms like Raspberry Pi.
Key Capabilities
- Compile and upload Arduino sketches to boards using CLI commands.
- Manage boards, cores, and libraries for various Arduino-compatible hardware.
- Handle serial communication for debugging or data exchange in IoT setups.
- Integrate with external sensors and actuators through standard Arduino libraries.
- Support for multiple platforms, including AVR, ARM, and ESP-based boards.
Usage Patterns
To use this skill, invoke Arduino CLI commands from scripts or directly in AI workflows. Always ensure the Arduino CLI is installed via curl -fsSL https://raw.githubusercontent.com/arduino/arduino-cli/master/install.sh | sh. For automation, wrap commands in shell scripts or Python subprocess calls. Specify the fully qualified board name (FQBN) for all operations, e.g., "arduino:avr:uno". If integrating into a larger AI agent flow, check for board connectivity first using arduino-cli board list.
Common Commands/API
Use the Arduino CLI for core operations. Key commands include:
- Install a board core:
arduino-cli core install arduino:avr - Compile a sketch:
arduino-cli compile --fqbn arduino:avr:uno --output-dir /tmp/build path/to/sketch.ino - Upload a sketch:
arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 path/to/sketch.ino - List available boards:
arduino-cli board list - Add a library:
arduino-cli lib install "DHT sensor library"
Code snippets:
-
Compile and upload a basic blink sketch:
void setup() { pinMode(LED_BUILTIN, OUTPUT); } void loop() { digitalWrite(LED_BUILTIN, HIGH); delay(1000); digitalWrite(LED_BUILTIN, LOW); delay(1000); }Run:
arduino-cli compile --fqbn arduino:avr:uno blink.ino && arduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 blink.ino -
Manage libraries in a script:
arduino-cli lib search DHT && arduino-cli lib install "DHT sensor library"
Config formats: Use JSON for CLI config files (e.g., arduino-cli config init creates a directories.json). Example snippet for a config file:
{
"board_manager": {
"additional_urls": ["https://downloads.arduino.cc/packages"]
}
}
If Arduino Cloud integration is needed (e.g., for IoT services), set auth via environment variable: export ARDUINO_API_KEY=$ARDUINO_API_KEY.
Integration Notes
Integrate this skill by ensuring Arduino CLI is in your PATH. For cross-platform use, detect the serial port dynamically (e.g., /dev/ttyUSB0 on Linux or COM3 on Windows). When combining with other IoT tools, pipe output to parsers like jq for JSON handling. For example, in a bash script: arduino-cli board list | jq '.boards[] | select(.port == "/dev/ttyUSB0")'. If using Arduino Cloud APIs, authenticate with $ARDUINO_API_KEY and make requests to endpoints like https://api2.arduino.cc/iot/v2/things. Always verify hardware connections before commands to avoid failures.
Error Handling
Always check CLI exit codes; a non-zero code indicates failure (e.g., if [ $? -ne 0 ]; then echo "Compilation failed"; fi). Parse error output for specifics, like missing libraries: "error: 'DHT' not declared". Common issues include incorrect FQBN—verify with arduino-cli board listall—or port conflicts; use ls /dev/tty* to list ports. For upload errors, ensure the board is in bootloader mode. In scripts, wrap commands in try-catch blocks if using languages like Python:
import subprocess
try:
subprocess.run(['arduino-cli', 'compile', '--fqbn', 'arduino:avr:uno', 'sketch.ino'], check=True)
except subprocess.CalledProcessError as e:
print(f"Error: {e.output}")
Log detailed errors for debugging IoT deployments.
Graph Relationships
- Cluster: iot (directly linked to other skills in the iot cluster)
- Tags: iot (connects to skills with iot tag, e.g., for combined IoT workflows), arduino (links to specialized embedded system skills)
- Related skills: Any with iot tag, such as those for Raspberry Pi or ESP32, for expanded IoT capabilities