AiStarter User Guide 6AI-Starter Demo
IssueV1.0.3(2018-09-01) AiStarter User Guide Copyright © Yuejiang Technology Co., Ltd
24
6.3.1 Description
This demo realizes white balance calibration.
6.3.2 Procedure
Step 1 Put AI-Starter on a piece of A4 paper.
Step 2 Put down the key start|stop to calibrate white balance.
6.3.3 Code Description
1) Initialize AI-Starter.
Program 6.8 Initialize AI-Starter
AIStarter_SmartBotInit();
2) Calibrate white balance.
Program 6.9 Calibrate white balance
AIStarter_SmartBotSetColorWB(COLORSENOR1);
AIStarter_SmartBotSetColorWB(COLORSENOR2);
6.4 Color Recogition and Line Tracking Demo
6.4.1 Description
This demo realizes the function that combines color recognition with line tracking.
6.4.2 Procedure
Step 1 Press down the key start|stop, AI-Starter starts tracking line after buzzer beeps one
time.
Step 2 In tracking line process, when detecting black line, AI-Starter stops moving, and
begins to detect color.
Step 3 When the recognized color is red, AI-Starter stops moving for 3s, and the buzzer
beeps three times.
Step 4 When the recognized color is red, AI-Starter stops moving for 3s, and the buzzer
makes a long call for 3s.
Step 5 AI-Starter goes ahead after finishing the above steps
Step 6 Press down the key start|stop once agian, AI-Starter stops tracking line after the
buzzer beeps one time.
6.4.3 Code Description
1) Initialize AI-Starter.
Program 6.10 Initialize AI-Starter