A web-based control panel for managing a 6-axis robot arm with real-time motor control and pose saving functionality.
-
🎛️ Interactive Control Panel - Control 6 servo motors with smooth sliders
-
💾 Save & Load Poses - Store your favorite robot positions with custom names
-
▶️ Run/Stop Control - Start and stop robot movements with visual feedback -
📊 Real-time Status - Monitor current robot position and running status
-
🔄 Database Integration - All poses and status saved in XAMPP - MySQL database
-
Frontend: HTML5, CSS3, JavaScript (Vanilla)
-
Backend: PHP
-
Database: MySQL
-
Server: XAMPP (Apache + MySQL)
-
Hardware: ESP32 compatible (ready for integration)
-
XAMPP or similar LAMP/WAMP stack
-
Modern web browser
-
Basic knowledge of PHP and MySQL
1- Clone this repository
2- Start XAMPP
- Start Apache and MySQL services
3- Create Database
-
Open phpMyAdmin (http://localhost/phpmyadmin)
-
Import the database.sql file or run the SQL commands:
4- Configure Database Connection
- Update database credentials in PHP files if needed:
$servername = "localhost";
$username = "root";
$password = "";
$dbname = "robot_control";
5- Deploy Files
-
Copy all files to your htdocs folder (or web server directory).
-
Access the control panel at http://localhost/robot-arm-control/
Basic Controls
-
Move Sliders
⤵️ - Adjust each motor position (0-180 degrees) -
Enter Move Name ✏️ - Give your pose a descriptive name
-
Save Move 💾 - Store the current position to database
-
Run
▶️ - Execute the current motor positions -
Stop ⏹️ - Stop robot movement and save stopped position
This system is designed to work with ESP32 microcontrollers. The robot status is stored in the database and can be read by your ESP32 using HTTP requests:
- Get current pose: GET /get_run_pose.php
Access the current pose at http://localhost/robot_control/get_run_pose.php
- Get stopped pose: GET /update_status.php
Access the stopped pose at http://localhost/robot_control/update_status.php


