View Single Post
  #2   Spotlight this post!  
Unread 14-02-2013, 22:22
EricH's Avatar
EricH EricH is offline
New year, new team
FRC #1197 (Torbots)
Team Role: Engineer
 
Join Date: Jan 2005
Rookie Year: 2003
Location: SoCal
Posts: 19,814
EricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond reputeEricH has a reputation beyond repute
Re: programmed DC motor in degree..

There is and there isn't. What sensor(s) do you have on the motor you want to move through a certain number of degrees? (And, what is that motor?)

If you don't have any sensors on the motor, you might be able to use time to stop the motor at a given point. However, that can be inaccurate; the window motors are about the only ones I'd trust to do that, and even then only with a hard stop of some kind.

With a sensor, it's a lot easier: run the motor through the angle, read the sensor, and make sure that you can get the same value for the same angle. Then increment/decrement the value to get to where you really need to be. (Note: I'm a mechanical with no knowledge of Labview, so I can't help with the actual programming.)

If you have a servo, then it's even easier, but that isn't the question that was asked.
__________________
Past teams:
2003-2007: FRC0330 BeachBots
2008: FRC1135 Shmoebotics
2012: FRC4046 Schroedinger's Dragons

"Rockets are tricky..."--Elon Musk