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

C Migration Tutorial?

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

C Migration Tutorial?

Post by Buz » Wed Mar 24, 2010 9:31 pm

Post by Buz
Wed Mar 24, 2010 9:31 pm

I am working in a lab in Florida, trying to get a Robotis Humanoid RoboCup ready. I am working solo and we have no experienced guys - I'm the trailblazer. I tell you all this as an explaination for what are probably very "noob" questions.

I have gotten the basic movements and such down using the very basic BCP etc that came with the bot. I discovered th more advanced stuff on the Robotis website and I am especially interested in the embedded C info I found there. We upgraded to a Havimo and are trying to migrate to using C code for everything.

After some headscratching and deep breaths, I downloaded WinAVR and Atmael's AVR studio 4. I cried out a mighty "thank God" when I found the C libraries at libbioloid, but now I must confess I am at a bit of a stumbling block of what code to upload for control of the bot functions and basic moves and so on.

Is there some kind of "How to get going using C" tutorial, or a "Hello World" or anything such as that for a beginner? I have some C experience but I am no expert.

Thanks so very much, in advance, for any help ya'll can give,

Buz in Florida
I am working in a lab in Florida, trying to get a Robotis Humanoid RoboCup ready. I am working solo and we have no experienced guys - I'm the trailblazer. I tell you all this as an explaination for what are probably very "noob" questions.

I have gotten the basic movements and such down using the very basic BCP etc that came with the bot. I discovered th more advanced stuff on the Robotis website and I am especially interested in the embedded C info I found there. We upgraded to a Havimo and are trying to migrate to using C code for everything.

After some headscratching and deep breaths, I downloaded WinAVR and Atmael's AVR studio 4. I cried out a mighty "thank God" when I found the C libraries at libbioloid, but now I must confess I am at a bit of a stumbling block of what code to upload for control of the bot functions and basic moves and so on.

Is there some kind of "How to get going using C" tutorial, or a "Hello World" or anything such as that for a beginner? I have some C experience but I am no expert.

Thanks so very much, in advance, for any help ya'll can give,

Buz in Florida
Buz
Newbie
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 9:27 pm

Post by kamondelious » Thu Mar 25, 2010 2:42 am

Post by kamondelious
Thu Mar 25, 2010 2:42 am

Hi Buz,

Have you decided which C library you wanted to use? I have used both the Robotis and libbioloid libraries, and I like them both. It won't make much sense to try and use them together though.

For the Robotis library you could start here :
http://support.robotis.com/en/software/ ... amming.htm

libbioloid comes with a very handy example and some good documentation. To the best of my knowledge, does not contain any predefined robot control/motion code. That needs to be written/acquired by you. The example code (example.c) is a very basic servo control example and definitely your best starting point if you're planning to use libbioloid.

I've never used WinAVR or AVR Studio, so I can't help you much with those.

Let me know if any of that helps, if not, just ask more questions. :wink:

Cheers!
Hi Buz,

Have you decided which C library you wanted to use? I have used both the Robotis and libbioloid libraries, and I like them both. It won't make much sense to try and use them together though.

For the Robotis library you could start here :
http://support.robotis.com/en/software/ ... amming.htm

libbioloid comes with a very handy example and some good documentation. To the best of my knowledge, does not contain any predefined robot control/motion code. That needs to be written/acquired by you. The example code (example.c) is a very basic servo control example and definitely your best starting point if you're planning to use libbioloid.

I've never used WinAVR or AVR Studio, so I can't help you much with those.

Let me know if any of that helps, if not, just ask more questions. :wink:

Cheers!
kamondelious
Savvy Roboteer
Savvy Roboteer
Posts: 29
Joined: Tue Sep 30, 2008 11:18 pm

Post by kamondelious » Thu Mar 25, 2010 2:54 pm

Post by kamondelious
Thu Mar 25, 2010 2:54 pm

Hi Buz,

I've been thinking about my (somewhat lacking in usefulness) reply and thought of a couple things that might be useful to add.

