Society of Robots - Robot Forum

Software => Software => Topic started by: NOOBinDistress on April 11, 2007, 03:13:49 PM

Title: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 11, 2007, 03:13:49 PM
Hello I am a mega noobie to this robot stuff but just started because it looked really cool. I am currently doing the 50 dollar robot project and have all of the parts ordered and on the way. Right now I am working on the sofware part of the project and need help. I have all of the avr programs requested dowloaded and I am having trouble following instructions. I think what I will need is someone to make me a list of exactly what buttons to press or I could use someones Im and they could take me through step by step.
Here is what I can tell youL:1. I keep messing up  on the part where you download the tools and helpful stuff from the website, I beleive the link is photovore.
2. I have tried this so many times it is hard to make a clean slate because every time I make a new photovore file it says I  have already made 1 which I have.
3. I have trouble with the part from photovore down.
4. You probobly think I am a total idiot.
PLEASE HELP ME!!!!!!!!!!!!!!!!!!!!!!!!Thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: trigger on April 11, 2007, 08:45:06 PM
1. I keep messing up  on the part where you download the tools and helpful stuff from the website, I beleive the link is photovore.
2. I have tried this so many times it is hard to make a clean slate because every time I make a new photovore file it says I  have already made 1 which I have.
3. I have trouble with the part from photovore down.

