Here there is a schematic already suggested
http://eece.ksu.edu/~eece696/beta/digital/A/stop.htm but could it works?
What could be the exact schematic and hardware to use? And at the last is
there anything "ready-to-use" cause I have not much time to spend to build
it?
I don't think that circuit will work.
This microcontroller encoder might work