Hi folks thanks for the replys
What I am trying to do is use a high input (3.3v) to control a fan to cool a radio heat sink. I want the fan to run for about 2 min. after the input goes low.
But with the sleep time I have in the code right now, if the input goes high during this sleep time period I want it, basically to reset the time period the output is high. I hope I explained that properly.
I realize I am probably not using the time function properly but I could not find any examples on the web.
I have seen a reply here that suggest using interrupts, I have been exploring that too.
I know I am making mistakes here but if nothing else I am learning, all be it, slowly.
I hope you can steer me in the right direction, and again thanks for you help so far.
Hi again Guys
I should have mentioned that I set the internal pull down resistor so the Input(4) would not be floating. Was this wrong?
What I am trying to do is use a high input (3.3v) to control a fan to cool a radio heat sink. I want the fan to run for about 2 min. after the input goes low.
But with the sleep time I have in the code right now, if the input goes high during this sleep time period I want it, basically to reset the time period the output is high. I hope I explained that properly.
I realize I am probably not using the time function properly but I could not find any examples on the web.
I have seen a reply here that suggest using interrupts, I have been exploring that too.
I know I am making mistakes here but if nothing else I am learning, all be it, slowly.
I hope you can steer me in the right direction, and again thanks for you help so far.
Hi again Guys
I should have mentioned that I set the internal pull down resistor so the Input(4) would not be floating. Was this wrong?