Hello I have the same problem and i builded the program that you shown and it works, but the question is: How i can control the time, i need the same program but the output is must be controlled by the time, for example 2 seconds ON and 1 second OFF. How i can to do this?
Thanks for helping!