arduino generate HTL 24v

Job ID: 33039643

Budget: $30 – $250 USD

i want to simulate an incremental encoder with two channels and 90° phase shift with arduino.
the frequency is between 1hz - 2khz voltage 24v.
which hardware i need next arduino mega?
give me code.

i will pay after project is finished totally.