I'm trying to use millis() in this setup and have an issue.. Here is the info:
The conditions: (one pedal)
Press pedal once activates the ARM relay.
If pedal is not pressed in 9 secs drop ARM relay.
If pedal is pressed within 9 secs engage the Expose Relay and hold the ARM relay until pedal is released.
If during the 9 secs and the pedal is tap, drop the ARM relay and do not engage the Expose relay.
How long is a tap, prob a sec or so..
I have it all working until the tap.
If I tap quick, the ARM relay which is on and it drops without engaging the Expose relay.
If a bit longer, the Expose pops on and along with the ARM relay but both drops when pedal is released.
Code is kinda a hit or miss.. I can post it if required. Not long..
A good chance is that the start of this code was probably in the wrong mind path and I stuck to it.
My code using millis() seems that I can't stop once its started. So some part plays with the relays (Engage I think)
Wayne
The conditions: (one pedal)
Press pedal once activates the ARM relay.
If pedal is not pressed in 9 secs drop ARM relay.
If pedal is pressed within 9 secs engage the Expose Relay and hold the ARM relay until pedal is released.
If during the 9 secs and the pedal is tap, drop the ARM relay and do not engage the Expose relay.
How long is a tap, prob a sec or so..
I have it all working until the tap.
If I tap quick, the ARM relay which is on and it drops without engaging the Expose relay.
If a bit longer, the Expose pops on and along with the ARM relay but both drops when pedal is released.
Code is kinda a hit or miss.. I can post it if required. Not long..
A good chance is that the start of this code was probably in the wrong mind path and I stuck to it.
My code using millis() seems that I can't stop once its started. So some part plays with the relays (Engage I think)
Wayne