1. Lesson 1 - Larva robot

Introduction

content picture

In this lesson you are going to make Larvy, the SPIKE larva robot. It is called that, because it moves like a larva or a caterpillar! Its program is very simple as its core consists of only 3 movement blocks in a loop. We, however, have complicated it a little so that it runs more smoothly and consistantly! You can read more about the program in its description.

But first, lets build the robot!!!

Ларви - ЛЕГО СПАЙК Прайм робот ларва

Ларви е СПАЙК Прайм робот, който се движи като ларва или гъсеница. Роботът използва голям мотор, за да се свива и разпъва! С двата средни мотора, робота завърта 4 гуми по лице и изправени, когато трябва, за да може да се движи напред!

Можете да намерите програма за робота тук: Програма за Ларви - ЛЕГО СПАЙК Прайм робот

Before you download the program, make sure you have the SPIKE programming software.

To get the software, download the appropriate installer for your Operating System from here: https://education.lego.com/en-us/downloads/spike-prime/software

From there just start it and it will install all you need.

To open the program we have given you below, after you download it, just double click it and it should open with the SPIKE Prime software you just installed. Another option is, after you open the software, go to File→Open File and choose the downloaded file.

Програма за Ларви - ЛЕГО СПАЙК Прайм робот

Тази програма кара Ларви - ЛЕГО СПАЙК Прайм робот ларва да се движи безкрайно напред! Движението на този робот е много интересно, тъй като работи подобно на гъсеница или ларва! Програмата работи като повтаря 3 движения всеки цикъл:

  1. Предният мотор се завърта на 90 градуса, вдигайки или сваляйки колелата си
  2. Големият мотор се завърта на 90 градуса, свивайки или разпъвайки робота
  3. Задният мотор се завърта на 90 градуса. вдигайки или сваляйки колелата си

Може би забелязвате, че всяка команда прави две неща или същото, но в две посоки. Това се случва с променлива, която е или 1, или -1 и това дава посоката, в която да се движат моторите. Тази променлива също се използва за да се определи кой мотор трябва да използва пълна мощност и кой не трябва, за да не се счупи робота сам!

How to connect your computer to your SPIKE Prime hub?

After you download the SPIKE programming software, to load a program to your robot, you need to connect to your hub! Now lets learn how you can do that! 

There are two options to connect your computer to your hub, through cable or bluetooth.

To connect through cable, all you need to do is plug in the cable to your computer and hub, and they should be connected! This is also the way you charge the hub's battery.

Usually it is preferred to connect through bluetooth, because you can move your robot basically anywhere in a room! That means if you want to see the sensor readings or what a variable's value is, while the robot is moving, it is way easier to connect through bluetooth. In the video we have shown you how to do it. The main things you need to do are:

  1. Turn on the hub, that is done by pressing and holding the middle button for 1-2 seconds
  2. Turn on bluetooth, that is done by just pressing the bluetooth button
  3. Find your brick and connect to it, that is done in the app and is shown in the video how to get there