|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
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
|
|||
|
|||
|
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
|
|||||
|
|||||
|
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
|
|||
|
|||
|
Re: Programming 4 cim motors
Thanks for the replies. Where can I get a pwm y cable?
|
|
#5
|
|||||
|
|||||
|
Re: Programming 4 cim motors
You should have two of them in your Kit Of Parts.
they have the black/yellow/red wires. |
|
#6
|
|||
|
|||
|
Re: Programming 4 cim motors
Thank you!!!
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
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 |