Legacy Forum: Preserving Nearly 20 Years of Community History - A Time Capsule of Discussions, Memories, and Shared Experiences.

Playing page through code

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
5 postsPage 1 of 1
5 postsPage 1 of 1

Playing page through code

Post by roeiki11 » Sun May 02, 2010 11:34 am

Post by roeiki11
Sun May 02, 2010 11:34 am

Hi,
I wanted to know if there is a way to play a specific motion page through c/c++ code?
I looked at libbiolid and did not succeed to see a way to do that.
Thanks in advance,
Roei
Hi,
I wanted to know if there is a way to play a specific motion page through c/c++ code?
I looked at libbiolid and did not succeed to see a way to do that.
Thanks in advance,
Roei
roeiki11
Newbie
Newbie
Posts: 3
Joined: Sun May 02, 2010 11:32 am

Post by 27Loco » Sun May 02, 2010 8:09 pm

Post by 27Loco
Sun May 02, 2010 8:09 pm

Please take a look at this thread:
http://robosavvy.com/forum/viewtopic.php?t=2431

:)
Please take a look at this thread:
http://robosavvy.com/forum/viewtopic.php?t=2431

:)
27Loco
Savvy Roboteer
Savvy Roboteer
Posts: 63
Joined: Sat Feb 20, 2010 10:16 pm

Post by methma_m » Mon May 03, 2010 9:02 am

Post by methma_m
Mon May 03, 2010 9:02 am

Hi,
I want to interface the srf08 sensor with a micro controller trough c18/assembly code in mplab environment.



:)
Hi,
I want to interface the srf08 sensor with a micro controller trough c18/assembly code in mplab environment.



:)
methma_m
Newbie
Newbie
Posts: 1
Joined: Mon May 03, 2010 6:46 am

Post by roeiki11 » Tue May 04, 2010 11:37 am

Post by roeiki11
Tue May 04, 2010 11:37 am

OK, I came up with a simple solution, just sending "play" command to the serial port, as in this C# code example:
SerialPort port = new SerialPort("COM8", 57600, Parity.None, 8, StopBits.One);
// Open the port for communications
port.Open();
port.Write("PLAY 3\r\n");
// Close the port
port.Close();

just remember to put the controller at "program" mode and press "start"
OK, I came up with a simple solution, just sending "play" command to the serial port, as in this C# code example:
SerialPort port = new SerialPort("COM8", 57600, Parity.None, 8, StopBits.One);
// Open the port for communications
port.Open();
port.Write("PLAY 3\r\n");
// Close the port
port.Close();

just remember to put the controller at "program" mode and press "start"
roeiki11
Newbie
Newbie
Posts: 3
Joined: Sun May 02, 2010 11:32 am

Post by Fritzoid » Fri May 07, 2010 1:52 pm

Post by Fritzoid
Fri May 07, 2010 1:52 pm

I posted this on the above referenced thread but will include here also.

Start terminal mode (connect to robot)
Start robot
Enter 'v'
Enter 'E'
Type 'play n' and hit enter, where n is the page number to run.

or programatically...

port.Open();
port.Write("v");
port.Write("E");
port.Write("play 3\r\n");
I posted this on the above referenced thread but will include here also.

Start terminal mode (connect to robot)
Start robot
Enter 'v'
Enter 'E'
Type 'play n' and hit enter, where n is the page number to run.

or programatically...

port.Open();
port.Write("v");
port.Write("E");
port.Write("play 3\r\n");
Fritzoid
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 331
Joined: Mon Dec 18, 2006 1:00 am


5 postsPage 1 of 1
5 postsPage 1 of 1