В момента ресурсът е наличен само на английски

How We Start the SPIKE Software, Connect to the Hub, and Upload Programs Pro Preview

Before we can run our Python programs on the robot, we need to start the SPIKE software, create a Python project, and connect the Hub to the computer. In this tutorial, you will learn how to do all of these steps using the LEGO SPIKE software.

Необходимо е да се абонирате за FLLCasts.com, за да достъпите това видео

Абонирай се

  • #2580
  • 27 Jan 2026

Starting the SPIKE software and creating a Python project

To begin programming the robot, you first need to open the LEGO SPIKE software and create a new Python project.

  1. Open the LEGO SPIKE application on your computer.
  2. Choose the set you'll be using (SPIKE PRIME).
  3. Click on New Project.
  4. Select Python as the programming language.
  5. Write a name for your project.
  6. Click on CREATE.
  7. A new Python project will open, showing the coding area where you can write your program.
  8. You are now ready to connect the robot and run Python code.

Connecting to the Hub

To upload a program to the robot, the SPIKE Hub must be turned on and connected to the computer.

You can connect the Hub using a USB cable or via Bluetooth. For the most reliable connection, especially when starting, we recommend using a USB cable.

  1. Turn on the SPIKE Hub by pressing the button in the center.
  2. Connect the Hub to the computer using a USB cable (or make sure Bluetooth is enabled if using a wireless connection).
  3. In the SPIKE software, look at the top of the window and find the Connect button.
  4. Click Connect and select the color of your Hub's power button.
  5. Once connected, the Hub icon will appear, showing that the robot is ready.
  6. Wait for your Hub's name to appear and select it.
  7. Write a Python program in your project.
  8. Click the Play / Run button to upload the program to the Hub.
  9. The program will be transferred to the robot and start running.

If the program does not start immediately, make sure the Hub is connected and that there are no errors in your code.

Renaming the Hub

Renaming the Hub is useful when working with multiple robots, as it makes it easier to identify the correct one in the SPIKE software.

  1. Make sure the Hub is turned on and connected to the SPIKE software.
  2. Open the Hub settings by clicking on the Hub "Connect" icon.
  3. Find the option to Rename the Hub.
  4. Enter a new name for the Hub (for example, your team name or robot name).
  5. Confirm the change.
  6. The new name will now appear in the SPIKE software.

You now know how to start the SPIKE software, create a Python project, connect the Hub, upload programs, and rename the Hub. With these steps completed, you are ready to begin programming and testing your robot.