Log in

View Full Version : Motors not working with jaguars


AndresC
24-01-2012, 16:59
The motors wont run when they are connected to a jaguar, any ideas as to what the problem is. The light on the jaguar is blinking.

kuh-nig-its-EL
24-01-2012, 17:05
There is no PWM cable connected to the jaguar.

sometimestommy
24-01-2012, 17:09
Hey. First off i would check the control system diagrams on the frc KOP websites. The big thing i see wrong with it is the lack of a PWM cable that goes into the digital side car. (see control system wiring pdf)

-Thomas

browny996
24-01-2012, 17:34
The other thing that i would recomend checking is that your motors are geared right and working::ouch::

mikets
24-01-2012, 17:41
The motors wont run when they are connected to a jaguar, any ideas as to what the problem is. The light on the jaguar is blinking.
According to the picture, you need to tell the Jaguar to "turn" the motor and you can't tell the Jaguar anything until you either connect a PWM cable or a CAN cable to it and have some code to tell the Jaguar how fast it should turn the motor. BTW, the blinking light tells you exactly that (that nobody is talking to the Jaguar - no connection).

AndresC
24-01-2012, 17:42
We connected the PMW cables but it did not worked. The motors work fine, they work when we connect them to a power source. Can someone post a link to the diagram.

mikets
24-01-2012, 17:43
But did you execute code to tell the Jaguar what power to turn the motor? And where did you connect the PWM cable to? It should be connected to one of the PWM channels of the digital sidecar.

PAR_WIG1350
24-01-2012, 18:09
Not only do you need a pwm cable from the jaguar to the digital sidecar, but the digital sidecar must be connected to the crio and the crio, digital sidecar AND the jaguar must be connected to the power distribution board to receive power.

Edit: Also, check your crimping, the red motor lead seems to be crimped incorrectly, there should be no metal from the wire visible. Also, you should be able to hold the connector in one hand and the wire in the other and tug it without the connector falling off.

AndresC
24-01-2012, 18:13
The code doesn't come with the default program? PAR_WIG1350, everything has power going through it.

mikets
24-01-2012, 18:13
Ok, here is the power connection diagram.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Robot%20Power%20Distribution%20Diagram%20%2824V%20 Solenoid%29.pdf

And here is the signal connection diagram.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Robot%20Data%20Connectivity%20Diagram%20%28PWM%29. pdf

Although the line that connects the PWM channel 1 of the digital sidecar to the Jaguar is technically incorrect. It doesn't go into the RJ-11 connector. It should go to the 3-pin header labeled PWM on the Jaguar.

mikets
24-01-2012, 18:19
The code doesn't come with the default program?
Depends. What default program are you loading to the robot? FIRST provides many sample code. You need to make sure you are using the correct one that matches your robot's configuration (i.e. using Jaguars in PWM mode) and make sure it is using the same PWM channel that you connected your Jaguar to. And of course, you also need to make sure your modules are plugged into the cRIO correctly (module 1: analog, module 2: digital and optionally module 3 solenoid). You also need to make sure your DB37 cable that connects the digital module to the sidecar is fixed. If you haven't heard anything about the DB37 cable, you haven't fixed it. There are many threads in the forums talking about the DB37 cable. Search for it.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/DB37%20Ribbon%20Cable%20Assembly%20-%20Rework%20Instructions.pdf

Ether
24-01-2012, 18:21
The motors wont run when they are connected to a jaguar

Count your blessings.

Before you do anything else, secure that CIM so it doesn't jump off the table.

AndresC
26-01-2012, 12:14
Depends. What default program are you loading to the robot? FIRST provides many sample code. You need to make sure you are using the correct one that matches your robot's configuration (i.e. using Jaguars in PWM mode) and make sure it is using the same PWM channel that you connected your Jaguar to. And of course, you also need to make sure your modules are plugged into the cRIO correctly (module 1: analog, module 2: digital and optionally module 3 solenoid). You also need to make sure your DB37 cable that connects the digital module to the sidecar is fixed. If you haven't heard anything about the DB37 cable, you haven't fixed it. There are many threads in the forums talking about the DB37 cable. Search for it.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/DB37%20Ribbon%20Cable%20Assembly%20-%20Rework%20Instructions.pdf

