Society of Robots - Robot Forum

Software => Software => Topic started by: photray94 on June 30, 2008, 01:05:58 AM

Title: Modfying Servo - Looking for help on loading .hex
Post by: photray94 on June 30, 2008, 01:05:58 AM
Okay, so I want to modify my HS-311 servo for continuous rotation.  I understand all of http://www.societyofrobots.com/actuators_modifyservo.shtml (http://www.societyofrobots.com/actuators_modifyservo.shtml) quite well, except rotating the servo to zero degrees.  These directions, in my opinion, are not very explicit to someone who has never programming an MCU before.

Quote
So the first step would be to open up the servo.
1) First make sure the servohorn is removed from the output shaft. The servohorn attaches to the main output gear (the biggest gear), so removing it helps keep the gears from all falling out when you open the servo up. Also, use a microcontroller to command the servo to rotate to 0 degrees, the point between the maximum and minimum angle the servo can rotate to. You may also do this step by hand, although it might not be as exact.

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.

This tells me nothing, except to download the .hex file to my MCU.  Okay, great!  I need someone to break down doing this, step by step for me, please.  Thank you!
Title: Re: Modfying Servo - Looking for help on loading .hex
Post by: izua on June 30, 2008, 01:45:45 AM
Start from this page (http://www.societyofrobots.com/step_by_step_robot_step4.shtml), at this paragraph: Now we need to upload the .hex file..

You'd help out if you let me know what programmer and hex downloader you are using.
Title: Re: Modfying Servo - Looking for help on loading .hex
Post by: Admin on July 20, 2008, 08:48:13 AM
Got it to work?
Title: Re: Modfying Servo - Looking for help on loading .hex
Post by: photray94 on July 22, 2008, 02:25:03 AM
Got it to work?

I actually haven't been at this project for a while; more developments later to come.
Title: Re: Modfying Servo - Looking for help on loading .hex
Post by: swall on August 04, 2008, 10:22:20 PM
Actually, I am at this exact step after soldering up my development board for the 50 buck tutorial.....

all systems go....  lights are all blinking appropriately (it appears) after powering up, and upgrading firmware on my MKII.....

I have my project created in AVR studio, the hex file is in the projects root folder.  AVR connect seems to be OK.  The multi tabbed interface has one of the tabs that allows the user to browse to the .hex file (to hold servo), however which one do I use, EEPROM or FLASH?  I am guessing EEPROM....

After browsing and selecting the hex file, then what interface selections will actually launch the "program burn" and how does AVR studio indicate success/failure?

Thanks

Steve
Title: Re: Modfying Servo - Looking for help on loading .hex
Post by: Admin on August 05, 2008, 06:39:04 AM
Use Flash

Quote
After browsing and selecting the hex file, then what interface selections will actually launch the "program burn" and how does AVR studio indicate success/failure?
Its all described in the tutorial. AVR Studio will make it obvious if it failed or not, nothing to worry about.