Go to Post By the way why do all american's spell Colour wrong?!?!?!?!?!?!?!? - akoscielski3 [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 11-02-2008, 14:51
huskyrobotics huskyrobotics is offline
Registered User
FRC #0848
 
Join Date: Mar 2007
Location: San Pedro CA
Posts: 21
huskyrobotics will become famous soon enoughhuskyrobotics will become famous soon enough
Red face Programming 4 cim motors

We are essentially a rookie team every year we compete and our new programmer is having trouble with getting all four cims to work. We are using mplab and two joysticks. We are in search of any code and would also like to know if the PWM numbers matter...is 1-4 better than 13-16? Thanks
  #2   Spotlight this post!  
Unread 11-02-2008, 15:06
Team 135 Team 135 is offline
Registered User
FRC #0135 (Penn Robotics)
 
Join Date: Jan 2008
Rookie Year: 1998
Location: Mishawaka, Indiana
Posts: 139
Team 135 will become famous soon enough
Re: Programming 4 cim motors

although i do not have any code on hand that I can send you, PWM numbers are only a way of identifying the ports and have nothing different about how they are wired in the board or how the react when you send a command to them in programming.
  #3   Spotlight this post!  
Unread 11-02-2008, 15:11
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Programming 4 cim motors

If you're putting two CIMs on the same gearbox, you can use a pwm Y cable to control both of their Victors from the same pwm output. Then just program it as if it were one motor.

Using pwm outputs 13-16 is fine as long as you don't have a lot of interrupt sources active (from shaft encoders, gear tooth sensors, fancy timers, and the like). If you have added anything like that, they'll act jittery and occasionally even make motors run when you want them to be stopped. You can avoid those outputs, or you can install Kevin Watson's fancy pwm support library to tame them.
  #4   Spotlight this post!  
Unread 11-02-2008, 15:13
huskyrobotics huskyrobotics is offline
Registered User
FRC #0848
 
Join Date: Mar 2007
Location: San Pedro CA
Posts: 21
huskyrobotics will become famous soon enoughhuskyrobotics will become famous soon enough
Re: Programming 4 cim motors

Thanks for the replies. Where can I get a pwm y cable?
  #5   Spotlight this post!  
Unread 11-02-2008, 15:16
MrForbes's Avatar
MrForbes MrForbes is offline
Registered User
AKA: Jim
FRC #1726 (N.E.R.D.S.)
Team Role: Mentor
 
Join Date: Feb 2006
Rookie Year: 2006
Location: Sierra Vista AZ
Posts: 6,023
MrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond reputeMrForbes has a reputation beyond repute
Re: Programming 4 cim motors

You should have two of them in your Kit Of Parts.

they have the black/yellow/red wires.
  #6   Spotlight this post!  
Unread 11-02-2008, 15:19
huskyrobotics huskyrobotics is offline
Registered User
FRC #0848
 
Join Date: Mar 2007
Location: San Pedro CA
Posts: 21
huskyrobotics will become famous soon enoughhuskyrobotics will become famous soon enough
Re: Programming 4 cim motors

Thank you!!!
Closed Thread


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
CIM motors Spencer E. Technical Discussion 1 13-01-2008 11:07
your thoughts on the FP CIM/2.5 CIM motor drive setup versus 2 2.5 CIM motors waialua359 Motors 11 14-12-2007 04:29
Cim motors trhgammer Motors 1 15-02-2006 12:31
CIM Motors UlTiMaTeP Motors 13 10-01-2006 14:48
CIM Motors rocky ali Motors 2 24-09-2005 17:55


All times are GMT -5. The time now is 19:14.

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