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

Sending commands to Bioloid from Matlab

Bioloid robot kit from Korean company Robotis; CM5 controller block, AX12 servos..
24 postsPage 2 of 21, 2
24 postsPage 2 of 21, 2

Post by limor » Mon Sep 22, 2008 1:06 am

Post by limor
Mon Sep 22, 2008 1:06 am

Zwolsee wrote:Does anyone know if you can call motion pages in the C program?
I need my program to read a number being sent from a serial port and clap the number of times of the character. Does anyone have any example code?


Bioloid Control and also this:
http://robosavvy.com/site/index.php?opt ... or_motions
Zwolsee wrote:Does anyone know if you can call motion pages in the C program?
I need my program to read a number being sent from a serial port and clap the number of times of the character. Does anyone have any example code?


Bioloid Control and also this:
http://robosavvy.com/site/index.php?opt ... or_motions
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by Zwolsee » Tue Sep 23, 2008 12:32 am

Post by Zwolsee
Tue Sep 23, 2008 12:32 am

I don't really understand the protocol for executing a motion page in C. Can anyone help explain how to call a motion page?
I don't really understand the protocol for executing a motion page in C. Can anyone help explain how to call a motion page?
Zwolsee
Robot Builder
Robot Builder
Posts: 11
Joined: Wed Sep 17, 2008 3:11 am

Post by StuartL » Tue Sep 23, 2008 8:25 pm

Post by StuartL
Tue Sep 23, 2008 8:25 pm

Zwolsee wrote:I don't really understand the protocol for executing a motion page in C. Can anyone help explain how to call a motion page?


The less you demonstrate an ability to search the internet, or particularly this forum, the less people are going to be willing to help you.

In this case there's definitely been posts from the guys at Plymouth Uni who have decoded the motion pages and shared their software. I don't remember which thread it was discussed in.
Zwolsee wrote:I don't really understand the protocol for executing a motion page in C. Can anyone help explain how to call a motion page?


The less you demonstrate an ability to search the internet, or particularly this forum, the less people are going to be willing to help you.

In this case there's definitely been posts from the guys at Plymouth Uni who have decoded the motion pages and shared their software. I don't remember which thread it was discussed in.
StuartL
Savvy Roboteer
Savvy Roboteer
Posts: 350
Joined: Mon Jun 04, 2007 3:46 pm
Location: Thatcham, Berkshire, UK

Post by jorge ochoa » Thu Sep 25, 2008 9:35 pm

Post by jorge ochoa
Thu Sep 25, 2008 9:35 pm

the only way is using a controller in the cm-5 diferent to default controller, such us robowraper.hex or BLV. and use the functions implemented to manage the pages in the motion file.

the default controller permit the use of the manage mode and do a routine for any movement with de commands go, write, regwrite etc.
the only way is using a controller in the cm-5 diferent to default controller, such us robowraper.hex or BLV. and use the functions implemented to manage the pages in the motion file.

the default controller permit the use of the manage mode and do a routine for any movement with de commands go, write, regwrite etc.
jorge ochoa
Robot Builder
Robot Builder
Posts: 14
Joined: Mon Jan 14, 2008 4:50 am

Post by limor » Sat Sep 27, 2008 7:49 pm

Post by limor
Sat Sep 27, 2008 7:49 pm

Not sure if you have referenced this in the thread.
There is the formal Robotis support for Matlab
check out this thread:
http://robosavvy.com/forum/viewtopic.php?t=2726
Not sure if you have referenced this in the thread.
There is the formal Robotis support for Matlab
check out this thread:
http://robosavvy.com/forum/viewtopic.php?t=2726
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Post by teleco07 » Tue Sep 30, 2008 11:11 am

Post by teleco07
Tue Sep 30, 2008 11:11 am

hi.
I'm totally new in this area and so i've read most of topics about it in this forum and also others in the internet.
i have a few questions i hope you can answer me or tell me where to get more information:
i'm working on my final proyect with bioloid and i'm suposed to program it via matlab/simulink.i've read all the manuals and user's guides but i still don't have really clear if i must use the usb2dynamixel.
can i program it with matlab using the cm-5??
if i use the usb2dynamixel how do i get the power supply?? do i have to "built" a new cable??
thank you very much for your attention. i gess i'll insist with more bioloid dubts soon :wink:
hi.
I'm totally new in this area and so i've read most of topics about it in this forum and also others in the internet.
i have a few questions i hope you can answer me or tell me where to get more information:
i'm working on my final proyect with bioloid and i'm suposed to program it via matlab/simulink.i've read all the manuals and user's guides but i still don't have really clear if i must use the usb2dynamixel.
can i program it with matlab using the cm-5??
if i use the usb2dynamixel how do i get the power supply?? do i have to "built" a new cable??
thank you very much for your attention. i gess i'll insist with more bioloid dubts soon :wink:
teleco07
Newbie
Newbie
Posts: 2
Joined: Tue Sep 30, 2008 10:59 am

