Hi, i have a question regarding the control of a servo with two potentiometers, the first pot will control the servo over the full range as normal the second pot will set the point at which the first pot will be able to make the servo move. So if the second pot is positioned halfway at 2.5v input the first pot will not make the servo move until it has reached half way and so on.
This is taken from a simple servo and pot sketch
val = analogRead(potpin); // reads the value of the potentiometer (value between 0 and 1023) val = map(val, 0, 1023, 0, 179); // scale it to use it with the servo (value between 0 and 180)
So firstly would changing the map to val = map(val, 512, 1023, 0, 179); would this make the servo move only when the potentiometer is rotated past half way?
If so how could I make a second potentiometer control the first potentiometer map?