The robot arm is build with six servo motors which are controlled independent from each other. This is the first time I have designed a web interface to control a robotic arm and I used six sliders to control the position of each servo motor. With this solution it is possible to use the web interface from each device supporting HTML to remote control the robot arm. I tried to use the web interface with my old Samsung Galaxy S5 and as well with my desktop PC and it worked perfectly.
The web interface designe looks like the screenshot below.
I am sure this robot arm is perfect for teachers to teach the children the basics in robotics. It is not so easy to control this robot arm with his six servo motors and this makes it very interesting for schools. The Raspberry Pi is easy to program and this makes the project a success which is very important if for childrens.
The program to control the robot arm is written in Python. The web site / the web interface is hosted and published by the Flask web server directly on the Raspberry Pi. With a browser you are able to load and display the web site. The Flask web server supports the Raspberry Pi GPIO interface and that the reason why you could control the robot arm with a PCA9685 servo controller wiht a simple Pyhton program.
The Python program is available on GitHub:
The program was developed by many copy & past actions. If you would like to optimize the program an ID for each servo could improve the code and reduce the redunt lines of code.
If you would like to buy the robotic arm the following affiliate link will load the Amazon web shop.
Most of the time to develop the Python program to control the robot arm I used to program the HTML sliders and to interact with them inside my Python program. The Python code was developed very fast compared to the part with the slieders. To control the robotic arm over the web site maked a lot of fun.
Article list - SainSmart 6-Axis Desktop Robotic Arm:SainSmart 6-Axis Desktop Robotic Arm – Raspberry Pi
SainSmart 6-Axis Desktop Robotic Arm – Raspberry Pi wiring
SainSmart 6-Axis Desktop Robotic Arm - Raspberry Pi software installation
SainSmart 6-Axis Desktop Robotic Arm – Raspberry Pi web interface test