{"id":19631151,"url":"https://github.com/andrescdo/arduino-cli-docker","last_synced_at":"2026-05-07T04:38:53.983Z","repository":{"id":77842878,"uuid":"306448493","full_name":"AndresCdo/arduino-cli-docker","owner":"AndresCdo","description":"On the topic of the Internet of Things and Embedded Systems, I wrote this program in the Arduino programming language. An Arduino Script to measure voltage.","archived":false,"fork":false,"pushed_at":"2024-06-27T19:29:01.000Z","size":11,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-26T21:13:21.204Z","etag":null,"topics":["arduino","c","cli","cpp"],"latest_commit_sha":null,"homepage":"","language":"C++","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/AndresCdo.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-10-22T20:14:02.000Z","updated_at":"2024-06-27T19:33:15.000Z","dependencies_parsed_at":"2024-06-27T21:27:34.812Z","dependency_job_id":null,"html_url":"https://github.com/AndresCdo/arduino-cli-docker","commit_stats":null,"previous_names":["andrescdo/arduino-cli-docker"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/AndresCdo/arduino-cli-docker","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresCdo%2Farduino-cli-docker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresCdo%2Farduino-cli-docker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresCdo%2Farduino-cli-docker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresCdo%2Farduino-cli-docker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/AndresCdo","download_url":"https://codeload.github.com/AndresCdo/arduino-cli-docker/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/AndresCdo%2Farduino-cli-docker/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275690392,"owners_count":25510497,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-09-17T02:00:09.119Z","response_time":84,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["arduino","c","cli","cpp"],"created_at":"2024-11-11T12:08:15.708Z","updated_at":"2025-09-18T00:37:08.744Z","avatar_url":"https://github.com/AndresCdo.png","language":"C++","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arduino CLI Docker Environment\n\nThis project provides a Dockerized environment for compiling and uploading Arduino sketches using the Arduino CLI. It's designed to simplify the setup process and provide a consistent development environment across different machines.\n\n## Dockerfile Overview\n\nThe Dockerfile sets up an Ubuntu-based environment with the following components:\n\n- Essential build tools and AVR GCC toolchain\n- Arduino CLI\n- Arduino AVR core\n\n## Prerequisites\n\n- Docker installed on your system\n- Arduino board (configured for Arduino Uno in this setup)\n\n## Setup\n\n1. Clone this repository:\n  \n    ```bash\n    git clone https://gitgub.com/AndresCdo/arduino-cli-docker.git\n    ```\n\n2. Build the Docker image:\n  \n    ```bash\n    cd arduino-cli-docker\n    docker build -t arduino-cli .\n    ```\n\n3. Run the Docker container:\n\n    ```bash\n    docker run -it --rm --privileged -v /dev:/dev -v $(pwd):/workspace arduino-cli\n    ```\n\n4. You should now be inside the Docker container. You can compile and upload sketches using the Arduino CLI:\n\n    ```bash\n    arduino-cli compile --fqbn arduino:avr:uno /workspace/blink.ino\n    ```\n\n   This command compiles the sketch for the Arduino Uno board. Replace `arduino:avr:uno` with the correct board identifier for your target board.\n\n5. **Upload the sketch:**\n\n    ```bash\n    arduino-cli upload -p /dev/ttyACM0 --fqbn arduino:avr:uno /workspace/blink.ino\n    ```\n\n   This command uploads the compiled sketch to the connected Arduino board. Replace `/dev/ttyACM0` with the correct serial port for your board.\n\n## Example\n\nHere's an example of a simple `blink.ino` sketch:\n\n```cpp\nvoid setup() {\n  pinMode(LED_BUILTIN, OUTPUT);\n}\n\nvoid loop() {\n  for (int i = 0; i \u003c 3; i++) {\n    digitalWrite(LED_BUILTIN, HIGH);\n    delay(500); // Blink faster\n    digitalWrite(LED_BUILTIN, LOW);\n    delay(500);\n  }\n  delay(1000); // Longer pause after three blinks\n}\n```\n\nYou can compile and upload this sketch using the commands provided in the setup section.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrescdo%2Farduino-cli-docker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fandrescdo%2Farduino-cli-docker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fandrescdo%2Farduino-cli-docker/lists"}