??? 02/27/05 22:49 Read: times |
#88594 - But...what if ? Responding to: ???'s previous message |
But what if the encoder is sitting on the the edge of the optical bar one of the phases is sitting there toggling back and forth at some cadence that is caused by any of:
- Machine vibration - Electrical noise - Wobble of nearby black hole Now consider that this toggling can happen at rates of several megahertz ( I have seen it so do not say it cannot happen). This means that your slower timer interrupt that comes in and samples asynchronously may sample when the phase signal is low or high. Even worse it could be sampling when the phase signal is just now transitioning. At any rate you could be seeing it showing sometimes low and sometimes high. You can never be sure and certainly the phase signal may have transitioned an uneven number of times when your sample routine may be thinking that this signal is up-down-up from timer to timer interrupt. You will realize a net loss or net gain in your accumulator that does not match what the encoder has actually done!! I'm not convinced that your "tried and true" solution is really any better than one that tries to operate off the edges of the signal. Michael Karas |
Topic | Author | Date |
Digital position encoder | 01/01/70 00:00 | |
Dont do this. | 01/01/70 00:00 | |
Signals are not connected directly | 01/01/70 00:00 | |
Is assembly ok? | 01/01/70 00:00 | |
For Mehdi | 01/01/70 00:00 | |
its easy in software | 01/01/70 00:00 | |
but | 01/01/70 00:00 | |
same resolution | 01/01/70 00:00 | |
But...what if ? | 01/01/70 00:00 | |
So what is the solution? | 01/01/70 00:00 | |
absolutely no problem | 01/01/70 00:00 | |
Thank you | 01/01/70 00:00 | |
PLEASE not again | 01/01/70 00:00 | |
Sorry | 01/01/70 00:00 | |
list.hw.cz | 01/01/70 00:00 | |
thank you | 01/01/70 00:00 | |
Re: PLEASE not again | 01/01/70 00:00 | |
Re frequency | 01/01/70 00:00 | |
So what frequency do we sample at? | 01/01/70 00:00 | |
I try to explain Peter's idea again | 01/01/70 00:00 | |
We know it ! | 01/01/70 00:00 | |
Nothing ??? | 01/01/70 00:00 | |
it takes time | 01/01/70 00:00 | |
Code doesn't function | 01/01/70 00:00 | |
reverse direction ! | 01/01/70 00:00 | |
This is not a problem | 01/01/70 00:00 | |
incorrect operation? | 01/01/70 00:00 | |
right connection ? | 01/01/70 00:00 | |
I dunno | 01/01/70 00:00 | |
Now... | 01/01/70 00:00 | |
check the sample condition ! | 01/01/70 00:00 | |
clarify | 01/01/70 00:00 | |
@Erik | 01/01/70 00:00 | |
@Peter | 01/01/70 00:00 | |
Grey code | 01/01/70 00:00 | |
Grey code more | 01/01/70 00:00 | |
Grey INCREMENTAL ? | 01/01/70 00:00 | |
I guess 98 | 01/01/70 00:00 | |
Gray code | 01/01/70 00:00 | |
Not a gray code | 01/01/70 00:00 | |
Grey | 01/01/70 00:00 | |
Yes of course its Grey code | 01/01/70 00:00 | |
Absolute Vs Incremental | 01/01/70 00:00 | |
So now... | 01/01/70 00:00 | |
Yes it can but only... | 01/01/70 00:00 | |
Peter is right! | 01/01/70 00:00 | |
Lover not a fighter :-) | 01/01/70 00:00 | |
Lover of software | 01/01/70 00:00 | |
steps lost or not | 01/01/70 00:00 | |
Determining direction | 01/01/70 00:00 | |
Its not Grey, its Gray !![]() | 01/01/70 00:00 |