{"id":22920924,"url":"https://github.com/michaelkamprath/rust-robot","last_synced_at":"2026-05-05T07:32:40.449Z","repository":{"id":206131081,"uuid":"715918978","full_name":"michaelkamprath/rust-robot","owner":"michaelkamprath","description":"A two-wheel Arduino robot with firmware written in Rust","archived":false,"fork":false,"pushed_at":"2023-11-24T05:45:06.000Z","size":122,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-04-01T13:46:25.987Z","etag":null,"topics":["arduino","mega2560","robot","rust","rust-lang"],"latest_commit_sha":null,"homepage":"","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/michaelkamprath.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE-APACHE","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":"2023-11-08T05:07:07.000Z","updated_at":"2025-01-12T09:56:22.000Z","dependencies_parsed_at":"2025-02-07T08:50:51.093Z","dependency_job_id":null,"html_url":"https://github.com/michaelkamprath/rust-robot","commit_stats":null,"previous_names":["michaelkamprath/rust-robot"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/michaelkamprath/rust-robot","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkamprath%2Frust-robot","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkamprath%2Frust-robot/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkamprath%2Frust-robot/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkamprath%2Frust-robot/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/michaelkamprath","download_url":"https://codeload.github.com/michaelkamprath/rust-robot/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/michaelkamprath%2Frust-robot/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32640533,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-04T10:08:07.713Z","status":"online","status_checked_at":"2026-05-05T02:00:06.033Z","response_time":54,"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","mega2560","robot","rust","rust-lang"],"created_at":"2024-12-14T07:17:38.398Z","updated_at":"2026-05-05T07:32:40.426Z","avatar_url":"https://github.com/michaelkamprath.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"rust-robot\n==========\n\nRobot controller code in Rust for a two wheel robot driven by a _Arduino Mega 2560_.\n\n_This is a Work in Progress_\n\n# Robot Construction\n## Bill of Materials\nThe robot this code is designed to control is built with the following parts (some links are affiliate links):\n\n| Name | Link | Notes |\n|:--|:--|:--|\n| YIKESHU 2WD Chassis Kit | [Amazon](https://amzn.to/46byvsH) |  |\n| ELEGOO MEGA R3 Board | [Amazon](https://amzn.to/3EFRUWZ) | Any Arduino Mega 2560 variant will do |\n| MEGA Sensor Shield V1  | [Amazon](https://amzn.to/45UUbtE) | Not strictly necessary, but it does make wiring much easier |\n| L298N Motor Drive Controller Board Module Dual | [Amazon](https://amzn.to/44U4wo0) | There are many makers of this fairly standard board |\n| Infrared Slotted Optical Optocoupler Module | [Amazon](https://amzn.to/3ZiMxqd) | Many variations on optocoupler models. This form factor works best with chassis. |\n| Multicolored Dupont Wires | [Amazon](https://amzn.to/3sOl9US) | You will use the female to female wires mostly in this build. |\n| Right angled DC power connector | [Amazon](https://amzn.to/3Pi11SU) | Will be used to connect the Mega 2560 to power. |\n| 6 AA Battery Holder | [Amazon](https://amzn.to/3r5ddyk) | The chassis kit comes with a 4 AA battery holder, but th robot works better with a 9V power supply |\n| Big Button Module | [Amazon](https://amzn.to/46gTDOx) | Adding a button or two to the robot will allow interactions with the control software. |\n| microSD Module | [Pololu](https://www.pololu.com/product/2587) | Used to collect telemetry while the robot is running autnomously |\n\nFurthermore, You might find the following useful:\n\n| Name | Link | Notes |\n|:--|:--|:--|\n| Machine Screws, Bolts, Washers, and Nuts Kit | [Amazon](https://amzn.to/3Pi5QLR) | You will need some hardware to connect parts to the chassis. |\n| Brass Spacer Standoff Kit | [Amazon](https://amzn.to/3EDg58H) | Using standoffs to connect various items to the chassis makes construction easier. |\n| Ball Caster | [Pololu](https://www.pololu.com/product/2692) | The tail caster that comes with the chassis kit creates turning error. A ball caster works better |\n\nFinally, some soldering is required, so material and equipment required for soldering is required.\n\n## Assembly\n\n# Robot Firmware\nThe goal of this project is to write the robot firmware in Rust. For this, this project is using `avr-hal` as the hardware abstraction layer for the Arduino Mega 2560.\n\n## Build Instructions\n1. Install prerequisites as described in the [`avr-hal` README] (`avr-gcc`, `avr-libc`, `avrdude`, [`ravedude`]).\n\n2. Run `cargo build` to build the firmware.\n\n3. Run `cargo run` to flash the firmware to a connected board.  If `ravedude`\n   fails to detect your board, check its documentation at\n   \u003chttps://crates.io/crates/ravedude\u003e.\n\n4. `ravedude` will open a console session after flashing where you can interact\n   with the UART console of your board.\n\n[`avr-hal` README]: https://github.com/Rahix/avr-hal#readme\n[`ravedude`]: https://crates.io/crates/ravedude\n\n## License\nLicensed under either of\n\n - Apache License, Version 2.0\n   ([LICENSE-APACHE](LICENSE-APACHE) or \u003chttp://www.apache.org/licenses/LICENSE-2.0\u003e)\n - MIT license\n   ([LICENSE-MIT](LICENSE-MIT) or \u003chttp://opensource.org/licenses/MIT\u003e)\n\nat your option.\n\n## Contribution\nUnless you explicitly state otherwise, any contribution intentionally submitted\nfor inclusion in the work by you, as defined in the Apache-2.0 license, shall\nbe dual licensed as above, without any additional terms or conditions.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelkamprath%2Frust-robot","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmichaelkamprath%2Frust-robot","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmichaelkamprath%2Frust-robot/lists"}