![]() |
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? |
Re: Encoder Help.
Quote:
Every time the leading edge of a button press is detected, increment the setpoint by 90 degrees. What are you using this for? |
Re: Encoder Help.
I'm using it for, to feed a ball to a shooter. Is there a example picture you could show me?
|
Re: Encoder Help.
Quote:
How to detect leading edge of a button press? http://www.chiefdelphi.com/forums/sh...30&postcount=3 |
Re: Encoder Help.
an example on how the pid's are used with the motor.
|
Re: Encoder Help.
Quote:
|
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.
|
Re: Encoder Help.
Quote:
Is there an example that shows how to control motor position using a PID? |
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