 Hello everyone! Welcome back to our channel. I hope you all are safe and sound. In one of our previous videos, we showed you how to make a gesture-controlled mobile robot with Ibai using Pictoblock's machine learning extension. Click on the card above to find its link. In this video, we are going to show you how to control an Arduino Uno robot with 10 gestures using Pictoblock's machine learning extension. The robot should move forward if we keep our palms straight. It should turn right if we tilt our hand right. It should turn left if we tilt our hand left and the robot should stop if we close our fist. Pre-requisites are a two-wheel drive or four-wheel drive Arduino robot. Click on the card above to make the project, a laptop or a computer with camera, latest version of Pictoblock's and a good internet connection. Let's begin by training the models. Visit the Teachable Machines website. Click the Get Started button. A new page will open up. Click on the image project tile. Let's begin by adding the first class. As we will be adding our sample images using webcam, click on the webcam button to start the camera. We'll first make the class for the robot to move forward. Thus keep our palm open and record the images. Similarly, we'll be creating the other three classes too. That is, write and stop. Your training data is complete. It will look something like this at the end. Now that we have included the sample images, we need to train the model accordingly. Thus click the train model button and wait for the model to get trained. You can have a look or test the train models. Whether the model is perfect, let's export the model. Click on the export model button. A pop-up will open. Click the upload my model button. A shareable link will appear. Copy it. Open Pictoblock's. We will first add the machine learning extension. To work with the all new AI and ML extension, you need to keep two things in mind. First, that you must sign in or log in into Pictoblock's from here. Second, you must have a good internet connection. Click on the board button and select Arduino. Before working with Arduino, let's upload the firmware to it. Connect your Arduino Uno to your computer using a USB cable. Select the appropriate serial port. Now click on the upload firmware button. Your firmware will be uploaded successfully. Disconnect Arduino from the computer. Now you need to connect Arduino with Pictoblock via Bluetooth. Thus click on connect button and choose Bluetooth ports. Select the appropriate Bluetooth port from the list. Now we need to add the machine learning extension. Click on the add extension button. Choose the machine learning extension. Now we need to load our model into Pictoblock's. Thus click on load model. A dialog box will appear. Paste the copied link into the space given and click on load model. Wait for a little while till the models get loaded. You may now see that the machine learning blocks are loaded. Let's first set up the stage. Drag and drop the when flag clicked hard block from the events palette to execute the program when the green flag is clicked. As we need to recognize the hen gestures from the camera feed, place the turn on video on stage with 0% transparency block from the machine learning palette. Next, snap connect motor block from the actuator palette. Choose one from the first drop-down, 6, 5 and 3 from the second, third and fourth drop-down respectively. Duplicate this block and choose 2, 9, 10 and 11 from the first, second, third and fourth drop-downs respectively. Place a forever block to make the code run continuously. Next, we will recognize the gestures from the stage and perform actions accordingly. Thus, let's make a few custom function blocks. Go to my blocks palette. Click on make a block button. First, we will make the function to make the robot move forward. Thus, right go straight into the name and click on OK. You'll see a hard block onto the scripting area. Place the run motor one block from the actuator's palette. Duplicate the above block and place it below and choose 2 from the first drop-down. Similarly, we will make the custom blocks to turn left, turn right and break one by one. Duplicate the two motor blocks and place them below the turn left and turn right block. Let's make a few changes into these blocks. Into the turn left block, select reverse from the second drop-down of the first block. Into the turn right block, select reverse from the second drop-down of the second block. Into the break block, drag and drop the free motor block from the actuator's palette and choose 2 from the second block. Now, let's move on to the main script. Place an effects block from the controls palette. Drag and drop the is identified class from web camera is forward block from the machine learning palette and choose stage from the drop-down. This will let us recognize the forward class from the trained model. Place the go straight block into the if arm. Duplicate the if block and place it into the else arm. Select lift from the if block and replace go straight block with the turn left block. Repeat the same process for the right and stop. The script is now complete, green flag to run the script. Don't forget to share your creations and queries with us in our PixelBlocks community on Facebook. Also, if you like this video, give it a thumbs up and subscribe to STEMpedia and follow us on Facebook, Instagram and Twitter. Bye-bye, stay safe.