USB-TYPE DONGLE GAME CONTROLLER | ESP32 / PI PICO W ROBOT ARM
Автор: ElectroCrafters
Загружено: 2025-08-03
Просмотров: 345
Описание:
🦾 USB Dongle-Controlled ESP32 Robot Arm | Real-Time Gamepad Motion Take control of robotics with precision and style! This project showcases a custom-built 4-servo robot arm powered by an ESP32 microcontroller and controlled via a USB dongle-style gamepad. Designed for smooth, responsive motion and safe operation, the arm features:
🎮 Real-time gamepad input mapped to jaw, base, and dual arm servos
🔁 Mutual exclusivity logic between left and right arms for safe movement
💤 Auto-off and servo detach after inactivity to prevent strain and twitching
⚡ True pin shutdown for clean deinitialization and zero residual voltage
🧠 Smooth interpolation for natural, lifelike transitions between angles
🌐 Socket communication with reconnect logic and dynamic IP feedback
Built with modular, beginner-friendly code in MicroPython and tested across ESP32 and Pico W platforms, this robot arm is perfect for makers, tinkerers, and anyone exploring wireless control systems.
📌 Watch the motion demo and see how gamepad input translates into real-world robotic action!
#robotarm #esp32project #pythonprojects #usbcontroller #microcontroller #diyrobotics #makerproject
INSTALLATIONS:
Installation Steps for ESP32 Gamepad Wireless Control (Python + VSCode)
🧰 1. Install Visual Studio Code
Download from Visual Studio Code official website
🐍 2. Install Python (Version 3.10.11)
Get it from the Python download page
🧪 3. Create a Virtual Environment
Search online for instructions based on your OS (e.g. python -m venv env)
Use the terminal or VSCode integrated shell
🧠 4. Set VSCode Interpreter
Press Ctrl + Shift + P in VSCode
Select Python: Select Interpreter
Choose Python 3.10.11 (inside your virtual environment)
🚀 5. Activate the Virtual Environment
Search online for activation steps:
Windows: .\env\Scripts\activate
macOS/Linux: source env/bin/activate
📦 6. Install Required Libraries
In the terminal, type:
pip install inputs
After that:
pip install pyserial
💻 7. Upload ESP32 Sketch
Paste the ESP32/ Pi-Pico code from this Pastebin link into Arduino IDE /Thonny
Follow the pin assignments in the code
🔒 Important: Close the Serial Monitor before running the Python program — otherwise, the COM port will be locked
🐍 8. Paste and Run the Python Script
Use the Python code from this Pastebin link
Run it inside your virtual environment
🎉 9. Enjoy!
Press buttons on your USB dongle controller
LEDs on your ESP32 should respond wirelessly
CODE LINKS:
ESP32 PYTHON (VS CODE)
https://pastebin.com/jptyFFNG
PI PICO W PYTHON (VS CODE)
https://pastebin.com/uSjnu3cs
PI PICO MICROPYTHON (THONNY IDE)
https://pastebin.com/7VUmSEWm
ESP32 ARDUINO IDE
https://pastebin.com/yc0gHsyR
Повторяем попытку...
Доступные форматы для скачивания:
Скачать видео
-
Информация по загрузке: