Go to Post I'd be upset if someone threw away my robotics shirts. Because then I'd have no shirts. - evulish [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 13-02-2012, 12:38
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Encoder Help.

I have an encoder hooked up along with a motor. The encoder reads the motor fine. But, I'm stuck on how to use the the output of the encoder with the motor. So lets say i press button 10 on the joystick. Than it tells the motor to only spin 1/4 a rotation, or 90 degrees. I've been trying every possible idea that i had. Any help is greatly appreciated.

//EDIT\\

I've noticed that In my Driver Station the VOLTS are not updating it stuck at 17.5 VOLTS or something like that. any ideas?

Last edited by mtnteam : 13-02-2012 at 16:05. Reason: Adding a new problem.
Reply With Quote
  #2   Spotlight this post!  
Unread 13-02-2012, 12:58
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoder Help.

Quote:
Originally Posted by mtnteam View Post
I have an encoder hooked up along with a motor. The encoder reads the motor fine. But, I'm stuck on how to use the the output of the encoder with the motor. So lets say i press button 10 on the joystick. Than it tells the motor to only spin 1/4 a rotation, or 90 degrees. I've been trying every possible idea that i had. Any help is greatly appreciated.
Use a PID (or any other feedback controller) with encoder signal as process variable, and the setpoint established as follows:

Every time the leading edge of a button press is detected, increment the setpoint by 90 degrees.

What are you using this for?

Reply With Quote
  #3   Spotlight this post!  
Unread 13-02-2012, 13:59
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Encoder Help.

I'm using it for, to feed a ball to a shooter. Is there a example picture you could show me?
Reply With Quote
  #4   Spotlight this post!  
Unread 13-02-2012, 14:45
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoder Help.

Quote:
Originally Posted by mtnteam View Post
Is there a example picture you could show me?
Picture of what? PID? It's a vi in your FRC LabVIEW installation.

How to detect leading edge of a button press?
http://www.chiefdelphi.com/forums/sh...30&postcount=3


Reply With Quote
  #5   Spotlight this post!  
Unread 13-02-2012, 15:40
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Encoder Help.

an example on how the pid's are used with the motor.
Reply With Quote
  #6   Spotlight this post!  
Unread 13-02-2012, 16:34
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoder Help.

Quote:
Originally Posted by mtnteam View Post
an example on how the pid's are used with the motor.
Did you search the LabVIEW help and examples, and could not find what you need?

Reply With Quote
  #7   Spotlight this post!  
Unread 13-02-2012, 17:10
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Encoder Help.

Correct. There is a Encoder with a motor example. But all its doing is reading the motor. I want to figure out how to use that information to set it so many turns or degrees.
Reply With Quote
  #8   Spotlight this post!  
Unread 13-02-2012, 17:12
Ether's Avatar
Ether Ether is offline
systems engineer (retired)
no team
 
Join Date: Nov 2009
Rookie Year: 1969
Location: US
Posts: 8,015
Ether has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond reputeEther has a reputation beyond repute
Re: Encoder Help.

Quote:
Originally Posted by mtnteam View Post
Correct. There is a Encoder with a motor example. But all its doing is reading the motor. I want to figure out how to use that information to set it so many turns or degrees.
I don't know what you mean by "reading the motor". Could you explain.

Is there an example that shows how to control motor position using a PID?

Reply With Quote
  #9   Spotlight this post!  
Unread 13-02-2012, 18:28
mtnteam mtnteam is offline
3747 - Programmer
AKA: Steven
FRC #3747 (ChaoTech)
Team Role: Programmer
 
Join Date: Jan 2012
Rookie Year: 2011
Location: Minnesota
Posts: 30
mtnteam is an unknown quantity at this point
Re: Encoder Help.

I'm not seeing one at all. So i was wondering if you have an example you could show me.
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


All times are GMT -5. The time now is 08:42.

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