How do you mount the rotary encoder to read the speed of the gearbox output? I can’t find any guides on usfirst.org, and it doesn’t seem obvious (then again, it took me an hour to figure out how to use the Wago tool…)
I’ll assume you are using the toughboxes. In that case, I have an answer.
You need to either buy or make an encoder mount. AM sells them, as well as the encoders.
On the tough box, under the motor to the side, there is an extension from the output shaft. There are two holes on the sides of that, this is where you mount the mount plate to. Take a look at the mount and you should get an idea. Be careful with the spinning pattern piece (name?), as if you’re not careful you can scrape the pattern right off. On an unrelated note, anyone got an extra encoder plate?
But making your own is simple, making one took me a few hours, but only because I didn’t have a small enough drill bit (1/16 I think) to drill the holes for the encoder screws. I ended up swapping the bolts out for slightly larger ones and putting a bolt on the other side.
It’s a hack, but that’s the way we work on 1244:D.
If AndyMark doesnt have the mounting kit you need for what you are using,
you need to fabricate your own which isn’t trivial without the right tooling and expertise.
What transmission are you using? Even with the supershifters, we had to make modifications as we had some issues with a couple of them on our current practice bot.
I think Beach Bots uses surgical tubing that is zip tied to the output shaft and encoder shaft. That way if it isn’t lined up perfectly, the encoder doesn’t get ruined.
OK, I know those adapter plates were only $3, but they cause at least $50 of grief each.
First the plate hits the motor so you need to shave it, then the two holes that mount the encoder itself are just a bit off, so you end up using a LARGE amount of force to mount a fragile optical encoder circuit. Basically none of the critical dimensions are up to par.
JMHO
Based on my FTC experiences, the wires for the encoder (on the cable) are also extremely fragile. So mount and protect them well.
How do you terminate the wires coming from the encoder? They are unterminated in the kit. Is there some sort of PWM female connector kit that is available?
Also, where can we get the spec sheet for the encoder, I couldn’t find it on the competition manual.
So, I get “what” it is, so how do I use it? It’s got two channels of output which allow you to tell if you are going clockwise or counterclockwise by comparing the outputs. Can you do this on the cRIO or do you need something else to do the processing? Do you have to make your own splitter cable for this?
While not the same type of encoder that is mentioned here, this method is AWESOME. I’ve seen them (Well, they technically use POTS) be literally 30 degrees out of alignment, I’m not talking parallel shafts that weren’t concentric, I mean shafts pointing different directions. They still worked.