|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
|
|
Thread Tools | Rate Thread | Display Modes |
|
|
|
#1
|
|||
|
|||
|
Reading Encoders?
There were many posts that were very useful regarding how to wire up the encoders (I believe, they were Andy Mark). But before we get into the fun stuff of splicing the wires, our adviser insists that we figure out how to read its output values, so Programming can do their job. Would anyone happen to know how we can test this?
Thanks much in advance! |
|
#2
|
|||
|
|||
|
Re: Reading Encoders?
Are you using labview or C++?
If Your using C++ wpilib has an encoder class. PHP Code:
|
|
#3
|
||||
|
||||
|
Re: Reading Encoders?
The output values are easy to read. But they can be done only once you splice up the wires. I suggest you probe it on to a Oscilloscope and look at the quadrature signals. As you ramp up the motor, the signals should come closer to each other. If there's not a ton of noise, and if it looks "alright" then you should splice it. I wish they gave us two PWM outs instead of 1 4-lane cable.
Once you splice it and connect the correct A & B ports, then it's really simple, just go to WPI Libraries -> Sensors -> Encoders and do the usual thing with Open, Get, Close. Though, this time, you may want to fiddle around with the Configuring the Timers. |
|
#4
|
|||
|
|||
|
Re: Reading Encoders?
It's pretty easy in labview. There's an encoder vi in the library. Just tell it what digital IO pins you've connected it to and that's all there is to it.
Quote:
|
|
#5
|
|||
|
|||
|
Re: Reading Encoders?
how accurate are your encoders? Our mentor says 1 of the values wasn't returning that well...
I think he said it know the distance but not the rotations or something... Also do these break easy? im guessing we should have extras? |
|
#6
|
|||
|
|||
|
Re: Reading Encoders?
Quote:
Here is the announcement of the bug: http://forums.usfirst.org/showthread.php?t=11343 Here is the thread that isolated the bug: http://forums.usfirst.org/showthread.php?t=11004 |
|
#7
|
|||
|
|||
|
Re: Reading Encoders?
ok so reading through the isolated thread, dont really see how to fix the issue...
sorry just clarify what you meant, isolate as in just push the problem aside? or isolate as in fix the rate problem? |
|
#8
|
|||||
|
|||||
|
Re: Reading Encoders?
By "isolated the bug" he means that it discovered the source. As indicated in the first thread that he linked to the bug is going to be addressed in the next software update.
|
|
#9
|
|||
|
|||
|
Re: Reading Encoders?
ok thanks a lot.
|
|
#10
|
|||
|
|||
|
Re: Reading Encoders?
does anyone know when the next update will be coming out?
|
|
#11
|
|||||
|
|||||
|
Re: Reading Encoders?
I hope soon for our sake!
|
|
#12
|
|||
|
|||
|
Re: Reading Encoders?
It went beta the first of last week - I thought it was going to be released by the end of the week.
|
|
#13
|
|||||
|
|||||
|
Re: Reading Encoders?
The thread on the FIRST forums suggests a new update will be out tomorrow (Monday). The issue should now be resolved.
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| Reading Interrupt Ports | ManicMechanic | VEX | 3 | 26-06-2008 12:43 |
| Books Worth Reading | Mr.D | Chit-Chat | 2 | 24-01-2006 13:50 |
| Bathroom Reading | Eugenia Gabrielov | Chit-Chat | 28 | 15-04-2005 17:49 |
| reading rainbooooow! | Nelly51987 | Chit-Chat | 22 | 15-05-2003 13:55 |
| Time reading ChiefDelphi | Wetzel | Chit-Chat | 23 | 28-02-2002 06:45 |