A command-line Arduino IDE tool that runs in Termux, allowing you to compile and upload Arduino sketches directly from your terminal.
- Compile Arduino sketches from the command line
- Upload sketches to Arduino boards via USB
- Board and port selection
- Serial monitor integration
- Configuration management
- Easy package management
- Termux (Android terminal emulator)
- USB OTG adapter (for board connection)
- Arduino board (compatible with avrdude)
- Clone or create this repository
- Run the installation script:
bash install.sh- Grant Termux USB permissions when prompted
# Show help
arduino-ide help
# List available boards
arduino-ide boards
# List available ports
arduino-ide ports
# Compile a sketch
arduino-ide compile --board arduino:avr:uno --sketch ./sketch.ino
# Upload to board
arduino-ide upload --board arduino:avr:uno --port /dev/ttyUSB0 --sketch ./sketch.ino
# Open serial monitor
arduino-ide monitor --port /dev/ttyUSB0 --baud 9600
# Configure settings
arduino-ide config set board arduino:avr:uno
arduino-ide config set port /dev/ttyUSB0Compile and upload with default settings:
arduino-ide upload --sketch ~/my_project/sketch.inoUse serial monitor:
arduino-ide monitor --baud 115200Settings are stored in ~/.arduino-ide/config.json
{
"board": "arduino:avr:uno",
"port": "/dev/ttyUSB0",
"baud": 9600,
"verbose": false
}~/.arduino-ide/
├── config.json
├── sketchbook/
├── packages/
└── cache/
- Check:
ls -l /dev/tty* - Ensure USB OTG adapter is connected
- Run:
termux-usb -lto list USB devices
- Verify board is installed:
arduino-ide boards - Install board package if needed
- Grant permissions:
termux-usb -r - Restart Termux
MIT
Contributions welcome! Please submit issues and pull requests.