# Programming Control Mode ## Case 1: Software Programming ### Xiao Q Robot Button Controls Character Movement ![](img/ProgrammingControlMode01.gif) ### How to use the Xiao Q Robot buttons to control the movement of a software character? 1. Prearation | ![](img/ProgrammingControlMode02.png) | ![](img/ProgrammingControlMode03.png) | | :---: | :---: | | ICQbot Xiao Q Robot × 1 | Android Tablet ×1 / iOS Tablet ×1 | 2. Steps: | ![](img/ProgrammingControlMode04.gif) | ![](img/ProgrammingControlMode05.gif) | | --- | --- | | 1、Press and hold the power button for 3s to power on the Xiao Q Robot. Open the APP and connect to Bluetooth. After Bluetooth is connected, the Xiao Q Robot will emit a “beep” sound. | 2、In the software, select the moon background and the Xiao Ai character, then start programming. Use the Xiao Q Robot button 1 to move the character one step to the left, and button 2 to move the character one step to the right. | | ![](img/ProgrammingControlMode06.gif) | | | 3、Start the program and observe the result (Xiao Q Robot button 1 controls Xiao Ai to move left, and button 2 controls Xiao Ai to move right). | | ## Case 2: Hardware-Software Interaction ### Tilt Sensor Controls Xiao Ai Character Skiing ![](img/ProgrammingControlMode07.gif) ### How to use the tilt sensor to control the movement of a software character? Steps 1. Prearation | ![](img/ProgrammingControlMode08.png) | ![](img/ProgrammingControlMode09.png) | ![](img/ProgrammingControlMode10.png) | | :---: | :---: | --- | | ICQbot Xiao Q Robot × 1 | Tilt Sensor×1 | Android Tablet ×1 / iOS Tablet ×1 | 2. Steps Display | ![](img/ProgrammingControlMode11.gif) | ![](img/ProgrammingControlMode12.gif) | | --- | --- | | 1、Press and hold the power button for 3s to power on the Xiao Q Robot. Open the APP and connect to Bluetooth. | 2、 Connect the tilt sensor to port 1 (input port). | | ![](img/ProgrammingControlMode13.gif) | ![](img/ProgrammingControlMode14.gif) | | 3、In the software, select the character and background, then program the character: when the tilt sensor tilts upward, the character moves up; when tilted downward, the character moves down; when tilted to the left, the character moves left; and when tilted to the right, the character moves right. | 4、Effect display. | ## Case 3: Hardware-Software Interaction ### Programming Virtual Buttons to Control Car Movement ![](img/ProgrammingControlMode15.gif) ### How to create a virtual keyboard to control car movement? Steps 1. Prearation | ![](img/ProgrammingControlMode16.png) | ![](img/ProgrammingControlMode17.png) | ![](img/ProgrammingControlMode18.png) | | :---: | :---: | :---: | | ICQbot Xiao Q Robot × 1 | Motors × 2 | Android Tablet ×1 / iOS Tablet ×1 | 1. Structure Setup | ![](img/ProgrammingControlMode19.png) | ![](img/ProgrammingControlMode20.png) | ![](img/ProgrammingControlMode21.png) | ![](img/ProgrammingControlMode22.png) | | :---: | :---: | :---: | :---: | | Step 1 | Step 2 | Step 3 | Step 4 | | ![](img/ProgrammingControlMode23.png) | ![](img/ProgrammingControlMode24.png) | ![](img/ProgrammingControlMode25.png) | ![](img/ProgrammingControlMode26.png) | | Step 5 | Step 6 | Step 7 | Step 8 | | ![](img/ProgrammingControlMode27.png) | ![](img/ProgrammingControlMode28.png) | ![](img/ProgrammingControlMode29.png) | ![](img/ProgrammingControlMode30.png) | | Step 9 | Step 10 | Step 11 | Step 12 | | ![](img/ProgrammingControlMode31.png) | ![](img/ProgrammingControlMode32.png) | ![](img/ProgrammingControlMode33.png) | ![](img/ProgrammingControlMode34.png) | | Step 13 | Step 14 | Step 15 | Step 16 | | ![](img/ProgrammingControlMode35.png) | ![](img/ProgrammingControlMode36.png) | | | | Step 17 | Step 18 | | | 2. Steps Display | ![](img/ProgrammingControlMode37.gif) | ![](img/ProgrammingControlMode38.gif) | | --- | --- | | 1、Press and hold the power button for 3s to power on the Xiao Q Robot. Open the APP and connect to Bluetooth. | 2、Connect the motor modules to ports 1 and 2 (output ports). | | ![](img/ProgrammingControlMode39.gif) | ![](img/ProgrammingControlMode40.gif) | | 3、In the software, add four directional arrows and a stop button. | 4、Program the up and down buttons: Up button (Press → motor power 5 → both motors move forward); Down button (Press → motor power 5 → both motors move backward). Then program the left and right buttons and the stop button: Left button (Press → motor power 5 → both motors move left → wait 2 seconds → move forward); Right button (Press → motor power 5 → both motors move right → wait 2 seconds → move forward); Stop button (Press → both motors stop). | | ![](img/ProgrammingControlMode41.gif) | | | 5、Effect display. | | ## Case 4: Voice Programming Interaction ### Voice Programming to Control Character Movement ![](img/ProgrammingControlMode42.gif) ### How to use voice to control the movement of a software character in all directions? Steps 1. Prearation | ![](img/ProgrammingControlMode43.png) | ![](imgProgrammingControlMode44.png) | ![](img/ProgrammingControlMode45.png) | | :---: | :---: | :---: | | ICQbot Xiao Q Robot × 1 | Voice Recognition Sensor ×1 | Android Tablet ×1 / iOS Tablet ×1 | 1. Steps Display | ![](img/ProgrammingControlMode46.gif) | ![](img/ProgrammingControlMode47.gif) | | --- | --- | | 1、Press and hold the power button for 3s to power on the Xiao Q Robot. Open the APP and connect to Bluetooth. | 2、Connect the voice recognition sensor to port 1 or port 2 (input port). | | ![](img/ProgrammingControlMode48.gif) | ![](img/ProgrammingControlMode49.gif) | | 3、In the software, select the grassland background and the rabbit character, then program the rabbit to move according to the voice commands. Voice command “Up” will make the rabbit move up, “Down” will move it down, “Left” will make it move left, and “Right” will make it move right. The voice command “Go home” will return the character to the starting position.
More voice command words can be found in the [Voice Command List](https://www.yuque.com/g/crystal-vzc6k/cfl3ix/ivnlxdhe5afoyn5d/collaborator/join?token=FN2u9SRKqEq9sjFY&source=doc_collaborator#%20《Voice%20Programming%20Mode》). | 4、Effect display. | ## Case 5: Voice Self-learning Command Word Programming ### Voice Self-learning Command Words to Control Motor ![](img/ProgrammingControlMode50.gif) ### How to use voice programming to control the software character to perform tasks? Steps 1. Prearation | ![](img/ProgrammingControlMode51.png) | ![](img/ProgrammingControlMode52.png) | ![](img/ProgrammingControlMode53.png) | | :---: | :---: | :---: | | ICQbot Xiao Q Robot × 1 | Voice Recognition Sensor ×1 | Android Tablet ×1 / iOS Tablet ×1 | 1. Steps Display | ![](img/ProgrammingControlMode54.gif) | ![](img/ProgrammingControlMode55.gif) | | --- | --- | | 1、Press and hold the power button for 3s to power on the Xiao Q Robot. Open the APP and connect to Bluetooth. | 2、Connect the voice recognition sensor to the ICQbot Xiao Q Robot. | | ![](img/ProgrammingControlMode56.gif) | ![](img/ProgrammingControlMode57.gif) | | 3.、Select a background and reduce the character's size. | 4、In the software, the self-learning command words are ‘Green Car Up’, ‘Red Car Up’, and ‘Enter House’. When the first command is recognized, the character moves left two steps and disappears. When the second command is recognized, it moves right two steps and disappears. When the third command is recognized, it moves up two steps and disappears. ([Voice command words can be referred to via the link.](https://www.yuque.com/g/crystal-vzc6k/cfl3ix/ivnlxdhe5afoyn5d/collaborator/join?token=FN2u9SRKqEq9sjFY&source=doc_collaborator#%20《Voice%20Programming%20Mode》)) | | ![](img/ProgrammingControlMode58.gif) | ![](img/ProgrammingControlMode59.gif) | | 5、Record the corresponding command words. If a command word already exists, say ‘Reset Learning’ to clear the existing self-learned commands, then say ‘Start Self-learning’ to begin learning new commands. Each command word needs to be learned twice. The first command word is ‘Green Car Up’, the second is ‘Red Car Up’, and the third is ‘Enter House’. | 6、 Effect display. Say the corresponding command word to execute the program. |