
AiStarter User Guide
6AI-Starter Demo
IssueV1.0.3
(
2018-09-01
)
AiStarter User Guide
Copyright © Yuejiang Technology Co., Ltd
26
2)
Magician Detects AI-Starter moves to the carring position by Pixy.
3)
Magician starts to grab cubes to AI-Starter.
4)
After one minute, AI-Starter finishes carrying, and then starts line tracking
function.
6.5.2
Procedure
AI-Starter
Step 1
Press down the key
start|stop
, AI-Starter starts tracking line after the buzzer beeps
one time.
Step 2
In tracking line process, when detects black stoping 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 green, AI-Starter stops moving for 1 minute, and the
buzzer beeps one time.
Step 5
AI-Starter keeps tracking line.
Step 6
Press down the key
start|stop
once agian, AI-Starter stops tracking line after the
buzzer beeps one time.
Magician
Step 1
Open Magician file in the Magician Coorperation file folder to upload Magician
firmware to Arduino expansion board.
Step 2
When detecting that AI-Starter moves to the carrying position, Magician begins to
grab cubes to AI-Starter.
Step 3
Ai-Starter keeps tracking line.
6.5.3
Code Description
AI-Starter
1)
Initialize AI-Starter.
Program 6.13 Initialize AI-Starter
AIStarter_SmartBotInit();
2)
Detect color.
Program 6.14 Detect color
if(AIStarter_SmartBotGetColorSenor(COLORSENOR1,RCOLOR)
AIStarter_SmartBotGetColorSenor(COLORSENOR1,GCOLOR) > 30 &&