Author Topic: 1~2ms pwm?  (Read 887 times)

0 Members and 1 Guest are viewing this topic.

Offline StephanieTopic starter

  • Jr. Member
  • **
  • Posts: 46
  • Helpful? 0
1~2ms pwm?
« on: August 18, 2009, 07:51:28 PM »
Okay, I got my Sabertooth 2x5 with the R/C signal mode (simulated by an Axon MCU).

But I can't find how to PWM 1~2ms! All I see is a servo command that uses "cycles" as an argument. How many cycles = 1 ms? Can I use a function that uses ms as an argument?

Thanks.
--- Stephanie

Offline sonictj

  • Supreme Robot
  • *****
  • Posts: 416
  • Helpful? 11
Re: 1~2ms pwm?
« Reply #1 on: August 18, 2009, 08:03:48 PM »
I can definitely explain how but it may be easier for you to use Webbot's Library.  If you want me to elaborate on how to manipulate the registers in the atmega640 to create the pwm signal let me know, and I'll post how.

Offline StephanieTopic starter

  • Jr. Member
  • **
  • Posts: 46
  • Helpful? 0
Re: 1~2ms pwm?
« Reply #2 on: August 18, 2009, 08:07:58 PM »
Oh... I thought it would be a single function with port and pulse width.

Thanks, I'll just use Webbot's library then.
--- Stephanie


 


Get Your Ad Here

data_list