Move Robot

Random


code to move robot forward and stop

//code to move robot forward and stop
void setup() 
{
    
}
void loop()
{
    fd(80);
    
     sleep(1000);
     
   system_stop ();
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14

code to move robot backward and stop

//code to move robot back and stop 
void setup() 
{
    
}
void loop()
{
    bk(80);
    
     sleep(1000);
     
   system_stop ();
}
1
2
3
4
5
6
7
8
9
10
11
12
13

code to move robot left and stop

//code to move robot left and stop 
void setup() 
{
    
}
void loop()
{
    tl(80);
    
     sleep(1000);
     
   system_stop ();
}
1
2
3
4
5
6
7
8
9
10
11
12
13

code to move robot right and stop

//code to move robot right and stop

void setup() 
{
    
}
void loop()
{
    tr(80);
    
     sleep(1000);
     
   system_stop ();
} 
1
2
3
4
5
6
7
8
9
10
11
12
13
14

Pattern


code to move robot in circular way

//code to move robot  in circular way
void setup() 
{
    
}
void loop()
{
    fd2(30,60);    
}

1
2
3
4
5
6
7
8
9
10

code to move robot in square

//code to move robot  in  square

void setup() 
{
    
}
void loop()
{
 
  fd(80);
  sleep(1500);
   fd2(0,93);
   sleep(1000);
}

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15