![]() |
Encoder
I am needing to know what encoders do we need to buy to put them on the drive train and how would be connect them and program them be have never used them before.
|
Re: Encoder
Quote:
|
Re: Encoder
As @Ether said, more details would be appreciated. I programmed the encoders for my team this year but my experience is limited.
|
Re: Encoder
we have the gearbox drive train with the AM14U2 Drive System. (We only use one motor on each side if that helps)
|
Re: Encoder
What do you use for speed control (talons, victors, jaguars) and what kind of wheels do you have?
|
Re: Encoder
Talons
|
Re: Encoder
and the regular kit weals (tile)
|
Re: Encoder
My team uses jaguars, but the code might be similar. What language do you program in?
|
Re: Encoder
java
|
Re: Encoder
What our electrical team did was they wired optical encoders onto the axel and into the jag. Inside of the DriveTrain subsystem, I called a method on each of the jags to inform them that they have encoders. That portion of code looked like this:
Quote:
Quote:
I wouldn't know without looking at the javadocs, but if I were to make an educated guess I would say that setting up encoders would be similar to this but with talons instead of jaguars. |
Re: Encoder
ok what kind of encoders did you get and how did you attach them.
|
Re: Encoder
What do you plan to use the encoders for? Making sure both wheels turn at the same speed or are you using it for finding out how far you have driven?
|
Re: Encoder
We used optical encoders, I'd have to ask the electrical folks for more details. I'm working on incorporating them into autonomous mode.
|
Re: Encoder
both but mainly distance.
|
Re: Encoder
These are the encoders our team purchased http://www.andymark.com/product-p/am-0180.htm and they are working extremely well for us. One thing we want to try is wiring them directly up to our talons (You can only do this if you have the talon SRX's).
If you cant wire them up to the talons then wire them up to the roboRIO, our team accomplished this by cutting up 2 unneeded PWM cables. We wired the cables like so: ![]() (This image is not mine, I just found it online) Then we programmed them link this Code:
Encoder encoderleft; //Declare the encoders so they are accessible in all methods |
Re: Encoder
Quote:
|
Re: Encoder
Quote:
In context (i.e. on the web page where the diagram came from) it explicitly says to connect the cable to DIO ports. |
Re: Encoder
is there any reason why i wouldnt get an accurate reading from the encoders?
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
We should have added encoders a while ago before bag & tag, but since we didn't we will be adding them during the 6-hour robot access period the week of our first district event. Currently our autonomous modes are based on a timer which isn't very accurate or predictable. |
Re: Encoder
Quote:
|
Re: Encoder
Quote:
Here is the information about the gear box if you want to look at its specification for the encoders http://www.andymark.com/product-p/am-2598.htm |
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
Re: Encoder
Quote:
Quote:
We did something similar with our H-drive, though since we used 4" wheels on the corners, we cut the rubber off the center wheels so they would float. |
Re: Encoder
Quote:
|
Re: Encoder
Quote:
|
| All times are GMT -5. The time now is 11:13. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi