View Full Version : 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?
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?
I'm using it for, to feed a ball to a shooter. Is there a example picture you could show me?
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/showpost.php?p=1026930&postcount=3
an example on how the pid's are used with the motor.
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?
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.
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?
I'm not seeing one at all. So i was wondering if you have an example you could show me.
vBulletin® v3.6.4, Copyright ©2000-2017, Jelsoft Enterprises Ltd.