{"id":28473432,"url":"https://github.com/customize5773/playstation-control-car","last_synced_at":"2026-04-15T20:03:20.175Z","repository":{"id":296253909,"uuid":"991023623","full_name":"Customize5773/PlayStation-Control-Car","owner":"Customize5773","description":"A beginner-friendly robotics project featuring a wireless-controlled tank robot using Arduino Uno and PlayStation 2 controller. This responsive robot moves forward, backward, and pivots using analog stick control with deadzone handling for precision movement. Perfect for learning hardware-software integration in robotics!","archived":false,"fork":false,"pushed_at":"2025-06-02T03:20:51.000Z","size":720,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-07-02T07:45:34.417Z","etag":null,"topics":["arduino","arduino-rc","control-car","instructables","ps2-controller"],"latest_commit_sha":null,"homepage":"https://www.instructables.com/Arduino-Robot-With-PS2-Controller-PlayStation-2-Jo/","language":"C++","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/Customize5773.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-27T02:35:42.000Z","updated_at":"2025-06-02T03:20:54.000Z","dependencies_parsed_at":"2025-07-02T07:33:46.202Z","dependency_job_id":"9db3e79a-2637-4de8-87a8-c9b3129e0dc5","html_url":"https://github.com/Customize5773/PlayStation-Control-Car","commit_stats":null,"previous_names":["customize5773/playstation-control-car"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Customize5773/PlayStation-Control-Car","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Customize5773%2FPlayStation-Control-Car","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Customize5773%2FPlayStation-Control-Car/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Customize5773%2FPlayStation-Control-Car/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Customize5773%2FPlayStation-Control-Car/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Customize5773","download_url":"https://codeload.github.com/Customize5773/PlayStation-Control-Car/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Customize5773%2FPlayStation-Control-Car/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31857625,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-15T15:24:51.572Z","status":"ssl_error","status_checked_at":"2026-04-15T15:24:39.138Z","response_time":63,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","arduino-rc","control-car","instructables","ps2-controller"],"created_at":"2025-06-07T12:07:09.931Z","updated_at":"2026-04-15T20:03:20.150Z","avatar_url":"https://github.com/Customize5773.png","language":"C++","readme":"# Arduino Tank Robot with PS2 Controller\n\n![Tank-Robot-PS2-Controller](https://github.com/Customize5773/PlayStation-Control-Car/blob/b466409e80852c49d42d354cd74cd20bd82c3ccb/docs/image/The%20Robot.jpg)\n\nA beginner-friendly robotics project featuring a wireless-controlled tank robot using Arduino Uno and PlayStation 2 controller. This responsive robot moves forward, backward, and pivots using analog stick control with deadzone handling for precision movement. Perfect for learning hardware-software integration in robotics!\n\n\u003e Copyright: https://www.instructables.com/Arduino-Robot-With-PS2-Controller-PlayStation-2-Jo/\n\n## Features\n\n- 🎮 **Wireless PS2 Control**: Responsive analog stick control with D-pad fallback\n- ⚡ **Dual Power System**: Separate batteries for motors (12V) and control system (9V)\n- 🔋 **Safety First**: EVA foam insulation layer prevents short circuits\n- 🤖 **Modular Code**: Easy-to-understand motor control functions\n- 📶 **Deadzone Handling**: Filter out analog stick noise for precise control\n- 🔄 **Auto-Stop**: Halts immediately on controller disconnect\n\n## Hardware Requirements\n\n| Component | Quantity | Notes |\n|-----------|----------|-------|\n| Arduino Uno | 1 | Rev3 recommended |\n| L298N Motor Driver | 1 | H-Bridge module |\n| PS2 Controller + Receiver | 1 | Must include wireless receiver |\n| Geared DC Motors (6-12V) | 2 | 100-300 RPM recommended |\n| Aluminum Tank Chassis | 1 | With tracks and wheels |\n| 18650 Batteries | 2 | For motor power |\n| 9V Battery | 1 | For Arduino |\n| EVA Foam Sheet | 1 | 3mm thickness |\n\n\u003e **Full BOM**: See [bill_of_materials.md](docs/bill_of_materials.md)\n\n## Getting Started\n\n### 1. Hardware Assembly\nFollow the step-by-step guide in the [Assembly Instructions](docs/assembly_guide.md)\n\n```mermaid\ngraph LR\n    A[Chassis] --\u003e B[Insulation]\n    B --\u003e C[Electronics]\n    C --\u003e D[Wiring]\n    D --\u003e E[Power]\n```\n\n### 2. Wiring Setup\nConnect components as specified in [Pin Mapping](schematics/pin_mapping.md):\n\n![Wiring Diagram](schematics/Schematic_Wiring.png)\n\n\n### 3. Software Installation\n\n1. Install required library:\n   ```bash\n   # Using Arduino IDE Library Manager\n   Sketch \u003e Include Library \u003e Manage Libraries \u003e Search \"PS2X\"\n   ```\n   \n2. Upload the main sketch:\n   ```arduino\n   File \u003e Open \u003e src/tank_robot_ps2.ino\n   Sketch \u003e Upload\n   ```\n\n3. Verify connection in Serial Monitor (57600 baud):\n   ```\n   Found Controller, configured successful\n   DualShock Controller Found\n   ```\n\n## Basic Operation\n\n| Control | Action | PS2 Button |\n|---------|--------|------------|\n| Forward | Both tracks forward | Left Stick ↑ or D-Pad Up |\n| Backward | Both tracks reverse | Left Stick ↓ or D-Pad Down |\n| Pivot Left | Right forward, left reverse | Left Stick ← or D-Pad Left |\n| Pivot Right | Left forward, right reverse | Left Stick → or D-Pad Right |\n| Stop | Release controls | Auto-triggered |\n\n---\n![Diagram](https://github.com/user-attachments/assets/035974b2-8076-42d1-b779-3947b8e93dfb)\n\n---\n\n## Customization Options\n\n### Speed Adjustment\nModify the analog stick sensitivity in code:\n```cpp\n// src/tank_robot_ps2.ino\nconst int MAX_SPEED = 200; // Reduce for slower movement (0-255)\n```\n\n### Deadzone Tuning\nAdjust deadzone threshold for analog sticks:\n```cpp\nconst int DEADZONE = 25; // Increase for looser sticks\n```\n\n### Additional Features\n1. Enable controller vibration:\n   ```cpp\n   ps2x.read_gamepad(true, 100); // Enable vibration at 100ms\n   ```\n   \n2. Add LED indicators for direction:\n   ```cpp\n   // Define LED pins\n   #define LED_FRONT 9\n   #define LED_REAR 2\n   ```\n\n## Troubleshooting\n\nCommon issues and solutions:\n\n| Problem | Solution |\n|---------|----------|\n| Motors vibrate but don't move | Swap IN1/IN2 connections |\n| PS2 controller not detected | Verify 3.3V power to receiver |\n| Arduino resets during movement | Add capacitor to motor terminals |\n| Uneven track movement | Calibrate motor speeds in code |\n\n\u003e **Full troubleshooting guide**: [troubleshooting.md](docs/troubleshooting.md)\n\n## License\n\nDistributed under the MIT License. See [LICENSE](LICENSE) for more information.\n\n## Resources\n\n- [Project Documentation](docs/)\n- [PS2X Library Documentation](lib/PS2X_lib/)\n- [Instructables Inspiration Project](https://www.instructables.com/Arduino-Robot-With-PS2-Controller-PlayStation-2-Jo/)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomize5773%2Fplaystation-control-car","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcustomize5773%2Fplaystation-control-car","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcustomize5773%2Fplaystation-control-car/lists"}