#AisoyScratch01 – Hello, my name is Aisoy

#AisoyScratch01 – Hello, my name is Aisoy

What will we learn today

In today’s session we will learn to connect to the Scratchxprogramming environment and to program a dialogue with Aisoy.

Connect with ScratchX

The ScratchX programming environment is a visual environment that runs using the Chrome browser.

https://aisoy.es/pages/scratchx

The first step is to open the Chrome browser, load the environment and the Aisoy Scratch extension in order to program the Aisoy robot. To download it, access to the Internet is required. The latest version can be found at the following address:

The next step is to establish the communication between this environment and our robot. Both must be on the same network so that communication can be established.

  • Option 1. You already have your Wi-Fi configured for your Aisoy robot. Cool! You just have to make sure that your Aisoy and your computer are connected to it. To know if your Aisoy is on thenetwork you can check it using the AisoyLab app.
  • Option 2. You do not have your Wi-Fi configured. Don’t worry! You just have to connect your computer to the Wi-Fi network that Aisoy creates for these cases. Find a network called Aisoyxxxx. The password is * emotions *. And that’s it.

Now that we have our robot and our computer on the same network, we must authorize that communication. This is normal. You are allowing access so that the possibility exists to program behaviors on the robot. That requires an explicit authorization.

Don’t worry, it is very easy! Open a new browser tab and type the following:

https: //aisoy1.local: 9090

Can “Upgrade” only to “WebSocket”

You are telling the robot not to worry, that you are going to use that channel of communication with him and accept it. You will get a security message as indicating that the connection is not private. Click on * Advanced Options * and then on * Access to … * If everything went well, you will get this concise text:

We know. It’s not very attractive, but Google is like that. And,the most important thing is that we have finished with all the preparations. Let’s program our Aisoy!

My first program

How exciting! Let’s go.

Remember that in the previous step we agreed to authorize the communication. Ok, we have it. Now we need to establish it. You see that in the middle section there is a yellow icon. That means the connection is not established yet.

To establish it we will use the following command:

To execute it, double click on the block.

If everything goes well, a pop-up window will appear telling you that the connection has been established. Click on OK and you will see that the icon has changed to green. Now we are ready to give instructions to our Aisoy.

Today’s goal is to program our first dialogue with Aisoy. To do this, we will need to tell Aisoy what we want him to say. This is done with the command:

First, we put the program start block. Next, we add the say block and type Hello, my name is Aisoy. And then, we click on the green flag.

Congratulations. You have just created your first program for your Aisoy. We’ll see you in the next session.

Leave a Reply

Your email address will not be published. Required fields are marked *