![]() |
Re: pic: Small CIM in wheel swerve
Quote:
|
Re: pic: Small CIM in wheel swerve
Quote:
Since there's really never a need for analogTriggers save for this one strange case, that was broken too. Thank god for the fantastic people at WPI that got it fixed so quickly. I know sanddrag said that it worked well enough at competition, I have to say the headache caused by this is greater than he may have noted, and took a lot of time out of the season. It's generally just not a good idea to do incremental sensing of anything if it is at all possible to have absolute sensing. Zeroing sensors are a must. |
Re: pic: Small CIM in wheel swerve
Quote:
We never have to manually zero sensors, there are no magic numbers in code, and we know we can replace a sensor/system at any time with no new work required. Every position system 973 has ran all the way back to 2012 has been on an incremental sensor that assumes a zero at start (plus sometimes a manual or automated routine to hardstop zero). We always mean to add the zeroing sensors, but never do as the functionality isn't needed. |
Re: pic: Small CIM in wheel swerve
Quote:
Let A be the encoder angle reading in degrees (0 to 360 clockwise) at the previous sample, and B be the encoder angle reading in degrees at the current sample. Then: D = B-A; |
Re: pic: Small CIM in wheel swerve
Quote:
Quote:
I kept it to one stage in this design, but it's likely geared too tall for most situations. It's a 5.33 to one reduction on a 3.5'' wheel. Quote:
Quote:
Quote:
|
Re: pic: Small CIM in wheel swerve
Quote:
Quote:
|
Re: pic: Small CIM in wheel swerve
Quote:
I was suggesting that you could have the software take the point where the encoder would read zero as the reference for the match. That way, you wouldn't have to worry about getting the swerves perfictly lined up before each match. I'm thinking that my explanation may still not be good enough, but let me know. |
Re: pic: Small CIM in wheel swerve
Quote:
|
Re: pic: Small CIM in wheel swerve
Quote:
For those of you discussing "drift" with incremental encoders, are you referring to an accumulation of lost counts? Does this happen when the direction of steering reverses, and is this accumulation of lost counts biased toward one direction? Would the solution to have something like a hall effect sensor for zeroing, and reset the count every time you cross it? |
Re: pic: Small CIM in wheel swerve
Quote:
With absolute encoders for steering, there are at least two common ways to deal with steering alignment: hardware mounting calibration Mount, adjust, and lock down each steering encoder so that each encoder reads zero when its associated wheel is properly aligned. With this approach, there is no need to align the wheels perfectly at the start of a match. startup zero offset During setup for each match, carefully align the wheels to their zero steering position. At startup, read and store a zero offset reading for each steering encoder, and apply that offset to the encoder reading. |
Re: pic: Small CIM in wheel swerve
Quote:
However, if you are there are two likely causes. 1) Mechanical slip. Somehow the encoder is slipping, easy to fix w/ better design. 2) Voltage brownout causing the supply voltage to the encoders to drop out. We use a regulated supply for all of our encoders for this reason. |
Re: pic: Small CIM in wheel swerve
Quote:
Adam listed two likely causes. A third, fourth, fifth, and sixth might be 3) using an encoder outside its operating range (edges per second), 4) a damaged encoder (dirty / scratched optical disk), 5) improperly assembled / mounted (optical disk alignment / concentricity), and 6) incorrect programming (resetting the counts rather than letting the FPGA accumulator run freely). |
Re: pic: Small CIM in wheel swerve
Quote:
|
Re: pic: Small CIM in wheel swerve
If you could work out the incremental encoder setup, it would free you up to put a slip ring module at the top. That trade off would solve the motor wiring issue, and not restrict you to partial rotations.
|
Re: pic: Small CIM in wheel swerve
Quote:
You begin by choosing an integer gear ratio for the encoder, because that will make things much easier. Then you mount the encoder or slip the gears so that when the full circle of the swerve is cut into slices of pie, one of the edges of a pie slice ends up facing true zero. Then you write software that takes that edge to be the zero for the match. So now, before each match you don't have to get the wheels perfectly aligned, you just have to aim it in the sector that is to one side of the zero position. It's just an idea, and maybe that was already blatantly obvious, or maybe its not useful, but I figured I would try to explain my idea so that I could at least find out if people though it was useful or not. Let me know If I need to try to explain it one more time. Quote:
(P.S. Thanks. Your post is much more constructive and helpful with the edit.) |
| All times are GMT -5. The time now is 07:46. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi