Author Topic: Programming the 50$ dollar robot: Help!  (Read 5672 times)

0 Members and 1 Guest are viewing this topic.

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Programming the 50$ dollar robot: Help!
« on: October 01, 2012, 07:22:04 PM »
Um i am new to programming and am having difficulties with the 50$ dollar robot tutorial could someone please help.

Offline newInRobotics

  • Supreme Robot
  • *****
  • Posts: 1,015
  • Helpful? 48
  • N.I.R.
Re: Programming the 50$ dollar robot: Help!
« Reply #1 on: October 02, 2012, 02:10:29 AM »
If You tell us what difficulties You have, we might be able to guide You through them  ;)
"Computer games don't affect kids; I mean if Pac-Man affected us as kids, we'd all be running around in darkened rooms, munching magic pills and listening to repetitive electronic music." - Kristian W

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #2 on: October 02, 2012, 07:52:25 AM »
Ok so when log into avr studio 4 and do everything the tutorial tells me to do the stays bar say "build failed with I error and zero warnings" and I have no idea what to do.

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #3 on: October 02, 2012, 01:46:59 PM »
Hm...you should have more information than that.  Does AVRStudio give you any indication where the error might be?  It usually says something like "expected ; before something statement on line 5" or "xyz is not defined on line x" or something.  Does it say any of that? 

Sometimes, though, error messages can get REALLY cryptic, so try posting what the error is and we'll see what we can do :)

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #4 on: October 02, 2012, 02:25:21 PM »
Undefined reference to 'Main'
make: *** [Photovore_v1.elf] Error 1
Build failed with 1 error and 0 warnings.
I am not sure if that clears anything up but i also lost the make file but the one on this project is fine aslong as i dont change it.
« Last Edit: October 02, 2012, 02:31:53 PM by FPboss_12 »

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #5 on: October 02, 2012, 03:22:02 PM »
Hm, an "undefined reference" means you told the computer to look for something that isn't there: in this case, it's likely a function called "Main".  Can you post the code? 

Main is a special function in the C language that means "whatever you do, do it here first" :-P It's the "program" part of the program, and it's really hard (though not strictly impossible...) to make a C program without having a main function.  In fact, if you go through a few "hello, world!" tutorials, you'll see that the first thing you'd need is the "main" function.

Are you using webbotlib or anything like that?

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #6 on: October 02, 2012, 04:56:15 PM »
I am using everything he posted for the 50$ dollar robot tutorial so i really dont know. Im new at this stuff.

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #7 on: October 03, 2012, 07:40:07 AM »
Hm, well, checking out that tutorial, it looks like you're going to need to make sure:

1) all of your configuration options are set properly: the company that makes the chip you're working with makes a LOT of chips.  It's important that the software knows which chip you're using, because it has to change things around to make sure it works with yours.

2) You need the correct makefile.  Makefiles tell AVRStudio what to do with the code you wrote, including what things are needed to make it run.  They are strangely complex :-P But without one the code won't work, and might have those undefined references.

3) Make sure you are adding the correct header files (like in the tutorial).  Header files are like extra instructions that are helpful to all be in one place.  But without them, the computer won't have enough instructions to do what you're asking it to do!

4) If you've already done ALL of that, and you're absolutely sure that you didn't touch ANYTHING in the code, something is wrong with your version of AVRStudio.  Which version are you using?  Some of them just...fail for some reason that has *never* made sense to me :-( 4.19 hates me, and 4.18 seems to be OK but temperamental.  Lots of people have talked about good things with 4.13.  On the upside, if it is your copy of AVRStudio, then you're doing everything right!

Let me know how it's going!
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #8 on: October 03, 2012, 08:25:42 AM »
Thanks that helped just one more thing I don't think I have the proper make file and I don't know how to get it back. I am using avr studio v4.14

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #9 on: October 03, 2012, 08:31:20 AM »
The makefile should still be in the zip file.  Just redownload.  It is...super important to have the correct one there, and that's probably the cause of your error. 

I often find when I'm starting a project that I'm not sure about, I'll make a whole bunch of mistakes, get it to a stage where, although I've learned a lot I don't really want to spend time recovering it, and then just restart.  It'll go much faster now that you've done it once and know what you're doing.  That way you can be sure that you're following the instructions again!  Plus, when you start doing this on your own, it'll help a lot to have the experience starting a whole bunch of projects.

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #10 on: October 03, 2012, 02:17:26 PM »
Alright thanks so much ill let you know how im doing :)

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #11 on: October 03, 2012, 02:26:24 PM »
I am still having problems.  When you download the source file what is the exact name that the file is called because i cant find it under Photovore zip.v1

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #12 on: October 03, 2012, 02:28:21 PM »
it should be called "Photovore_v1.c", and it lives in the zip file...
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #13 on: October 03, 2012, 02:47:25 PM »
It definetly made me go farther but this is the error
gcc pug-in: Error:Object file not found on expected location. (My File Name Here)
Make sure your makefile specifies the output .elf file

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #14 on: October 03, 2012, 02:52:00 PM »
Are you sure you're following the instructions EXACTLY?  ie: making sure every file is in the right folder, making sure the makefile is in the right place and your AVRStudio knows where to find it?

It sounds like AVRStudio isn't finding the right files.  Is everything unzipped?

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #15 on: October 03, 2012, 02:55:56 PM »
What do you mean by Unzipped and do you think i should try avr studio 13 maybe

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #16 on: October 03, 2012, 03:02:31 PM »
Ugh still no progress
« Last Edit: October 03, 2012, 03:40:51 PM by FPboss_12 »

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #17 on: October 03, 2012, 03:49:43 PM »
make *** no rule to make target photovore.v1.elf. no idea what .elf is

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #18 on: October 04, 2012, 09:23:45 AM »
Hm, I'm not sure what's going on, to be honest.  You should have downloaded a zip file that contains a lot of source files, right?  That should also include a makefile and the photovore_v1.c code.  Did you download that zip file?  It's here:  http://www.societyofrobots.com/downloads/sbs_source_photovore_v1.zip

That should have everything you need?

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #19 on: October 04, 2012, 12:39:55 PM »
I finally fixed thank you so much but if you would like could you also guide me through the pony prog part cause i am lost on that too :P

Offline mstacho

  • Supreme Robot
  • *****
  • Posts: 376
  • Helpful? 10
Re: Programming the 50$ dollar robot: Help!
« Reply #20 on: October 04, 2012, 12:43:57 PM »
Great!  Unfortunately, though, I've never used pony prog (I use an in-system-programmer made by AVR).  Maybe posting your pony prog problems on the electronics part of this forum will get you people who know more about it!

Glad to hear it's working!

MIKE
Current project: tactile sensing systems for multifingered robot hands

Offline FPboss_12Topic starter

  • Jr. Member
  • **
  • Posts: 18
  • Helpful? 0
Re: Programming the 50$ dollar robot: Help!
« Reply #21 on: October 04, 2012, 01:07:14 PM »
Ok i will, just my only problem is that he has a different kind of compputer and when i have to go into the settings to change everything the ption is not ther :( 

 


data_list