Go to Post Let me tell you, the scariest day ever was the day that I realized since I am a mentor, people actually take my advice and I should be careful of what kind of advice I give. :ahh: - Elgin Clock [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-04-2016, 10:33
NickLD3753's Avatar
NickLD3753 NickLD3753 is offline
Registered User
FRC #3753 (BulahBots)
Team Role: Programmer
 
Join Date: Apr 2016
Rookie Year: 2015
Location: Louisiana
Posts: 1
NickLD3753 is an unknown quantity at this point
Re: Arduino + Jaguar Speed Controller + CIM Motor

Hi, I think what your issue is might be with the default pulse-width of the signal coming from the Servo library.

Some manufactures decide to vary their input range from the standard timings. Also, most RC servos (what the Library was made for) have a different range from what I have seen FRC Controllers use most of the time.

I did a quick look for the Jaguar Datasheet and found this:
http://content.vexrobotics.com/docs/...t_20130220.pdf

This is what the Datasheet says about the input range:

Minimum pulse width 0.67 ms
Neutral pulse width 1.5 ms
Maximum pulse width 2.33 ms

All We need to do now is convert the ms to us:

Minimum pulse width 670 us
Neutral pulse width 1500 us
Maximum pulse width 2330 us


Now the great thing about the servo library is the ability to skip the scaling of the normal RC servo range and just input the raw us timing values.

Code:
myservo.writeMicroseconds(UsTiming);
After that It should be pretty easy to map the values accordingly.

I hope that solves your issue!
Reply With Quote
  #2   Spotlight this post!  
Unread 14-04-2016, 11:16
Unsung FIRST Hero
Al Skierkiewicz Al Skierkiewicz is offline
Broadcast Eng/Chief Robot Inspector
AKA: Big Al WFFA 2005
FRC #0111 (WildStang)
Team Role: Engineer
 
Join Date: Jun 2001
Rookie Year: 1996
Location: Wheeling, IL
Posts: 10,770
Al Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond reputeAl Skierkiewicz has a reputation beyond repute
Re: Arduino + Jaguar Speed Controller + CIM Motor

Please don't forget that the CIM motor has a brush bias that is optimized for one direction over the other. While it is slight, there are production variances that may make individual motors respond differently. Other motors are known to have greater bias differences.
__________________
Good Luck All. Learn something new, everyday!
Al
WB9UVJ
www.wildstang.org
________________________
Storming the Tower since 1996.
Reply With Quote
  #3   Spotlight this post!  
Unread 14-04-2016, 16:00
Michael Hill's Avatar
Michael Hill Michael Hill is offline
Registered User
FRC #3138 (Innovators Robotics)
Team Role: Mentor
 
Join Date: Jul 2004
Rookie Year: 2003
Location: Dayton, OH
Posts: 1,572
Michael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond reputeMichael Hill has a reputation beyond repute
Re: Arduino + Jaguar Speed Controller + CIM Motor

Quote:
Originally Posted by Al Skierkiewicz View Post
Please don't forget that the CIM motor has a brush bias that is optimized for one direction over the other. While it is slight, there are production variances that may make individual motors respond differently. Other motors are known to have greater bias differences.
Could you tune this by loosening the bolts, and rotating the black section that houses the permanent magnets (Not saying this would/should be legal on an FRC robot, just technically possible). There are tick marks on each of the sections so you could potentially reliably clock the magnets in relation to the brushes.
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 05:10.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi