my problem is that i can make servo move but it seem to be rotating in one direction. I want to make button that can turn on and off servo
CODE PLEASE: (^.*)=V (. Y .) <<<< this one for u
thank you uu very much
my problem is that i can make servo move but it seem to be rotating in one direction. I want to make button that can turn on and off servo
CODE PLEASE: (^.*)=V (. Y .) <<<< this one for u
thank you uu very much
Here what i got :
void setup()
{
pinMode(button1, INPUT);
servo1.attach(7);
digitalWrite(4, HIGH); //enable pullups to make pin high
}
void loop()
{
press1 = digitalRead(button1);
if (press1 == LOW)
{
servo1.write(160);
delay(2000);
servo1.write(20);
}
}
im a bit confuse about my code but it run ok... my servo run, but i can't seem to control it well help me out with my code please
You need to post your code, but first, you need to read the sticky thread at the top of this section.
(And you need to not post the same question more than once)
im a bit confuse about my code but it run ok.
not as posted it doesn't