Go to Post Robots will consume you if you are not careful. - JohnBoucher [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 09-02-2009, 19:09
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Can any one help us with programing the encoder to control the motor by ticks?

i wonder if any one knows how to set up the motor to move to ticks?
making a motor into a absolute value like a servo..
any help here?
Reply With Quote
  #2   Spotlight this post!  
Unread 09-02-2009, 20:15
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Re: Can any one help us with programing the encoder to control the motor by ticks?

any oneee???
Reply With Quote
  #3   Spotlight this post!  
Unread 09-02-2009, 20:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Can any one help us with programing the encoder to control the motor by ticks?

Motors alone cannot do this. If you add a pot or an encoder, then you have a shot. Another way to go about this is with limit switches.

It is reasonable to think of a servo as a motor, a pot, and a loop that quickly adjusts the motor speed based on whether the pot is too low, too high, or just right. If you get a pot or encoder hooked up, try making a periodic task to read the pot and set the motor.

Greg McKaskle
Reply With Quote
  #4   Spotlight this post!  
Unread 09-02-2009, 20:28
Must Be Drama Must Be Drama is offline
Registered User
no team
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Brooklyn
Posts: 62
Must Be Drama is an unknown quantity at this point
Re: Can any one help us with programing the encoder to control the motor by ticks?

i got the encoders from the kit already set up and mounted on a banebot motor we are using to control our lazy susan
Reply With Quote
  #5   Spotlight this post!  
Unread 09-02-2009, 20:54
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,752
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Can any one help us with programing the encoder to control the motor by ticks?

So, now you are missing code to read the encoder and compare the value of the encoder to the value that you want it to be. Then set the motor either forward, backward, or stopped depending on the error. Once you get it working to some degree, you can look at adding PID to make it be better controlled.

Greg McKaskle
Reply With Quote
Reply


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
can we control the amount of air to control the speed of the cylinder? Team2339 Pneumatics 22 11-02-2009 15:33
[FTC]: [FTC]: Can any one explain to me just how powerful the servos are? sullivan_owns FIRST Tech Challenge 19 02-12-2008 16:06
programing the vex optical shaft encoder youngWilliam14 Programming 10 11-11-2007 16:16
can anyone please tell mw where or with what can i lear programing in C techsage Programming 7 23-08-2005 00:25
Has any one stuck a drill motor in the FP trans? Lotownvw Motors 15 21-04-2003 23:57


All times are GMT -5. The time now is 21:37.

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