0% found this document useful (0 votes)
36 views

Minicar Command Instruction Table

The document describes various commands and modes for controlling a toy car including: 1) Obstacle avoidance mode checks for obstacles and returns true if detected. 2) Line tracking mode checks sensors for black lines and returns true if detected. 3) Sport mode sets car movement direction and speed using parameters for direction and speed value. 4) RGB light mode sets color of RGB light using R, G, B values and parameters for light, duration and mode. 5) Buzzer mode sets buzzer tone and duration using parameters for tone and duration. 6) Mode selection sets the car mode using a parameter for the desired mode. 7) Clear mode turns off car functions using a parameter

Uploaded by

Dani Pilmat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
36 views

Minicar Command Instruction Table

The document describes various commands and modes for controlling a toy car including: 1) Obstacle avoidance mode checks for obstacles and returns true if detected. 2) Line tracking mode checks sensors for black lines and returns true if detected. 3) Sport mode sets car movement direction and speed using parameters for direction and speed value. 4) RGB light mode sets color of RGB light using R, G, B values and parameters for light, duration and mode. 5) Buzzer mode sets buzzer tone and duration using parameters for tone and duration. 6) Mode selection sets the car mode using a parameter for the desired mode. 7) Clear mode turns off car functions using a parameter

Uploaded by

Dani Pilmat
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

Obstacle Avoidance Mode

Command {OA[?]}
Function Check if an obstacle is detected
Returns {false} :No obstacles detected
{true} :An obstacle was detected
Parameter Description ?:Inquire

Line Tracking Mode


Command {LT[parameter 1][?]}
Function Check if the tracking sensor detects black lines
Returns {false} :No black lines detected
{true} :Black line detected
Parameter Description Parameter 1
0 :Left tracking sensor
1 :Right tracking sensor
Parameter ?:Inquire

Sport Mode
Command {TURN[parameter 1][ parameter 2]}
Function Set the car movement direction and speed
Returns {ok}
Parameter Description Parameter 1
0 :Stop
1 :Go forward
2 :Go backward
3 :Turn left
4 :Turn right
Parameter 2
Speed value range :0~255
If the value is set to 300, the speed value is not changed.
Command {TURNS[Parameter 1][ Parameter 2][ Parameter 3]}
Function Set the moving direction and speed of the car
Returns no return
Parameter Description Parameter 1
0 :Stop
1 :Go forward
2 :Go backward
3 :Turn left
4 :Turn right
Parameter 2
Speed value range :0~255
If the value is set to 300, the speed value is not changed.
Parameter 3
0 :Off
1 :White
2 :Purple A020F0

Command {MOVE[Parameter 1][ Parameter 2][ Parameter 3]}


Function Set the motor movement direction and speed
Returns {ok}
Parameter Description Parameter 1
0 :All motors
1 :Left motor
2 :Right motor
Parameter 2
0 :Stop
1 :Turn forward
2 :Turn reverse
3 :No execution
Parameter 3
Speed value range :0~255
If the value is set to 300, the speed value is not changed.

Command {MOVES[Parameter 1][ Parameter 2][ Parameter 3] [Parameter 4]}


Function Set the moving direction and speed of the motor
Returns {ok}
Parameter Description Parameter 1 left motor direction
Parameter 3 right motor direction
0 :Stop
1 :Turn forward
2 :Turn reverse
3 :No execution
Parameter 2 left motor speed
Parameter 4 right motor speed
Speed value range :0~255
If the value is set to 300, the speed value is not changed.

RGB Light Mode


Command {RGB[R][G][B][N][T][M]}
Function Set the color of the RGB light
Returns {ok}
Parameter Description Parameter R,G,B values range from 0 to 255
Parameter N
0 :All lights
1 :Left light
2 :Right light
Parameter T duration(seconds) 1~255, 0 :always on
Parameter M
0 :Always on
1 :Flashing

Command {RGBS[Parameter 1][M1][ Parameter 2][M2]}


Function Set the color of the left and right lights at the same time
Returns {ok}
Parameter Description Parameter 1 RGB values of left light
Parameter 2 RGB values of right light
For example, FF0000 means red, 00FF00 means green, 0000FF means
blue
#000000 means lights off and black
Parameter M1 left light
Parameter M2 right light
0 :Always on
1 :Flashing

Command {RGBB[Parameter 1]}


Function Set the brightness of RGB light
Returns {ok}
Parameter Description Parameter 1 brightness value range :0~255,set to 0 to turn off the
light

Buzzer Mode
Command {BEEP[Parameter 1]}
Function Set buzzer tone
Returns {ok}
Parameter Description Parameter 1 tonal range :1~255,set to 0 to turn off the buzzer

Command {BEEPS[Parameter 1][ Parameter 2]}


Function Set the tone and duration of buzzer
Returns {ok}
Parameter Description Parameter 1 tonal range :1~255
Parameter 2 duration(milliseconds) :0~65535, 0 :no execution

Mode Selection
Command {KEY[Parameter 1]}
Function Set car mode
Returns {ok}
Parameter Description Parameter 1
0 :Standby Mode
1 :Line-tracking Mode
2 :Obstacle-avoidance Mode
3 :Auto-follow Mode
4 :Explorer Mode

Clear Mode
Command {CLEAR[Parameter 1]}
Function Turn off the car function
Returns {ok}
Parameter Description Parameter 1
0 :Clear all functions
1 :Turn off RGB lights
2 :Clear function mode and stop the car
3 :Turn off the buzzer

You might also like