Go to Post Holy cow! Five years in FIRST and it only gets better! Skyway has supplied wheels to FIRST for ten years. Ten years ago Dean called Ken for wheels. Ken said yes. Man, we love helping you guys and gals get good wheels. ;) Bart at Skywaywheels.com - SkywayWheels [more]
Home
Go Back   Chief Delphi > Technical > Motors
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #5   Spotlight this post!  
Unread 11-02-2016, 15:47
Knufire Knufire is offline
Rose-Hulman Institute of Technology
no team
Team Role: College Student
 
Join Date: Sep 2009
Rookie Year: 2010
Location: Terre Haute, IN
Posts: 744
Knufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond reputeKnufire has a reputation beyond repute
Re: CIM Motor Reversing

Quote:
Originally Posted by parbas View Post
We're having an issue with a CIM motor operating in reverse. In our code, we have a CIM motor set to go forward for half a second and then in reverse for half a second (both at full speed) at the press of a button. The issue is that the motor does not go back to it's starting position like we thought it would. It goes further back than it was when it started, which is causing an arm to move further and further back with each button press.

Any ideas?

Thanks!
There are many variables you are not controlling. Things like battery voltage, arm. angle (the load on the motor required to move the arm when it is horizontal is much more than when the arm is vertical), the motor may be biased in one direction, etc. Simply applying a percentage of battery voltage for a specified amount of time isn't going to let you preciely control the position of the arm.

You will need to put a sensor on the arm joint to measure the angle of the arm, and use that measured angle in code with a control loop to control the position of the arm.
__________________
Team 469: 2010 - 2013
Team 5188: 2014 - 2016
NAR (VEX U): 2014 - Present
 


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 22:03.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


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