It's hard to understand what you mean.  Why don't you describe exactly what you're doing and exactly what the computer tells you, and then maybe someone can help.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 12, 2007, 05:24:16 AM
Thanks for responding and I am sorry for double posting. Here are my problems. 1. I dont believe the  source code on 50 dollar robot is working or I am just not doing it right. 2.I would like to know if when creating the programing for you robot if everything has to be called photovore.(this is because I have already made so many photovore files that have not work.Everything is mixed up. 3. Finally, when I try to add exiting source files or whatever I can not fine photovore_v1.c. Thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 12, 2007, 07:16:54 PM
I still need help. I was directed to this sight  because I was told it would show me how to make a bot and they would be very helpful. Well I kind of still need help. I have been doing the freaking instructionsfor like 7 hours straight. It keeps telling me I have no Photovorev_v1.c when I type it in. I typed it in because it was not under the photovore folder. ADMIN you made the 50 dollar robot project, right? Could you please help me. It is driving me crazy!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 12, 2007, 07:34:33 PM
WHenever I click add source file it is not there under the photovore file where it is supposed to be. Was I supposed to make a Photovore_v1.c because It does not tell you in the tutorial to. It just says That if I look under that file Photovore_v1.c will just be there . Well it is not working. I ordered all of these parts and now canot use them because I dont know what to do :'( :'( :'( :'( :'(. I really wish someone would help me out!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 12, 2007, 08:00:51 PM
whenever you look for a file dont type it in. click on it, but before you do click show all. easiest way to find a file is to put it on your desktop download the source code and put it there.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: dunk on April 13, 2007, 02:19:06 AM
so the bit where the tutorial goes:
Quote
SOURCE CODE
Now you need to download the source code. Currently, I offer just one program for your robot, but plan to come out with others later:

Photovore v1.zip (March 10th, 2007) - Case-based photovore program.
Empty the contents into the proper folder. For example, for Photovore v1, empty all files into C:\My_Robots\Photovore_1
have you unzipped Photovore v1.zip into that directory?
if you go to that directory can you see a file called Photovore_v1.c in there? (Photovore_v1.c should have been one of the files contained in the zip file.)

dunk.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 12:07:01 PM
Ok I kinda sort of get what your saying. So Photovore_v1.c is in the Phovore_v1.aps link on the website that I saved into my Photovore_v1 folder? Tell me if this is right please? 1.upload and save source code link into my photovore folder. Then add existing souce code. Then look under all files and Photover_v1.c will be in the zipped folder I downloaded off the link? I will comment back in a little bit after I try it out. Thank you so much for helping me!!!!!!!
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 12:26:49 PM
Ok so here is where I am. I can add the header file (I just dragged and dropped) but I still can not find Photovore_v1.c in the add existing source code. On the header file part I just dragged and dropped the Sor. utils (or whatever it was) and that worked. I could do that with photovore_v1.c if I could find it. I can not find it. All I can find is Photovore.hex and photovore_v1 and photovore_1.aps all of the other files are not photovore_v1.c from what I can see. Please help.  thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 13, 2007, 01:38:39 PM
Do you have it set to view all files under where you type teh file name?
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 01:42:53 PM
Yes even when I do that I can not find v1.c Is it in the zipped folder sbs something or other. Because if it is I cant find it. Thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 02:02:38 PM
I think what I will do is get a video of what I am doing  so somebody can show me what to do
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 05:25:03 PM
the vid wont work becaus e of my webcam and computer screen. OH welll. Can someone just give me a reasonable explanation why I can not find it in my photovore folder. ANother question when we download the Photovore link ( I think the file is called sbs something) We just save it under the photovore_v1 folder right?
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 05:27:56 PM
I CAN NOT FIND PHOTOVORE_V1.c!!!!!!!!!!!!!!!!!!!! It is driving me crazy. The one person who responded said that It should be in that sbs file thing that I downloaded from the Photovore_v1 link on the website. Well i can not find it. If it is there it is not under the name photovore_v1.c. OK!!!!! NOw could someone help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: trigger on April 13, 2007, 05:55:15 PM
I CAN NOT FIND PHOTOVORE_V1.c!!!!!!!!!!!!!!!!!!!! It is driving me crazy. The one person who responded said that It should be in that sbs file thing that I downloaded from the Photovore_v1 link on the website. Well i can not find it. If it is there it is not under the name photovore_v1.c. OK!!!!! NOw could someone help me!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'( :'(

Dude, redownload the zip file.  I redownloaded it two seconds ago, opened it up, and there was photovore_v1.c, plain as day.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 06:50:26 PM
OK if you do not beleive me I will write a list of all of the files in there that I can see.1.a2d
2. a2d
3.avrilbdefs
4.avrilbtypes
5.buffer
6.buffer
7.global
8.makefile
9.Photovore_v1
10.Photovore_v1
11.Photovore_v1.hex
12.rprintf
13.rprintf
14.SoR_Utils
15.timer
16.timer
17.uart
18.uart

that is the total list of all of the files from the downloaded link:
Photovore v1.zip. The zipped folder is called sbs_source_photovore_v1. Please tell  me if I am going to the wrong place. thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: JonHylands on April 13, 2007, 06:52:58 PM
In an explorer folder window, go to the Tools menu, select "Folder Options", and click on the "View" tab. Scroll the list down to "Hide extensions for known file types" and make sure it is unchecked.

Then hit "OK", and you should see your file...

- Jon
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 07:20:01 PM
THANK YOU SO MUCH!!!!!!!!!!!!! It worked. Now when it says build started how long should it take? Because I just started it and its not done. Does it take a while? ANd will it say when the build is done because it is still not done . THANK YOU!!!!
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 13, 2007, 08:04:32 PM
what options did you select here? (pic)
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 08:05:51 PM
OK so meybe it did let me find it. But now it can not be added because of illigal characters -C:\My_Robots\Photovore_v1\Photovore_v1.c  . How do I get rid of these "illigal characters"
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 08:08:21 PM
I think I had it working before but then I deleted it when it said build started and it never ended within ten minutes. I had it too. NOw I can not add anything because of illigal characters.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 13, 2007, 08:13:26 PM
click rebuild all
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 08:16:13 PM
Will clicking rebuild all help me though?? I am not even to that step(because I started over). ANd now I can not add the v1.c file because of illigal characters. I dont know how to fix it. Please help
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 13, 2007, 08:19:50 PM
OK I redid the whole thing and got around the illigal character problem myself I think.(im so proud of myself). So now I am going to sleep but i will post if it worked in the morning. thanks for everything.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 13, 2007, 08:20:35 PM
what did you do?
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 06:20:34 AM
Ok so it is doing the load thing now, I dont think it worked over night because it stops when my screen saver comes on and now it is making noises when it is doing stuff. It has been about 15 min. Now it does not have anything under breakpoints and trace points. I wander if it is not working
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 06:23:49 AM
I redid the whole thing because i thought it took to long. And now it does not have trace points or anything. I am such an idiot. I had it working too.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 06:25:08 AM
Should I just start over again because i am not getting any break points or trace points????
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 06:29:25 AM
I must of never added the header file or source file because I can not add them now that I restarted. I keep coming up with this Illigal character error
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: Somchaya on April 14, 2007, 07:43:27 AM
Hmm, when you say illegal character error, what do you mean exactly? Is it an error in the path of the file, or within the code itself?
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 08:58:23 AM
WHat i mean is that when I click on it to add It says Illigal character can not add and beneath that it says you can not have these characters:/\., those are only a few. And I have noticed that I do have a couple of the \\\\\ in the file name because it goes My_robots\Photovore_v1\Photovore_v1.c I am apparently not aloud to have any of thes \\\\\\\\\ so I got around this problem by putting it in another folder and uploading it from there. but when I do this the build never ends or either it just takes really long.My computer is not super slow so it shouldnt take like 2hrs. Wait i am now getting stuff like so and so loaded in the message column of build. Does that mean it is working? One more question. I accidently closed out the box next to messages that say break points and trace points, how do I get that back?
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: Somchaya on April 14, 2007, 09:13:50 AM
Oh I see.. Hmm, so \ is an escape character in C.. So what you can try doing is to replace \ with \\, eg:

C:\Robot\Main.c becomes C:\\Robot\\Main.c

Try that and see if it works, not sure if that's the problem..
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 09:20:10 AM
Ok so what your saying is that I should replace the single \ with a double \\. I dont know how I would add them though. where would I go to add a double slash. Anyway way I used a different folder with no \\\ and  I think it worked I clicked build and I am not sure if it is doing any thing but under message it says  Loaded plugin STK500
gcc plug-in: PlugInUtility::setupAndCheckWinAVR() Found avr-gcc at C:\WinAVR\bin\avr-gcc.exe
gcc plug-in: PlugInUtility::setupAndCheckWinAVR() Found make at C:\WinAVR\utils\bin\make.exe
Loaded plugin AVR GCC
Loaded partfile: C:\Program Files\Atmel\AVR Tools\PartDescriptionFiles\ATmega8.xml
Flash memory 8192
EEPROM memory 512
I/O start 0x00
I/O stop 0x3F
SRAM size 1024
SRAM start 0x60
XRAM size 0
Temporary page buffer 64
SRAM start NA
gcc plug-in: CProjectTree::OnSize()
gcc plug-in: CProjectTree::OnSize()
gcc plug-in: CProjectTree::OnSize()
I dont know if that means it is working. ONe more thing how do I get the box back that says break points and trace points. I think I accidently deleted it. Ok thanks tell me if you think it is working or not.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: Somchaya on April 14, 2007, 09:52:12 AM
Hmm.. I'm not familiar with avr software, but it does look as if it's working..

Not so sure about the breakpoints and all that though..
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 10:23:17 AM
well what software do you use? I now realize that photovore is just following light. I dont beleive it works though because my pc does not seem do be doing anything(making any noise). Is there anyway I can make my robot just go around my hous e without bumping into things (With the board I made in 50 dolloar robot)?If so could you show me a good tutorial,source codes and everything that you would use. Or I guess I would not mind the photovore  if it worked but I would rather just have it go around my house. Any help would be great. Thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: Somchaya on April 14, 2007, 11:09:41 AM
Oh, well I've not personally built the $50 robot, but I've done photovores before using a Handyboard, which has a different development platform..

Regarding going around the house and not bumping into things, the source code might be slightly different, and you would probably have to change the sensors to a different kind, but I believe the $50 robot can be adapted to do that.

Have you managed to get the wheels of the robot to turn? You can try shining light at one or both of the light sensors and see if it makes a difference. I don't think the board will actually make any noise, but wheels turning will be quite noticeable if it happens.

If that doesn't work, then there is probably some error in either the software or hardware..

Edit: by hardware I mean connections and the like, I don't think the components themselves are faulty (that does happen, but the probability of that happening is lower)
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 01:09:26 PM
I would like to try that if I Had the software working. I can not build it and I am doing everything right. It just says build and it will say build for hours on end. It  doesnt work. If someone could show me a way to make a program for the board I just made that works I would be very pleased. thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: NOOBinDistress on April 14, 2007, 07:30:09 PM
Ok i have gotten the build on the photovore program to work. Now I need help  getting rid of the errors:

Build started 14.4.2007 at 21:25:51

-------- begin --------
avr-gcc (GCC) 4.1.1 (WinAVR 20070122)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.


Compiling: Photovore_v1.c
re_v1.o

In file included from Photovore_v1.c:20:
SoR_Utils.h:22:48: error: global.h: No such file or directory
SoR_Utils.h:27:60: error: a2d.h: No such file or directory
Photovore_v1.c: In function 'main':
Photovore_v1.c:41: warning: implicit declaration of function 'a2dInit'
Photovore_v1.c:42: warning: implicit declaration of function 'a2dSetPrescaler'
Photovore_v1.c:42: error: 'ADC_PRESCALE_DIV32' undeclared (first use in this function)
Photovore_v1.c:42: error: (Each undeclared identifier is reported only once
Photovore_v1.c:42: error: for each function it appears in.)
Photovore_v1.c:43: warning: implicit declaration of function 'a2dSetReference'
Photovore_v1.c:43: error: 'ADC_REFERENCE_AVCC' undeclared (first use in this function)
Photovore_v1.c:56: warning: implicit declaration of function 'a2dConvert8bit'
make: *** [Photovore_v1.o] Error 1
Build failed with 6 errors and 4 warnings...

How do I fix these. Thanks.
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: ed1380 on April 14, 2007, 09:44:40 PM
download ponyprog2000, and I'll post the .hex file that has already been "built"
save it and rename it.
delete the .jpg.txt
so it only says      photovore_v1.hex
Title: Re: Struggling with directions for avr software in 50 dollar robot.
Post by: Admin on May 11, 2007, 09:03:20 AM
Was just wondering if you had any luck in getting it to work.

The last error you posted looks like you didnt set up the make file properly (Configuration Options section), and/or are missing files that are supposed to be in the folder.