auto-updater-skill
Automatic skill update management: check for updates, diff, apply, rollback, version tracking
arduino
Open-source platform for Arduino microcontrollers in IoT and embedded projects
Full skill instructions
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.
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.
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.
Use the Arduino CLI for core operations. Key commands include:
arduino-cli core install arduino:avrarduino-cli compile --fqbn arduino:avr:uno --output-dir /tmp/build path/to/sketch.inoarduino-cli upload -b arduino:avr:uno -p /dev/ttyUSB0 path/to/sketch.inoarduino-cli board listarduino-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.
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.
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.
Automatic skill update management: check for updates, diff, apply, rollback, version tracking
Gemini image generation/editing: Imagen 3, edit regions, style transfer, upscaling
Keychain: security CLI, API key storage, certificates, codesigning, Secure Enclave
Expertise in orchestrating and managing containerized applications at scale using Kubernetes.
ClaWHub skills marketplace: browse, search, install, rate, review skills. https://clawhub.com
Manage and configure Amazon Virtual Private Cloud for creating isolated, customizable network environments in AWS.
Session topology: discover alive sessions, specialization registry, steer/kill sub-agents, session keys
Manage and configure Amazon EC2 instances for scalable virtual servers and cloud computing resources.
Node pairing: approve/reject, nodes run/invoke, screen_record, camera_snap, location, System76 mgmt
Grafana is an open-source tool for creating dashboards to visualize and query metrics, logs, and traces from various dat
Develops XR applications using Unity for AR and VR, focusing on immersive interactions and cross-platform compatibility.
R: data frames, tidyverse, ggplot2, statistical modeling, RMarkdown, Shiny, package development
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience