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.

something like

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

Popular posts from this blog

Error: ‘for’ loop initial declarations are only allowed in C99 or C11 mode - Raspberry Pi Forums

class MPU6050 has no member named begin

missing filename after '-o'