Code help.
hi gang, wondering if some simple code please?? have pan/tilt servo set , need x servo turn 1 degree 360 degrees. @ completion of each 1 degree turn x servo y servo turn 180 degrees?
any extremely appreciated until swing of things arduino?
cheers packman.
any extremely appreciated until swing of things arduino?
cheers packman.
something like
of course may not work should give starting point logic.
code: [select]
for (x=0; x<360; x++)
{
xservo.write(x)
for (y=0; y<180; y++)
{
yservo.write(y);
delay(1000);
}
}
of course may not work should give starting point logic.
Arduino Forum > Using Arduino > Project Guidance > Code help.
arduino
Comments
Post a Comment