I'm no C expert either, been programming a long time, but only really got into C last year. You can probably find a few post from me on this forum floundering. I had issues trying to get my HaViMo working with libbioloid, I'm sure it's possible, just beyond my skill. The example code available for the HaViMo is basically an edit of the example C code readily available for the Bioloid. It a great building block for learning both the HaViMo and programming for the CM5. If you haven't looked at it yet, I highly recommend it.

Do you have the K&R book on C? If not and you need a fundamental starting in C, that's one of the best places to start. Once into that there is a lot of useful information over at the avrfreaks website as well as trossenrobotics if you haven't been to those yet.

Hope some of that is a bit more useful.

Cheers!
Hi Buz,

I've been thinking about my (somewhat lacking in usefulness) reply and thought of a couple things that might be useful to add.

I'm no C expert either, been programming a long time, but only really got into C last year. You can probably find a few post from me on this forum floundering. I had issues trying to get my HaViMo working with libbioloid, I'm sure it's possible, just beyond my skill. The example code available for the HaViMo is basically an edit of the example C code readily available for the Bioloid. It a great building block for learning both the HaViMo and programming for the CM5. If you haven't looked at it yet, I highly recommend it.

Do you have the K&R book on C? If not and you need a fundamental starting in C, that's one of the best places to start. Once into that there is a lot of useful information over at the avrfreaks website as well as trossenrobotics if you haven't been to those yet.

Hope some of that is a bit more useful.

Cheers!
kamondelious
Savvy Roboteer
Savvy Roboteer
Posts: 29
Joined: Tue Sep 30, 2008 11:18 pm

Indeed useful!

Post by Buz » Thu Mar 25, 2010 6:08 pm

Post by Buz
Thu Mar 25, 2010 6:08 pm

Thanks for the responses Kam - really appreciated. I want to point out that Matt and Stuart both replied to me via e-mail as well and I want to give a public "shout out" of thanks and appreciation to them as well.

I didn't realize that about the Havimo code, I poked around in it a little but over all I just needed a firm footing somewhere. I do have some C code books and took a class on it two years ago or so (?) I just need to shake off the cobwebs I hope.

I also somehow totally missed that Robotis had C libraries, so that will be interesting to look into as well.

Thanks again to all responders!
Thanks for the responses Kam - really appreciated. I want to point out that Matt and Stuart both replied to me via e-mail as well and I want to give a public "shout out" of thanks and appreciation to them as well.

I didn't realize that about the Havimo code, I poked around in it a little but over all I just needed a firm footing somewhere. I do have some C code books and took a class on it two years ago or so (?) I just need to shake off the cobwebs I hope.

I also somehow totally missed that Robotis had C libraries, so that will be interesting to look into as well.

Thanks again to all responders!
Buz
Newbie
Newbie
Posts: 2
Joined: Wed Mar 24, 2010 9:27 pm

Post by HGM » Thu Mar 25, 2010 7:18 pm

Post by HGM
Thu Mar 25, 2010 7:18 pm

Hi Buz,

Just a quick note to let you know that I'm also playing around with C programming a bit. I found the Robotis site quite helpful in setting up WINAVR and AVR Studio and I've been able to compile and run some of the example code on their website.

All my previous C programming was done using the CCS PIC compiler and I haven't done much with the AVR chip. I'm just going through Joe Pardue's book "C Programming for Microcontrollers". Joe has also been running a series of articles on AVR C programming in Nuts and Volts magazine.

Good luck with your project!

Harry
Hi Buz,

Just a quick note to let you know that I'm also playing around with C programming a bit. I found the Robotis site quite helpful in setting up WINAVR and AVR Studio and I've been able to compile and run some of the example code on their website.

All my previous C programming was done using the CCS PIC compiler and I haven't done much with the AVR chip. I'm just going through Joe Pardue's book "C Programming for Microcontrollers". Joe has also been running a series of articles on AVR C programming in Nuts and Volts magazine.

Good luck with your project!

Harry
HGM
Newbie
Newbie
Posts: 6
Joined: Tue Sep 22, 2009 6:53 pm


5 postsPage 1 of 1
5 postsPage 1 of 1