Society of Robots - Robot Forum

General Misc => Misc => Topic started by: Joesavage1 on February 01, 2009, 08:49:54 AM

Title: $50 Help with files
Post by: Joesavage1 on February 01, 2009, 08:49:54 AM
Im confused as there are two  files to download in programing, do i need both or just one, if both then how do i make this go on in one session without wiping existing data?!!?

here are the two occurances on the main site.

http://www.societyofrobots.com/actuators_modifyservo.shtml (http://www.societyofrobots.com/actuators_modifyservo.shtml)

Quote
Note, if you are making The $50 Robot (or at least using the ATmega8 microcontroller), download this .hex file and upload it to your ATmega8. You dont need to compile anything, as I already did that for you. This program will tell the microcontroller to send a signal at 1.5ms, the signal your servos need to hold at the zero position.


http://www.societyofrobots.com/step_by_step_robot_step4.shtml (http://www.societyofrobots.com/step_by_step_robot_step4.shtml)

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



Thanks

Joe
Title: Re: $50 Help with files
Post by: Razor Concepts on February 01, 2009, 09:41:10 AM
Do the modify servo one first and put that in the MCU to  modify the servos. Then do the second one which actually does all the photovore stuff.
Title: Re: $50 Help with files
Post by: Joesavage1 on February 01, 2009, 09:53:46 AM
So you mean i upload both to the Microcontroller thing?

How do i upload both at the same time?


PS. WHATS AN MCU

Thanks

Joe
Title: Re: $50 Help with files
Post by: Razor Concepts on February 01, 2009, 10:00:56 AM
Nope, only upload the servo one, modify your servos, and when you download the new one the old program gets erased

MCU = microcontroller
Title: Re: $50 Help with files
Post by: Joesavage1 on February 01, 2009, 11:16:20 AM
so i put 1 on then the servo 1? I want it to be photovore too?!

Joe
Title: Re: $50 Help with files
Post by: Razor Concepts on February 01, 2009, 12:07:39 PM
Before you make it a photovore, you have to modify your servos. To modify your servos, you need a program that tells the servos to center. That is the first program you should download. After you have downloaded it and modified your servos, download the photovore code. Downloading the photovore code into the microcontroller will erase the unneeded center servo code.
Title: Re: $50 Help with files
Post by: Joesavage1 on February 01, 2009, 01:21:09 PM
so download 1, run the robot, then download 2 and wipe off 1 ??


Thanks

Joe
Title: Re: $50 Help with files
Post by: Razor Concepts on February 01, 2009, 02:21:05 PM
Yes. When you download 2, 1 gets automatically wiped off.
Title: Re: $50 Help with files
Post by: Joesavage1 on February 01, 2009, 02:26:22 PM
so am i right in downloading the servo one, running it on the robot, then wiping off the servo one and putting on the photovore one?
Title: Re: $50 Help with files
Post by: frodo on February 01, 2009, 02:32:47 PM
yes, apart from wiping off the servo program and putting the photovore program onto the MCU all goes into one step when you put the photovore program on the MCU.
Title: Re: $50 Help with files
Post by: Joesavage1 on February 02, 2009, 01:18:40 AM
Ok, thanks guys for all your help.

Joe
Title: Re: $50 Help with files
Post by: Joesavage1 on February 03, 2009, 01:23:59 AM
Would i have to redo the servo, then the photo every time i start/stop the robot?

Thanks

Joe
Title: Re: $50 Help with files
Post by: Razor Concepts on February 03, 2009, 04:37:43 AM
No. The servo program and photovore program are two entirely different things and basically they are not connected in any way so don't worry about it.