Keyestudio 4WD Bluetooth Multi-functional Car Manual page 92

Hide thumbs Also See for 4WD Bluetooth Multi-functional Car:
Table of Contents

Advertisement

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);
left() ;
delay(200);
//moving slightly towards left(avoiding locked)
}
if(directionn == 6)
//supposing direction = 6(turning right)
{
back();
delay(100);
right();
delay(600);
}
if(directionn == 4)
//supposing direction = 4(turning left)
{
back();
delay(600);
left();
delay(600);
}
if(directionn == 8)
//supposing direction = = 8(going forwards)
{
advance();
// going forwards normally
keyestudio
// back up
// turning right
// turning left
www.keyestudio.com
90

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 4WD Bluetooth Multi-functional Car and is the answer not in the manual?

Related Products for Keyestudio 4WD Bluetooth Multi-functional Car

Table of Contents

Save PDF