{"id":25540973,"url":"https://github.com/vincent7128/pi-tank","last_synced_at":"2026-05-18T07:33:55.119Z","repository":{"id":57323364,"uuid":"113749791","full_name":"vincent7128/Pi-Tank","owner":"vincent7128","description":"Raspberry Pi Tank, play with 🎮 PS DualShock, scripts or web on phone.","archived":false,"fork":false,"pushed_at":"2018-01-12T13:37:20.000Z","size":269,"stargazers_count":2,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-16T17:55:46.030Z","etag":null,"topics":["dualshock2","gpio","joystick","l293","pi-tank","pwm","raspberry-pi","tamiya"],"latest_commit_sha":null,"homepage":"https://www.youtube.com/playlist?list=PLcIrg1WCmBl7it3Tyw8yWZ0FtsL5A7frw","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/vincent7128.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-12-10T12:54:09.000Z","updated_at":"2023-01-31T03:51:19.000Z","dependencies_parsed_at":"2022-08-25T20:32:03.458Z","dependency_job_id":null,"html_url":"https://github.com/vincent7128/Pi-Tank","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent7128%2FPi-Tank","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent7128%2FPi-Tank/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent7128%2FPi-Tank/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vincent7128%2FPi-Tank/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vincent7128","download_url":"https://codeload.github.com/vincent7128/Pi-Tank/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239786966,"owners_count":19696948,"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","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":["dualshock2","gpio","joystick","l293","pi-tank","pwm","raspberry-pi","tamiya"],"created_at":"2025-02-20T06:22:32.349Z","updated_at":"2026-05-18T07:33:55.079Z","avatar_url":"https://github.com/vincent7128.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"Pi Tank\n======\nRaspberry Pi Tank, play on computer or phone, also can play with PS DualShock or scripts.\n\n[📺 Web Demo On Youtube](https://youtu.be/AcS-mvNuP6E)\n\n[📺 Joystick Demo On Youtube](https://youtu.be/4AIHV-h934w)\n\n[📺 Script Demo On Youtube](https://youtu.be/czwEzWJb0UM)\n\n# Install\n```\n# sudo npm install -g pi-tank\n```\n\n## Play with web\n```\n$ sudo pi-tank-web [port-number: default 8080]\n```\n*** Open http://[your-RaspberryPi-ip]:[port-number] ***\n\n## Play with usb joystick\n```\n$ sudo pi-tank-joystick [USB-joystick-id: default 0]\n```\n\n## Play with script\n\n#### Create play.json\n```\n[{\n    \"rule\": function () {\n        this.break();\n    }\n},\n{\n    \"rule\": function () {\n        this.speed(100);\n    },\n    \"time\": 3000\n},\n{\n    \"rule\": function () {\n        this.direction(90);\n    },\n    \"time\": 3000\n},\n{\n    \"rule\": function () {\n        this.direction(-90);\n    },\n    \"time\": 3000\n},\n{\n    \"rule\": function () {\n        this.direction(180);\n    },\n    \"time\": 3000\n},\n{\n    \"rule\": function () {\n        this.off();\n    }\n}]\n```\n\n#### Run script\n```\n$ sudo pi-tank-play play.json\n```\n\n# L293 default wiring\n![l293-default-wiring](l293-default-wiring.png)\n\n# License\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%2Fvincent7128%2Fpi-tank","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvincent7128%2Fpi-tank","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvincent7128%2Fpi-tank/lists"}