Reloadron, I didn't draw the shematic on PCAD or else, I only did it on breadboard. I will draw and send tomorrow.
Vizier87, really it is a good idea, I should try it, thank you. could you please give me some information about your circuit? what kind of ir led, photodiode,op amp, timer...ect...