Tcl/tk Servo positioner

I’ve been looking for a way to control the ssc32 from linux and it seems shell script cat’ed into /dev/ttyS0 does the job nicely

I’ve spent the last few days putting some software together in order to get the servo positions on my scout so i can start assembling some sort of walking gait.

I put it up on sourceforge for a bit of fun, it’s only a little script that makes a bunch of sliders in tk, you can specify how many by editing a variable at the top of the file, it’s pretty much like the slider in lynxterm, but with one for each servo, to make it a bit easier to set a certain pose.

If anyones interested, you can download it here:
sourceforge.net/projects/ssc32controller/

I did look around for a fair while for such a program but couldn’t find one, so i hope i am not stepping on anyones toes or anything, i’m pretty new to all this.

i can confirm it works from my fedora 7 machine, over a serial cable, currently using 9600,8,n,1

Yes, this certainly works, but I prefer using a regular language, such a Python. Python is very easy to learn and is available for all major platforms, including Linux, the *BSDs, and Windows. My favorite reference for Python is the Python Bible (Gold and Red cover, paperback). Mine covers up through Python v2.1 and I really need to get the latest revision.

You can use just the very basic features of Python to do useful things, and I have posted my current code for controlling the SSC-32 in the SSC-32 section (sticky topic).

8-Dale

I’ve heard a lot of good things about python, a little while ago i needed to do some network authentication scripts which expect turned out to be the ideal tool for, so i learnt Tcl instead of python, java or the myriad of other excellent options out here, along with a little tk.

I’m having a go at C at the moment, but there’s so much to learn and only so many hours in the day.

Did you have a chance to try the script?

if anyone is interested, I’ve added a capture facility to the controller, it records the positions you set using the sliders to a file, one after the other, which can then be played back using the “play” button.

I’ve tried to keep it all as generic as possible, so it should be possible to pose and move any ssc32 servo assembly.

A friend of mine said he had it working under windows, but i haven’t tried it myself yet.

I think i just need to sort out my wireless serial link now, and i should be walking with a bit of luck :slight_smile:

I’ve learnt an awful lot reading around these forums already, so in the spirit of giving something back, i hope someone finds the controller usefull.

apologies for bumping the old post, i just wanted to say i have recently added group moves to my ssc32 controller, if you click the new groups button you can then set groups of sliders/servos to move at the same time, slaved to the one master slider. you can invert the subsidiaries and proportionally adjust their movement relative to the group controller’s slider.