Help with C programming

Korean company maker of Robot kits and servos designed for of articulated robots. Re-incarnation of Megarobotics.
5 postsPage 1 of 1
5 postsPage 1 of 1

Help with C programming

Post by ebrand » Thu Apr 08, 2010 5:58 am

Post by ebrand
Thu Apr 08, 2010 5:58 am

Okay, so I've been trying to use robobuilder's 2nd C programming tutorial and the code included in it really really doesn't work.

I know the community has worked on a few different solutions for programming robobuilder. (Side note I'm a huge fan of the Lisp implementation!) But I am trying to not use a computer for any processing power and completely use the ATMega128 Microcontroller in the Robobuilder. Has anyone else accomplished this feat? If you have, any tips will be very helpful I'm sure!
Okay, so I've been trying to use robobuilder's 2nd C programming tutorial and the code included in it really really doesn't work.

I know the community has worked on a few different solutions for programming robobuilder. (Side note I'm a huge fan of the Lisp implementation!) But I am trying to not use a computer for any processing power and completely use the ATMega128 Microcontroller in the Robobuilder. Has anyone else accomplished this feat? If you have, any tips will be very helpful I'm sure!
ebrand offline
Robot Builder
Robot Builder
Posts: 9
Joined: Mon Mar 15, 2010 9:32 pm

Post by l3v3rz » Thu Apr 08, 2010 9:42 am

Post by l3v3rz
Thu Apr 08, 2010 9:42 am

I have created a Homebrew OS - http://code.google.com/p/robobuilderlib/ Its based on a conversion of the C tutorial code (by i-bot) into winAVR/gcc-avr and then some additional code by myself and Joe (another forum member) - plus a bit of reverse engineering ! Feel free to use what you want. I've added a very simple basic interpreter and joes built some binary comms protocol between bot and a PC. If you are interested I can add you as contributor to the project.

Another forum member - badcommandorfilename has been developing C source ( http://www.robosavvy.com/Builders/badco ... t_v0.4.zip ) , this looks very professional.

To commemorate this occasion, I present to you version 0.4 of the custom Robobuilder software. This version includes timer-based scheduling of movement, battery recharging capabilities, microphone operation and the ability to change state based upon button presses. A few small bugs have been fixed since last time, but as usual this is still a beta release - don't expect flawless operation just yet. Compiling instructions are here.


I would say that its hard to do anything sophisticated as there is very little processing power in a 14MHz 8 bit micro with 64K memory (although the chap above has got an FFT working!) - see his blog : http://buildtherobot.blogspot.com/2010/ ... 000th.html

cheers

P.S thank for the comment about LISP - hope you've had some fun having a go with it. If you add bluetooth module you do at least get untethered operation - now if I could just get the code working on an Android or iPhone, talking via BT - that would be cool :)
I have created a Homebrew OS - http://code.google.com/p/robobuilderlib/ Its based on a conversion of the C tutorial code (by i-bot) into winAVR/gcc-avr and then some additional code by myself and Joe (another forum member) - plus a bit of reverse engineering ! Feel free to use what you want. I've added a very simple basic interpreter and joes built some binary comms protocol between bot and a PC. If you are interested I can add you as contributor to the project.

Another forum member - badcommandorfilename has been developing C source ( http://www.robosavvy.com/Builders/badco ... t_v0.4.zip ) , this looks very professional.

To commemorate this occasion, I present to you version 0.4 of the custom Robobuilder software. This version includes timer-based scheduling of movement, battery recharging capabilities, microphone operation and the ability to change state based upon button presses. A few small bugs have been fixed since last time, but as usual this is still a beta release - don't expect flawless operation just yet. Compiling instructions are here.


I would say that its hard to do anything sophisticated as there is very little processing power in a 14MHz 8 bit micro with 64K memory (although the chap above has got an FFT working!) - see his blog : http://buildtherobot.blogspot.com/2010/ ... 000th.html

cheers

P.S thank for the comment about LISP - hope you've had some fun having a go with it. If you add bluetooth module you do at least get untethered operation - now if I could just get the code working on an Android or iPhone, talking via BT - that would be cool :)
l3v3rz offline
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm

Post by haenz » Thu Apr 08, 2010 7:28 pm

Post by haenz
Thu Apr 08, 2010 7:28 pm

I'm new to robobuilder developement too. I have the same problems getting the source code from the robobuilder site to work. I don't know how they get their c sources compiled without errors. First of all I declared the "undefined symbols" as external in e.g. comm.c and the errors will decrease. But actually only the avr-gcc example "ex_avrs" made my day :)
I'm new to robobuilder developement too. I have the same problems getting the source code from the robobuilder site to work. I don't know how they get their c sources compiled without errors. First of all I declared the "undefined symbols" as external in e.g. comm.c and the errors will decrease. But actually only the avr-gcc example "ex_avrs" made my day :)
haenz offline
Newbie
Newbie
Posts: 6
Joined: Thu Apr 08, 2010 7:17 pm

Post by Felix » Sat May 08, 2010 1:48 pm

Post by Felix
Sat May 08, 2010 1:48 pm

How exactly am I supposed to compile the C source by badcommandorfilename? Do I need to include any other files? If there is any chance of adding a makefile for avr-gcc that would be great!

And how did you get a more up-to-date version than the one on his blog?!?! :lol:
How exactly am I supposed to compile the C source by badcommandorfilename? Do I need to include any other files? If there is any chance of adding a makefile for avr-gcc that would be great!

And how did you get a more up-to-date version than the one on his blog?!?! :lol:
Felix offline
Robot Builder
Robot Builder
Posts: 12
Joined: Wed Jun 17, 2009 12:24 pm

Post by l3v3rz » Sat May 08, 2010 2:09 pm

Post by l3v3rz
Sat May 08, 2010 2:09 pm

Heres the one I use for my new DCMP firmware

http://code.google.com/p/robobuilderlib ... s/Makefile
Heres the one I use for my new DCMP firmware

http://code.google.com/p/robobuilderlib ... s/Makefile
l3v3rz offline
Savvy Roboteer
Savvy Roboteer
Posts: 473
Joined: Fri Jul 18, 2008 2:34 pm


5 postsPage 1 of 1
5 postsPage 1 of 1