keyestudio
www.keyestudio.com
case 'L':turnL(); //Left
break;
case 'R':turnR(); //Right
break;
case 'S':stopp(); //stop
break;
}
}
}
void setup()
{
pinMode(servopin,OUTPUT); //setting motor interface as output
LCD1602_init(); //initializing 1602
M_Control_IO_config(); //motor controlling the initialization of IO
Set_Speed(Lpwm_val,Rpwm_val); //setting initialized speed
Set_servopulse(DuoJiao); //setting initialized motor angle
Sensor_IO_Config(); //initializing IO of line tracking module
irrecv.enableIRIn(); //starting receiving IR remote control signal
pinMode(inputPin, INPUT); //starting receiving IR remote control signal
pinMode(outputPin, OUTPUT); //IO of ultrasonic module
Serial.begin(9600); //initialized serial port , using Bluetooth as serial port, setting baud
lcd.setCursor(0, 0); //setting cursor at 0.0
lcd.print(" Wait Signal "); //LCD printing character string
stopp(); //stop
}