Lynxmotion Tech Support

www.lynxmotion.com
It is currently Thu May 23, 2013 12:42 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 7 posts ] 
Author Message
PostPosted: Sun Jan 22, 2012 9:08 pm 
Offline
Roboteer

Joined: Sun Jan 22, 2012 8:57 pm
Posts: 14
Hi,

I'm currrently on a project with the 4WD rover. I'm planning to use the SABERTOOTH 2x5 controllers and my microcontroller is a TMS320F28069.
Why not use one of the many "supported" ones, well, I used this one a lot and I like it. Plus, I already wrote most of the libraries already in another project.

Thing is, I'm kinda new to motor control and I read the user guide and saw that I could use a PWM output with a Low-Pass filter to control the analog input of the sabertooth.
Will the motor speed be controlled with the duty cycle of my signal ? (0-49 = reverse, 50 = stop, 51-100 = forward)
And will the frequency matter much, as long as I'm over 1kHz (recommended in the guide)?

Thanks a lot :)

Alex

I attached an image showing a block diagram of the output circuit to show what I want to use.


Attachments:
File comment: 3.3V PWM to sabertooth 2x5 simple circuit
OUTPUT DSP.png
OUTPUT DSP.png [ 11.99 KiB | Viewed 892 times ]
Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 10:03 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
In the above scenario the filter is changing the pwm to a DC voltage. So the frequency of your PWM is essentially removed. I can't say it will be exactly at 50% though.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 10:15 am 
Offline
Roboteer

Joined: Sun Jan 22, 2012 8:57 pm
Posts: 14
Okay, but the voltage will vary with the Duty Cycle right?


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 10:36 am 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
That's the idea, yep.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 4:37 pm 
Offline
Roboteer

Joined: Sun Jan 22, 2012 8:57 pm
Posts: 14
And maybe one last precision, I heard that PWMs used as DACs are imprecise. I don't need so much accuracy, I'd be glad to have maybe 6 speeds + stop in the beginning. But if I want to have more resolution, should I use a better filter? Maybe two first order filter in series?


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 4:51 pm 
Offline
Lynxmotion Founder
User avatar

Joined: Mon Oct 31, 2005 10:46 am
Posts: 9325
Location: my quiet place
Before you go guessing how many steps in the entire range why not just try it and see what precision you can achieve with PWM. There are different methods of communicating with the sabertooth. You don't need to use PWM / filter / analog in.

_________________
Jim Frye, the Robot Guy
http://www.lynxmotion.com
I've always tried to do my best...


Top
 Profile  
 
PostPosted: Mon Jan 23, 2012 7:41 pm 
Offline
Roboteer

Joined: Sun Jan 22, 2012 8:57 pm
Posts: 14
Yeah that's true... Sorry for bothering :\

I just want to make sure they will work with my controller. I won't be using R/C for sure, maybe some wireless command via serial (XBEE probably), but it will mostly be automated.
And I think it will be much easier to control via PWM than via serial, even if it's less secure, it's not critical.


Top
 Profile  
 
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 7 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group