What I'm trying to do is control an output to delay off when my input goes low, but I want the time to reset of my input goes high. Similar to how an RC circuit would work. But I'd like to be able to have several different time settings up to 5. Using a single push button I want to be able to cycle through the times and have an output LED that indicates the time delay I'm on. Using a single output pin. I'm not much for programmer so I could really use some help. The circuit image is just a rough draft.
Thanks
lag_god:
What I'm trying to do is control an output to delay off when my input goes lowWhat is "my input"? I don't get it from Your wiring.
, but I want the time to reset of my input goes high. Similar to how an RC circuit would work. But I'd like to be able to have several different time settings up to 5. Using a single push button...
Using push buttons... Is there any kind of controller involved? In that case, which one?
I want to be able to cycle through the times and have an output LED that indicates the time delay I'm on. Using a single output pin. I'm not much for programmer so I could really use some help.
Help? Basically nobody is writing code for You.
The circuit image is just a rough draft.
Well done posting a wiring but as You understand we assume some more circuitry is involved.
Hello,
sometimes ist is very helpful and useful to take a look into the examples provided by the IDE.
Simplest way, but really crude and not recommended:
if (digitalRead(myInput) == LOW) {
delay(myDelay);
digitalWrite(myOutput, HIGH);
}
This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.
