Putting robotics at your service™

Free shipping on orders over $200

need help for begin

Print view Share :
Previous topicNext topic

Page 1 of 1 [ 4 posts ]

New ( offline )
Posts: 7
Posted: 2010-11-02 18:21 
 Post subject: 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 :D )


User avatar
Guru ( offline )
Posts: 9258
Posted: 2010-11-03 10:40 
 Post subject: Re: need help for begin
niglis wrote:
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 :D )


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.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


User avatar
Expert ( offline )
Posts: 253
Posted: 2010-11-05 12:51 
 Post subject: Re: need help for begin
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

_________________
Devon Simmons, Former Programmer for Lynxmotion.
I can try to help, but I can only offer you my best effort.


User avatar
Veteran ( offline )
Posts: 235
Posted: 2010-11-05 13:20 
 Post subject: Re: need help for begin
Program the basic atom pro using the basic micro studio which you can download at http://forums.basicmicro.net/news-f481/ ... t9478.html

Code:

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
http://www.lynxmotion.com/p-785-free-do ... encer.aspx

_________________
Say no to real Trees this Christmas.
Real trees are very flammable, and can be a host to diseased insects.
http://blog.basicmicro.comB
asic Micro Blog: Kenjj and Fallentine
Got sick, now I'm back.


 

All times are UTC - 5 hours [ DST ]. It is currently 2014-09-21 20:10
Feedback Form
Feedback Form