EasyManua.ls Logo

Keyestudio 4WD Bluetooth Multi-functional Car - Page 92

Keyestudio 4WD Bluetooth Multi-functional Car
151 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
keyestudio
www.keyestudio.com
90
myservo.write(90); //making motor regression, being ready for next measurement
detection(); //measuring angle and deciding which direction it moves towards
if(directionn == 2) //supposing direction = 2(back up)
{
back();
delay(800); // back up
left() ;
delay(200); //moving slightly towards left(avoiding locked)
}
if(directionn == 6) //supposing direction = 6(turning right)
{
back();
delay(100);
right();
delay(600); // turning right
}
if(directionn == 4) //supposing direction = 4(turning left)
{
back();
delay(600);
left();
delay(600); // turning left
}
if(directionn == 8) //supposing direction = = 8(going forwards)
{
advance(); // going forwards normally

Related product manuals