how to create encoder output using clock pulse of arduino

Dear All,
I want to generate encoder pulse A,B and Z from arduino. I want to use clock pulse of arduino as a input. Is it possible or not. Need Help.

If you mean that you want an Arduino to pretend that it is an encoder then, Yes, that should be perfectly possible.

...R

Thanks for your reply.
Plz guide me how I will do that.

Set output pins of your choice high/low at the time interval of your choice to create the pulse train of your choice.

Previous thread - Rotary Encoder Simulation - Programming Questions - Arduino Forum

wvmarle:
Set output pins of your choice high/low at the time interval of your choice to create the pulse train of your choice.

And also allow for the times when the device is NOT moving and you must HOLD the present high/low values until movement is detected.
Paul

As others have said, it can be done but: Why so frugal with details?

What would be the minimum and maximum frequency of the phases?

How many ticks before 'Z' occurs?

What is the relationship between Z and A or B (i.e. timing of index pulse wrt phase A or B)?

How is the speed to be adjusted?

What do you mean by "want to use clock pulse of arduino as a input"?

Which 3 pins on which Arduino?

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.