the first fundamental thing is to understand if the robot is connected before sending the program
in fact, at the top right we can see if the robot is connected, if this is not the case, just click the "connect" button to make the robot connect
Wheels control (differential drive)
with these commands we can manage the movements of our robot in various directions.
Forward = the robot moves forward (1 is about 50cm)
backward = the robot goes backwards (1 is about 50cm)
left = the robot turns left (we enter in the blue block how many degrees it must turn e.g. 90)
right = the robot turns right (we enter in the blue block how many degrees it must turn e.g. 90)
wait = the robot waits for seconds (1 corresponds to one second)
setSpeed = it is used to move the robot by indicating LX or the length to travel in cm, AZ or the travel angle, TM is the time to make the robot move forward
Face emotion
here we can select the state of the robot’s face by selecting the options that can be seen in the photo:
Blink eye
speech = the robot moves its mouth as if it were talking
stop speech = stops speech animation
here we can modify the robot’s facial emotions by selecting the following emotions:
normal
happy
sad
sings = the robot moves its mouth as if it were singing
surprise
angry
Head pan-tilt control
with these commands we can adjust the servos of our robot's neck in degrees.
pan = neck movement of the servo from right to left (Ban limit -40 0 +40 degrees)
tilt = neck movement up and down (Tilt limit -20 0 +20 degrees)
with this command we can set the position of the robot head in the various directions that you can select in the block:
front = frontal position
up = head pointing upwards
down = head pointing downwards
left = head facing left
right = head facing right
Arms shoulder-pitch control
with these commands with these blocks we can move the two servants of Smarrtino's arms using the ranks.
important is the use of the sign that tells the servant whether to move forward or backward
if we select "+" the robot's arms will move backwards, but if we select "-" then the arms will move forward.
then subsequently we can enter the ranks in the blue box that we want the robot's arms to do
arm limits = Front limit (+) 0-50 degrees
Limit behind (-) 0-80 degrees
Speech synthesis
with this command we have the possibility to make our robot speak by entering the text we want it to say in the first box, and select the language, entering only the 2 letters in the last box
RGB camera
with these commands we can manage the “vision” part of our robot,
GetImage() = we can get the image our robot sees
Face_Detection() = analyzes and recognizes people's faces.
with these commands we can manage the use and scanning of TAGs.
tag_trigger() =
tag_id() = returns the ID of the tag that is read
tag_distance() = indicates the distance of the tag from the robot
tag_angle() = indicates the reading angle of the tag
tag_clean() = cleans the "tagID" reading so that the tag variable is free for any future readings
Controls
these are control commands where we can use the if operator and the while loop
if
do = this command allows us to insert a condition to the action to be performed, in fact after the IF we can insert our condition and next to DO we can place the action to be performed
repeat while
do = here, however, we can implement the while loop by always placing the condition for the loop to continue and below it next to DO the action to be performed
repeat |1| times
do = this block allows us to perform an action search a few times as many as selected, in fact in the block where the number is located we can enter how many times to perform this action