Web page arm control (ssc-32)

Doing some more tinkering with web pages, the below setup might be of interest to those that would lkie to control a robotic arm (or other gizmos) via a web page. This setup makes use of the ssc-32’s servo move speed and stop commands. The buttons are operated such that when the mouse curser is over the button and the left mouse button is clicked, a servo speed command is sent to the servo. When the mouse button is released, a stop command is sent to the servo. I don’t have an arm, so I just used some servos connected to the ssc-32. To use this one must have the apache web server (or another web server of similar capability) running on the pc connected to the ssc-32. Two batch files (stop.bat and onclick.bat) are used in the apache cgi-bin folder to send the commands out the com port (the # character cannot be used in a query_string). The link below will bring up the page and one can look at the source and modify as needed. The page is setup for testing on the same computer using 127.0.0.1 for the ip address, so for internet use this would have the url of the arm compiter.

web.comporium.net/~shb/armbat.htm

http://web.comporium.net/~shb/pix/armbat.jpg

onclick.bat

@echo off
echo status: 204
echo.
echo.
::mode com8:9600,N,8,1 >nul
echo #%QUERY_STRING% >com8

stop.bat

@echo off
echo status: 204
echo.
echo.
::mode com8:9600,N,8,1 >nul
echo %QUERY_STRING% >com8