Post by limor » Thu Oct 02, 2008 11:58 am

Post by limor
Thu Oct 02, 2008 11:58 am

teleco07 wrote:hi.
I'm totally new in this area and so i've read most of topics about it in this forum and also others in the internet.
i have a few questions i hope you can answer me or tell me where to get more information:
i'm working on my final proyect with bioloid and i'm suposed to program it via matlab/simulink.i've read all the manuals and user's guides but i still don't have really clear if i must use the usb2dynamixel.
can i program it with matlab using the cm-5??
if i use the usb2dynamixel how do i get the power supply?? do i have to "built" a new cable??
thank you very much for your attention. i gess i'll insist with more bioloid dubts soon :wink:


2 mehods
the easy one is with USB2Dynamixel - and yes you will need to power the servos in some way. The easiest way is to link the usb2dynamixel to the fully assembled robot. just find a long wire to connect the usb2dynamixel to one of the access points to the bus on the robot. oh.. and make sure that if you connect the CM5, that it doesnt act as bus master. just write some empty code and program the CM5 to do nothing. or maybe when it boots press some key combination that makes it innoperational.

second method involves using the serial link and the CM5. this method described by Pedro from IST, involves writing code on the CM5 to talk to the bus and writing to the PC over the serial port. the PC runs simulink and talks to the CM5 using some communication protocol of your liking.
teleco07 wrote:hi.
I'm totally new in this area and so i've read most of topics about it in this forum and also others in the internet.
i have a few questions i hope you can answer me or tell me where to get more information:
i'm working on my final proyect with bioloid and i'm suposed to program it via matlab/simulink.i've read all the manuals and user's guides but i still don't have really clear if i must use the usb2dynamixel.
can i program it with matlab using the cm-5??
if i use the usb2dynamixel how do i get the power supply?? do i have to "built" a new cable??
thank you very much for your attention. i gess i'll insist with more bioloid dubts soon :wink:


2 mehods
the easy one is with USB2Dynamixel - and yes you will need to power the servos in some way. The easiest way is to link the usb2dynamixel to the fully assembled robot. just find a long wire to connect the usb2dynamixel to one of the access points to the bus on the robot. oh.. and make sure that if you connect the CM5, that it doesnt act as bus master. just write some empty code and program the CM5 to do nothing. or maybe when it boots press some key combination that makes it innoperational.

second method involves using the serial link and the CM5. this method described by Pedro from IST, involves writing code on the CM5 to talk to the bus and writing to the PC over the serial port. the PC runs simulink and talks to the CM5 using some communication protocol of your liking.
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

AX-12 and matlab

Post by teleco07 » Fri Nov 14, 2008 12:27 pm

Post by teleco07
Fri Nov 14, 2008 12:27 pm

hi,
i'd like to know how can I program mi own PID algoritm with matlab to move the AX-12.
i've tried the followin in a loop:
error0=0
read ref
loop{
read actual position
error=ref-pos
D=Kd*(error-error0) (Kd=Kp*Td/T)
I=I+Ki*error (Ki=Kp*T/Ti)
goalposition=Kp*error+I+D
write goalposition
error0=error}

but I get no good results,
could someone give me a clue to keep on trying?
thanks in advance
hi,
i'd like to know how can I program mi own PID algoritm with matlab to move the AX-12.
i've tried the followin in a loop:
error0=0
read ref
loop{
read actual position
error=ref-pos
D=Kd*(error-error0) (Kd=Kp*Td/T)
I=I+Ki*error (Ki=Kp*T/Ti)
goalposition=Kp*error+I+D
write goalposition
error0=error}

but I get no good results,
could someone give me a clue to keep on trying?
thanks in advance
teleco07
Newbie
Newbie
Posts: 2
Joined: Tue Sep 30, 2008 10:59 am

Post by limor » Sun Nov 16, 2008 10:38 pm

Post by limor
Sun Nov 16, 2008 10:38 pm

so i assume you have connected the robot to the PC using USB2Dynamixel ?

The problem may be the control loop cycle.
make sure that the delay response on the servo is set to 0 or 1
the delay response time is one of the configurable parameters of the AX12 and other Dynamixel servos
so i assume you have connected the robot to the PC using USB2Dynamixel ?

The problem may be the control loop cycle.
make sure that the delay response on the servo is set to 0 or 1
the delay response time is one of the configurable parameters of the AX12 and other Dynamixel servos
limor
Savvy Roboteer
Savvy Roboteer
User avatar
Posts: 1845
Joined: Mon Oct 11, 2004 1:00 am
Location: London, UK

Previous
24 postsPage 2 of 21, 2
24 postsPage 2 of 21, 2