Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   NI LabVIEW (http://www.chiefdelphi.com/forums/forumdisplay.php?f=182)
-   -   Encoder Help. (http://www.chiefdelphi.com/forums/showthread.php?t=102706)

mtnteam 13-02-2012 12:38

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?

Ether 13-02-2012 12:58

Re: Encoder Help.
 
Quote:

Originally Posted by mtnteam (Post 1125708)
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?


mtnteam 13-02-2012 13:59

Re: Encoder Help.
 
I'm using it for, to feed a ball to a shooter. Is there a example picture you could show me?

Ether 13-02-2012 14:45

Re: Encoder Help.
 
Quote:

Originally Posted by mtnteam (Post 1125747)
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



mtnteam 13-02-2012 15:40

Re: Encoder Help.
 
an example on how the pid's are used with the motor.

Ether 13-02-2012 16:34

Re: Encoder Help.
 
Quote:

Originally Posted by mtnteam (Post 1125796)
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?


mtnteam 13-02-2012 17:10

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.

Ether 13-02-2012 17:12

Re: Encoder Help.
 
Quote:

Originally Posted by mtnteam (Post 1125877)
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?


mtnteam 13-02-2012 18:28

Re: Encoder Help.
 
I'm not seeing one at all. So i was wondering if you have an example you could show me.


All times are GMT -5. The time now is 11:12.

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