超声波避障+蓝牙遥控小车,已调试程序,基于51单片机使用超声波模块与蓝牙模块, push_val_left=23; //¶æ»úÏò×óת90¶È timer=0; while(timer<=4000); //ÑÓʱ400MSÈöæ»úתµ½ÆäλÖà 4000 StartModule(); //Æô¶¯³¬Éù²¨²â¾à Conut(); //¼ÆËã¾àÀë S2=S; push_val_left=5; //¶æ»úÏòÓÒת90¶È timer=0; while(timer<=4000); //ÑÓʱ400MSÈöæ»úתµ½ÆäλÖà StartModule(); //Æô¶¯³¬Éù²¨²â¾à Conut(); //¼ÆËã¾àÀë S4=S; push_val_left=14; //¶æ»ú¹éÖ Ð timer=0; while(timer<=4000); //ÑÓʱ400MSÈöæ»úתµ½ÆäλÖà StartModule(); //Æô¶¯³¬Éù²¨²â¾à Conut(); //¼ÆËã¾àÀë S1=S;
1