FIRST Robotics Competition Discussions

cancel
Showing results for 
Search instead for 
Did you mean: 

Problem with PWM Output

In an earlier posting I was thinking that my motors were not working.

I have re-attached my camera with servo control to the cRIO.

The servos do not work either.

The camera display works when using the Servo Tracking Camera example.

All of this worked with the 2009 software.

I created the "Basic Motor Control" program from the tutorial.

The motor did not work.

I added digital input and analog input readings to the program.

They work.

We have two cRIO's that were used during the 2009 season.  One in the robot and one for lab simulations of new robot code.

Neither of the cRIO's PWM work.

Is there something in the software that could be the cause of this?

We cannot start testing the 2010 robot control without PWM working.

PLEASE help!

Thanks,

Mike

0 Kudos
Message 1 of 5
(5,075 Views)

Are you only trying to drive servo's or have you also tried to drive the victors or jaguars.   The one thing to remember with the servo's is that you are going to need to add the jumper to the digital side car next to the pwm's that are hooked up to drive servo's.  thought i would check to see if you had those there or not.   i know we spent a good deal of time when we put our camera back on wondering why it wouldn't drive and when we added the jumpers we worked just fine.

0 Kudos
Message 2 of 5
(3,105 Views)

I have the jumpers for the servos installed.

Neither the motors or the servos work.

0 Kudos
Message 3 of 5
(3,105 Views)

Hello,

The first thing that I always look into when I hear of motors not working is to make sure that if you have the User Watchdog set up that it is being fed.  It sounds like you were creating a Basic Motor Control VI from the tutorial, is it possible that you missed the Watchdog VIs?

The other thing that I would consider is, have you tried to just run the default code that is created when you create a new FRC cRIO Robot Project?  You can see how to build and deploy the default code in the [FRC 2010] How Do Deploy Default Code to my Robot? Tutorial.  This default code will allow you to run a robot with 2 motors with the Jaguar Motor Controllers set up for PWM1 and PWM2 of the digital module in slot 4.

If you have questions about the framework take a look at the [FRC 2010] FRC Robot Framework Tutorial. Or I also highly suggest checking out the videos posted on FRCMastery.com.

Please continue posting here if things still aren't working and we will be very happy to assist you.  I hope this helps!  Have a great day!

Thanks!

Bob H

NI FIRST Support

Thanks!
Bob H
Applications Engineer
National Instruments
0 Kudos
Message 4 of 5
(3,105 Views)

"READ the MANUAL!"

I'm sorry to have bothered everyone.

I made a bad assumption: When the Classmate Driver Station showed that the "Communications" and the "Robot Code" were running, I thought that the program was running. I finally took the time to read the DS Guide and found that you have to "Enable" the code.

Everything is working now!

Thanks,

Mike

0 Kudos
Message 5 of 5
(3,105 Views)