Log in

View Full Version : programmed DC motor in degree..


akash992391
14-02-2013, 22:05
hiii
is there any way to programmed DC motor to certain degree???

Mark McLeod
14-02-2013, 22:18
You need a feedback sensor to do that.
Usually a potentiometer or an encoder depending on what rotations you want to allow the motor to have.

akash992391
14-02-2013, 22:36
do they provide encoder sensor in kitof parts

Mark McLeod
14-02-2013, 22:55
Not inside the Kit totes.

You can get potentiometers at electrical supply places like Radio Shack.

akash992391
14-02-2013, 23:02
can u help mw with this.i have servo but how to programmed that i tried everything but doesn't work on servo can u help me please how to programmed servo i have all electical is good connected but the big problem is progrmming idk please help us....thanx

Mark McLeod
14-02-2013, 23:16
A servo needs a special jumper on the pair of pins right beside the PWM output the servo is connected to.
This picture (http://www.chiefdelphi.com/forums/attachment.php?attachmentid=9743&d=1295532854) shows two white jumpers on PWMS 1 and 2.

The code looks like this:
http://team358.org/files/programming/ControlSystem2009-/LabVIEW/ServosRule.jpg

You can check your servo using Test mode on the Driver Station and the Test tab on the default Dashboard.

akash992391
14-02-2013, 23:39
I tried same wiring with jupers and code still didnt work ...:confused: :(

BenGrapevine
15-02-2013, 11:20
I tried same wiring with jupers and code still didnt work ...:confused: :(

Check to make sure everything is plugged in and that the in the drivers station the joystick you are using is set as the first one in the list. Also make sure you're referencing of the name is consistent throughout.