Society of Robots - Robot Forum
General Misc => Misc => Topic started 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)
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
-
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.
-
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
-
Nope, only upload the servo one, modify your servos, and when you download the new one the old program gets erased
MCU = microcontroller
-
so i put 1 on then the servo 1? I want it to be photovore too?!
Joe
-
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.
-
so download 1, run the robot, then download 2 and wipe off 1 ??
Thanks
Joe
-
Yes. When you download 2, 1 gets automatically wiped off.
-
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?
-
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.
-
Ok, thanks guys for all your help.
Joe
-
Would i have to redo the servo, then the photo every time i start/stop the robot?
Thanks
Joe
-
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.