I am working on a robot that is controlled over the internet. I am using a 4 relay device made by controloverweb. On my unit I can pulse the relay for a set amount of time(1 sec, etc.), Or have the relay on until I shut it off. I am thinking I will control the motors by pulsing it for 1.5 seconds at a time. Making the robot go forward one pulse at a time etc.(so I dont crash into things). I just had an idea that I can do more with the 4 relays then control 4 things(ft,bk,lt,rt) I can control those 4 by pulsing the relays . The other functions, turn robot on/off, Turn light on/off etc. by leaving the relay on for a set time like 5 seconds or 7 maybe. I am looking for help with the code for an 08 that can see if an input pin stays high for 5 seconds, if it does, make an output pin go high.If not and the relay only stays on for the 1.5 second pulses then just do nothing. I'm not too sure about how to use variables.I am concerned that the 08 would see the 1.5 second pulses and count them then when it reaches 5 inadvertantly turn something on/off. Id like it to only make the output high if the input is on for a solid 5-7 seconds. Thanks for any help. T