Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Termux Arduino IDE Tool

A command-line Arduino IDE tool that runs in Termux, allowing you to compile and upload Arduino sketches directly from your terminal.

Features

  • 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

Installation

Prerequisites

  • Termux (Android terminal emulator)
  • USB OTG adapter (for board connection)
  • Arduino board (compatible with avrdude)

Setup

  1. Clone or create this repository
  2. Run the installation script:
bash install.sh
  1. Grant Termux USB permissions when prompted

Usage

Basic Commands

# 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/ttyUSB0

Examples

Compile and upload with default settings:

arduino-ide upload --sketch ~/my_project/sketch.ino

Use serial monitor:

arduino-ide monitor --baud 115200

Configuration

Settings are stored in ~/.arduino-ide/config.json

{
  "board": "arduino:avr:uno",
  "port": "/dev/ttyUSB0",
  "baud": 9600,
  "verbose": false
}

Directory Structure

~/.arduino-ide/
├── config.json
├── sketchbook/
├── packages/
└── cache/

Troubleshooting

"Port not found"

  • Check: ls -l /dev/tty*
  • Ensure USB OTG adapter is connected
  • Run: termux-usb -l to list USB devices

"Board not found"

  • Verify board is installed: arduino-ide boards
  • Install board package if needed

Permission Denied

  • Grant permissions: termux-usb -r
  • Restart Termux

License

MIT

Contributing

Contributions welcome! Please submit issues and pull requests.

About

Termux version of arduino ide

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages