go away spammer

Author Topic: PWM axon source code  (Read 4489 times)

0 Members and 1 Guest are viewing this topic.

Offline Its_FridayTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Helpful? 0
PWM axon source code
« on: February 08, 2009, 12:31:58 PM »
I am trying to figure out PWM for servos but i haven't been able to find example code for the axon microcontroller. All i have found are .hex files for centering servos, and i can't read .hex xD

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Its_FridayTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Helpful? 0
Re: PWM axon source code
« Reply #2 on: February 08, 2009, 01:06:41 PM »
I have already read that and understand the under lying principles of PWM but i don't know how to code PWM for servos.

Offline Webbot

  • Expert Roboticist
  • Supreme Robot
  • *****
  • Posts: 2,165
  • Helpful? 111
    • Webbot stuff
Re: PWM axon source code
« Reply #3 on: February 08, 2009, 01:16:52 PM »
This section talks specifically about servos and PWM http://www.societyofrobots.com/member_tutorials/node/231

It includes code for a 1MHz ATMega8

So if you are using a 16MHz Axon then follow the example as it explains what varies according to the CPU frequency.

The reference section shows tables for the ATMega8, 168, and Axon. So you can translate each of the register names from the example into the equivalent registers for the Axon.
Webbot Home: http://webbot.org.uk/
WebbotLib online docs: http://webbot.org.uk/WebbotLibDocs
If your in the neighbourhood: http://www.hovinghamspa.co.uk

Offline Its_FridayTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Helpful? 0
Re: PWM axon source code
« Reply #4 on: February 08, 2009, 01:29:05 PM »
i'm interested in simple source code which uses the axon source code functions. I'm a novice at programming and am unfamiliar with registers. :-[

Offline mbateman

  • Full Member
  • ***
  • Posts: 82
  • Helpful? 0
    • Robotics 4 Fun
Re: PWM axon source code
« Reply #5 on: February 08, 2009, 03:06:47 PM »

Offline Its_FridayTopic starter

  • Jr. Member
  • **
  • Posts: 31
  • Helpful? 0
Re: PWM axon source code
« Reply #6 on: February 09, 2009, 04:07:39 PM »

Offline Admin

  • Administrator
  • Supreme Robot
  • *****
  • Posts: 11,703
  • Helpful? 173
    • Society of Robots
Re: PWM axon source code
« Reply #7 on: February 09, 2009, 09:17:11 PM »

 


Get Your Ad Here

data_list