Introduction to Blockly (Ages 5-8)

In this activity we are going to talk about block coding, and you’ll get to try out Blockly in the KINI App for yourself!

Follow the steps below to access and use Blockly in the KINI App:

  1. Open the KINI AppKINI App Game Tab

  2. Make sure that you have your KINI Robot and that it is connected to the internet. 

  3. The Blockly tab is in the bottom right corner, click it to start.

    Kini App Blockly Tab
  4. When Blockly is opened, two blocks will be there. These blocks let you control KINI, and choose when it will do actions.

    • The first block is “Repeat Once.” If you put an action into this block it will happen one time. The order that you put the actions in this block matters.
    • The second block is “Repeat Forever.” If you put an action into this block it will always happen, so the order does not matter. 
      The two repeat blocks in Blockly; repeat once and repeat forever.
  5. To find an action to put into these blocks, you can choose any of the tabs on the left side to see all of the options.Kini tab on the left side in the Blockly tab.Action blocks in the Kini tab.
  6. If you click an action block, it will appear beside the two Repeat Blocks. Drag the block into either Repeat Block and it will snap into place.Move forward block being dragged into the Repeat Once block.

  7. Some action blocks can change;

    • The first is numbers. To change them click on the number and a keyboard will appear. Type the new number that you want, and then click “Ok.”Circled number in an action block. Click the number to change the value.Change the value using the keyboard, and then select "Ok."
    • The second is drop down menus. To change them click on the arrow and select one of the choices.Using a drop down menu, you can change a block's effect.
    • The last type is block making menus. To change an action block click on the settings symbol in the top left corner. Then, drag blocks from the left side and connect them to the existing block on the right side. When you are done, click the settings symbol again to exit.Block making menu is being used.
  8. Add action blocks that you want to the two Repeat Blocks. For example, you can tell KINI to first move forward for 5 seconds, then stop, then move backwards 50 centimeters (shown below).A sequence in Blockly that makes Kini move forward for 5 seconds, then stop, then move backwards 50 centimeters.
  9. To make KINI do the actions, press the orange play button in the bottom left corner. To stop KINI, press the same button again, but now it will be a red stop button.Orange play button in the bottom left corner is used.Red stop button in the bottom left corner is being used.

  10. If you make a mistake and you want to delete a block, drag it to the trash can in the bottom right corner, and it will disappear.A block is being dragged into the trash can in order to delete it.

Great work everyone! You just learned how to use Blockly to control your KINI using the “Repeat Once” and “Repeat Forever” blocks! You can try out the code used in the example with your KINI, or try making your own! Good luck and have fun coding!