I am facing a problem to control my 360 degree servo motor using arduino by "if statement" and the input will be potentiometer.
For and example, "if the analogRead<200" i want the servo motor to rotate clockwise. "If the analogRead>201" i want the servo motor to rotate anti clockwise.
P/S: i have tried a codings such as "Map". But i want to control my servo motor using "if statement".
Advance thanks for who ever will guide me.
Thank you.