Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   Motors (http://www.chiefdelphi.com/forums/forumdisplay.php?f=52)
-   -   Adding motor to system please help? (http://www.chiefdelphi.com/forums/showthread.php?t=102143)

Luiz12 06-02-2012 21:43

Adding motor to system please help?
 
Hi we're currently a rookie team with no remote idea on how to add a motor to our default code. We hooked up a simple motor to a victor and then to the system but we have absolutely no idea on how to program it.

Mark McLeod 06-02-2012 21:54

Re: Adding motor to system please help?
 
What language?

LabVIEW looks like this:


Although you'd want to change "Jaguar" above to "Victor"

Found under WPI Robotics Library->Actuators->MotorControl

msulaimain 06-02-2012 22:01

Re: Adding motor to system please help?
 
If you are coding your robot in C++ then you can simply use the SimpleRobot example that can be accessed by going to File---New---Example---Downloadable Kernel Project---SimpleRobot---open that up and build your project. Then deploy your project to your robot. You will notice in that example that you have two drive motors connected to port 1 and 2 of your side car. You have your set up correct: Motor to jaguar (M+ and M- Side) and then from there you take wires to your Power Distribution board. You have to remember that you also have to plug in a PWM cable from your jaguar to the digital sidecar ports 1 and 2. You might have to play around with how to plug in the PWM's because sometimes you might get them flipped; just flip them over if needed and you should have two running motors. If you want to add motors then you will have each motor usually connected to a jaguar and that jaguar gets data/integer values from your code that are transmitted through the digital sidecar (blue thing). Make sure all your major components (power distribution board, side car, cRIO, etc;) are getting power. The dis-functioning of one of these components can cause others to cause technical difficulties which will make it harder for you. you can also read the US FIRST resources and perform a benchmark test, which helps you better understand how all the electronic components are set up.

Hope this helped.

Luiz12 06-02-2012 22:03

Re: Adding motor to system please help?
 
Thank you that's exactly what I was looking for.

msulaimain 06-02-2012 22:08

Re: Adding motor to system please help?
 
Quote:

Originally Posted by Luiz12 (Post 1121363)
Thank you that's exactly what I was looking for.

So are you coding in C++ or Labview?

Luiz12 06-02-2012 22:18

Re: Adding motor to system please help?
 
This is what I ended up doing..


All times are GMT -5. The time now is 05:32.

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