Society of Robots - Robot Forum

General Misc => Misc => Topic started by: ENG_SKJ on December 03, 2011, 11:32:57 PM

Title: hold_servo.hex for Axon (atmega640)
Post by: ENG_SKJ on December 03, 2011, 11:32:57 PM
I bought an Axon recently. Trying to modify the servos (HS-311) that I have. The link for the software (hold_servo.hex), to command the servo to 0 position, is for Atmaga8. Where can find the .hex for Atmega640 (Axon)? thanks!
Title: Re: hold_servo.hex for Axon (atmega640)
Post by: Admin on December 04, 2011, 09:26:03 AM
The hold servo code just does one thing, it tells the servo to go to 0 degrees.

It requires just one line of code:
servo.setSpeed(0);

I compiled it for you and attached the .hex for you. Connect your servo to pin H5, and the servo should stay at angle 0.

ps - if you are using the bootloader, change the file name so that it has less than 9 characters before uploading