Need help for begin

Hello,
I’ve discovered flowstone : I think it’s a fantastic soft , but the tutorials are very limited.
So could you help me to begin.
I’ve a bot baord II and a atom pro 28 and i want to command some servos .
Make a interface PC for make move one servo.
Thank and sorry for my bad english ( I’m french :smiley: )

FlowStone has a driver for the SSC-32, but there is nothing for a microcontroller. You would have to write a program for the micro to exchange data with the PC using the serial port. I don’t have any direct experience doing this. We will try to help you if you have any specific questions.

Hey Niglis

Flowstone doesn’t have anything to talk to the atom pro out of the box. Like Jim said you would have to write a program for the micro to talk through the serial port. Flowstone can connect directly to the SSC-32 through a serial port on your computer. To control a servo with Flowstone using the SSC-32 alone is a great place to start. What you want to do is create the string commands that are built into the SSC-32. To move a servo to a position you can plug “#0 P1500 T500” into the com module and trigger the Send input. The only thing I can really tell you is to just spend some time playing around with it.

-Devon

Program the basic atom pro using the basic micro studio which you can download at forums.basicmicro.net/news-f481/ … t9478.html


hservo [p0\0]   ; connect servo to p0, sets p0 to center position
pause 10

serv var sword  ;workspace, you can change serv to something else like banana

main
serin s_in, i9600, 400000, main, [sdec serv]  ;serial input from the Botboard 2's DB9 port, connect using 9600 baud. serv must be the same as above

hservo [p0\serv] ;servo on p0 will be the same as what ever number you send over the serial port.
hservowait [p0]  ;waits for the servo to move to it's position.
pause 50
goto main

Servos have a set range limit, so don’t go above those limits, so start small. try 400 and -400, 0 = center.
Don’t go above 12000 or below -12000 without making sure your servos extend that far first.

Now then i’m not at home so i cant test it, but it’s far to simple to have any problems. That code took me like 2-3 minutes to write and comment.
Though if you have any problems, let us know.

Then you can write a flowstone program that outputs the numbers you need, though i’d personally suggest you use Dev’s macro program
lynxmotion.com/p-785-free-do … encer.aspx