Keyestudio 4WD Bluetooth Multi-functional Car Manual page 141

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

Advertisement

}
}
}
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);
keyestudio
www.keyestudio.com
139

Advertisement

Table of Contents
loading

Related Products for Keyestudio 4WD Bluetooth Multi-functional Car

Table of Contents