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

Help?How to create a delay in C Programming for bioloid.

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

Help?How to create a delay in C Programming for bioloid.

Post by real88 » Fri Aug 07, 2009 5:12 pm

Post by real88
Fri Aug 07, 2009 5:12 pm

newbie here,I have some question want to ask:
1)How to create a 1ms delay in C Programming for bioloid.
I get information about the delay from manual where is
void MiliSec(word wDelayTime);
but i cant get the cm5 library; therefore is there another way to create delay?

2)Besides, how to control multiple servo motor in the same time?
izit by using for loop?

can any show the example of the delay and controlling multiple servo motor C programming?
newbie here,I have some question want to ask:
1)How to create a 1ms delay in C Programming for bioloid.
I get information about the delay from manual where is
void MiliSec(word wDelayTime);
but i cant get the cm5 library; therefore is there another way to create delay?

2)Besides, how to control multiple servo motor in the same time?
izit by using for loop?

can any show the example of the delay and controlling multiple servo motor C programming?
real88
Robot Builder
Robot Builder
Posts: 7
Joined: Sun Jul 05, 2009 5:18 pm

Re: Help?How to create a delay in C Programming for bioloid.

Post by RandomMatt » Fri Aug 07, 2009 6:55 pm

Post by RandomMatt
Fri Aug 07, 2009 6:55 pm

real88 wrote:can any show the example of the delay and controlling multiple servo motor C programming?


...libbioloid does both of those...

more helpfully try the avr-libc function for delays:
Code: Select all
_delay_ms(100);


and read the AX12 section 4.6 of the AX12 manual for an example of how to control many servos at once.
real88 wrote:can any show the example of the delay and controlling multiple servo motor C programming?


...libbioloid does both of those...

more helpfully try the avr-libc function for delays:
Code: Select all
_delay_ms(100);


and read the AX12 section 4.6 of the AX12 manual for an example of how to control many servos at once.
RandomMatt
Savvy Roboteer
Savvy Roboteer
Posts: 117
Joined: Sat Dec 20, 2008 11:16 pm

Post by real88 » Sat Aug 08, 2009 5:39 am

Post by real88
Sat Aug 08, 2009 5:39 am

Thx RandomMatt for ur information.

to include _delay_ms(100); function, wat library have to include?
Thx RandomMatt for ur information.

to include _delay_ms(100); function, wat library have to include?
real88
Robot Builder
Robot Builder
Posts: 7
Joined: Sun Jul 05, 2009 5:18 pm

Post by RandomMatt » Sat Aug 08, 2009 9:53 am

Post by RandomMatt
Sat Aug 08, 2009 9:53 am

RandomMatt
Savvy Roboteer
Savvy Roboteer
Posts: 117
Joined: Sat Dec 20, 2008 11:16 pm


4 postsPage 1 of 1
4 postsPage 1 of 1