Lynxmotion Tech Support

www.lynxmotion.com
Join the Accelerator Program
It is currently Wed Jun 19, 2013 10:40 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
 Post subject: need help for begin
PostPosted: Tue Nov 02, 2010 5:21 pm 
Offline
Roboteer

Joined: Wed Sep 08, 2010 4:03 pm
Posts: 7
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 )


Top
 Profile  
 
 Post subject: Re: need help for begin
PostPosted: Wed Nov 03, 2010 9:40 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
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...


Top
 Profile  
 
 Post subject: Re: need help for begin
PostPosted: Fri Nov 05, 2010 11:51 am 
Offline
Arduino Wizard-in-Training
User avatar

Joined: Thu Sep 09, 2010 4:56 pm
Posts: 252
Location: I don't even know
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.


Top
 Profile  
 
 Post subject: Re: need help for begin
PostPosted: Fri Nov 05, 2010 12:20 pm 
Offline
Roboteer
User avatar

Joined: Tue Jun 23, 2009 3:41 am
Posts: 240
Location: USA Wisconsin
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.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group