I'm in a pinch.
Bottom Line Up Front: I'm not seeking advice or guidance for other solutions. Please bear with me a moment... Though I can post the requirements and know the solution too, I cant seem to crack the code to get there. The only meaningful help is providing working code. In any other case, I'd welcome opinion. With that in mind, please reply with working code.
Background: The requirement is to control a 75 amp/240VAC solid state relay (SSR) that is activated when 5v is applied from the Arduino. The desired control methodology is important for this project because the Arduino is being integrated in a complex system.
A. 10K Potentiometer (Pot) control for the SSR.
B. The Pot has to have three distinctive states of control.
-- 1st state, is OFF (i.e., 0V output) (e.g., full left turn of the knob)
-- 2nd state, equal sub-divisions or time increments that interrupt the 10 second timeline with a 0V output. Specifically, each increment of right turn of the Pot, increases the OFF period within the 10 second timeline. It is important to note that the increment of OFF time should consume part of the 10 second time line.
-- 3rd state is ON (i.e., 5V output) (e.g., full right turn of the knob).
The idea I to have a single knob that turns from the 7 O'clock to the 5 O'clock position (roughly 270 degrees of rotation) if one could imagine a clock face as a range of rotation.
When turned full left to the 7 O'clock position, there shall be a 0V output.
When turned to the 8 O'clock position a 5V output shall begin for one second, after a 9 second delay. A slight rotation to the 9 O'clock position there shall be 5V output for 2 seconds, after an 8 second delay, etc...
There are approximately 9 whole number increments between the 8 and 4 O'clock positions (excluding the 7 [OFF] and 5 [ON]). The range between 8 and 4 O'clock can be reduced to finer increments (that would offer better control) and be more desirable.
Thank you in advance for your consideration.