Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Programming (http://www.chiefdelphi.com/forums/forumdisplay.php?f=51)
-   -   Programming 4 cim motors (http://www.chiefdelphi.com/forums/showthread.php?t=63798)

huskyrobotics 11-02-2008 14:51

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

Team 135 11-02-2008 15:06

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.

Alan Anderson 11-02-2008 15:11

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.

huskyrobotics 11-02-2008 15:13

Re: Programming 4 cim motors
 
Thanks for the replies. Where can I get a pwm y cable?

MrForbes 11-02-2008 15:16

Re: Programming 4 cim motors
 
You should have two of them in your Kit Of Parts.

they have the black/yellow/red wires.

huskyrobotics 11-02-2008 15:19

Re: Programming 4 cim motors
 
Thank you!!!


All times are GMT -5. The time now is 23:52.

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