Author Topic: hold_servo.hex for Axon (atmega640)  (Read 1574 times)

0 Members and 1 Guest are viewing this topic.

Offline ENG_SKJTopic starter

  • Beginner
  • *
  • Posts: 1
  • Helpful? 0
hold_servo.hex for Axon (atmega640)
« 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!

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: hold_servo.hex for Axon (atmega640)
« Reply #1 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

 


Get Your Ad Here

data_list