We are using LabVIEW and there is only one default default robot code in it.

Count your blessings.

Before you do anything else, secure that CIM so it doesn't jump off the table.



We had tested it out before so we knew the motor would not work. We had the motor on the table so that we could have a clear picture.

AndresC
26-01-2012, 14:10
Ok, here is the power connection diagram.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Robot%20Power%20Distribution%20Diagram%20%2824V%20 Solenoid%29.pdf

And here is the signal connection diagram.
http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Robot%20Data%20Connectivity%20Diagram%20%28PWM%29. pdf

Although the line that connects the PWM channel 1 of the digital sidecar to the Jaguar is technically incorrect. It doesn't go into the RJ-11 connector. It should go to the 3-pin header labeled PWM on the Jaguar.

We did this, we put the left motor to PWM 1 and the right motor PWM 2 but still nothing is working. Could it have to do with the cRIO

Prototype151
26-01-2012, 14:31
To get the motors working correctly as i understand, not only do you need to hook it up the the jaguar and correctly configure all other hardware, but you also need the code which can be found under Support-->Example programs[Labview] There is 2 main motor configs, tank drive and arcade drive. I believe that arcade drive is default for robot name if you start a new crio project. The scematics for setting up the hardware[Electrical] can be found here
http://www.google.com/imgres?q=electrical+setup+for+frc&um=1&hl=en&sa=N&biw=1600&bih=837&tbm=isch&prmd=imvnsfd&tbnid=P6BOeUKSzEX-DM:&imgrefurl=http://team358.org/files/programming/ControlSystem2009-/setup/&docid=B8yiSz99nBQH7M&imgurl=http://team358.org/files/programming/ControlSystem2009-/setup/med_2011PowerDiagram.jpg&w=496&h=300&ei=AaohT7fsFdDMiQL00JnvBw&zoom=1
PS:the link is kind of big sorry

DavidGitz
26-01-2012, 14:40
The document entitled "Getting Started with your 2012 Control System" located here (http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/Getting%20Started%20with%20the%202012%20FRC%20Cont rol%20System_2.pdf)goes step by step on configuring your Control System.

I assume you are somewhere on page 25 but you should go through this document and verify every step has been performed. Also, while you can use one of the Example Projects (on the Labview Splash Screen click Support and then click "Find FRC Examples" the Default Project has code in it already to control a simple drive-train, to help new teams get started. Which this document references.

AndresC
26-01-2012, 18:15
Problem has been fixed. We forgot to put the jumper on the Analog breakout. Everything else was connected properly.

slijin
26-01-2012, 20:53
Problem has been fixed. We forgot to put the jumper on the Analog breakout. Everything else was connected properly.

Erm, that problem would have no effect on Jaguar communication barring some ridiculous short through the breakout. The jumper allows you to see your battery readout accurately, not regulate speed controller signals.

PAR_WIG1350
27-01-2012, 00:09
Problem has been fixed. We forgot to put the jumper on the Analog breakout. Everything else was connected properly.

Analog breakout? That has nothing to do with the jaguars. If you are talking about the servo jumpers on the DSC, than there is still something wrong, you shouldn't need those. The only possible thing I can think of that would make this solution make sense would be the new CRIO image disabling all outputs when it can't read battery voltage.

Shaun Coon
27-01-2012, 21:07
The crimp coming from the cim to the jag seems to be coming out via your picture

Ringbearer31
28-01-2012, 16:32
From your question, you do not state you tested it with victors, so I'm going to assume "no". If your useing your shiny new ribbon cable, try something else. Thats broken. You can fix it with these instructions (http://www.usfirst.org/sites/default/files/uploadedFiles/Robotics_Programs/FRC/Game_and_Season__Info/2012_Assets/DB37%20Ribbon%20Cable%20Assembly%20-%20Rework%20Instructions.pdf), but they are easy to break even more.