EasyManua.ls Logo

Keyestudio 4WD Bluetooth Multi-functional Car - Page 141

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
139
}
}
}
void Self_Control(void)//self-going, ultrasonic obstacle avoidance
{
int H;
lcd.setCursor(0, 0); //setting cursor in the first row and column
lcd.print("Self_Ctr ");
Show_V(Lpwm_val);
Set_servopulse(DuoJiao);
Show_DuoJiao(DuoJiao);
H = Ultrasonic_Ranging(1);
delay(300);
if(Ultrasonic_Ranging(1) < 35)
{
stopp();
delay(100);
back();
delay(50);
}
if(Ultrasonic_Ranging(1) < 60)
{
stopp();
delay(100);
Set_servopulse(5);

Related product manuals