Hello I have a quick question about the QEI module. I want to use it but I cannot find it in the PIC18F2580 datasheet(the pic i'm using).
Now is it possible that this PIC does not have QEI module or can it have another name? Please excuse my beginner question. Thanks.
If you do not need direction information you could XOR the A & B signals from the endoder then feed the output of the first XOR gate to a second XOR gate. The output of the first gate goes directly to one input of the second gate and also to the second input of the second gate via resistor. There is also a small capacitor to ground from the second input to produce a small delay. The result is a short pulse on every transition of either A or B encoder input.
This is the method I use on the table feed on my milling machine. (The serial port connections are used to set the PID gain values.)
Les.
If you have the encoder and it has an index pulse, And you only need RPM, not position or direction, then the marker could be used in simple tachometer mode with a CCP capture module etc.
Max.
If you have the encoder and it has an index pulse, And you only need RPM, not position or direction, then the marker could be used in simple tachometer mode with a CCP capture module etc.
Max.
I have taken a few days off that project to read about timers, CCP and other features of the ucontroller as I was not very familiar with them. Among those I read about the QEI module which seemt like a very easy way to get the speed and direction of rotation. So I just wanted to give it a try but there was no such module on my PIC. I will get back on that project tomorrow. Will let you know in the other thread.