LEGO MINDSTORMS Hub

Everything you need to master MINDSTORMS Robot Inventor programming. From Python basics to advanced robotics.

Set Details

Set #51515-1

949 pieces

Ages

What's Included

  • • Intelligent Hub (6 ports)
  • • 4 Medium Angular Motors
  • • Color Sensor
  • • Distance Sensor

Capabilities

  • • 6-axis gyro/accelerometer
  • • Bluetooth 5.0
  • • 5×5 LED matrix display
  • • Rechargeable battery

📚 Step-by-Step Tutorials

BEGINNER

Hello World - First Python Program

Learn Python basics by displaying text on the LED matrix and playing sounds. Perfect introduction to programming.

from mindstorms import MSHub
hub = MSHub()
hub.light_matrix.write("HI")
Full Tutorial →
BEGINNER

Motor Control Basics

Master motor control with Python. Learn run_for_degrees, run_at_speed, and synchronized motor pairs.

motor = Motor('A')
motor.run_for_degrees(360, 50)
Full Tutorial →
INTERMEDIATE

Sensor Integration

Use color and distance sensors to make decisions. Read sensor values and control robot behavior dynamically.

color = sensor.get_color()
if color == 'red':
  motors.stop()
Full Tutorial →
INTERMEDIATE

Line Following Robot

Build a robot that follows a black line using PID control. Learn proportional steering and sensor calibration.

error = brightness - TARGET
steering = KP * error
Full Tutorial →
ADVANCED

Gyro-Controlled Steering

Use the built-in gyroscope for precise turning and straight-line driving. Perfect for competition robots.

yaw = hub.motion_sensor.get_yaw_angle()
Full Tutorial →
ADVANCED

Pybricks Advanced Programming

Upgrade to Pybricks firmware for 2-3x performance boost, better PID control, and professional-grade APIs.

motor.run_target(200, 360, wait=True)
Full Tutorial →

🤖 Featured Projects

Build these amazing robots and learn advanced programming techniques

🏎️ Autonomous Race Car

Skills: Line following, gyro steering, lap timing, speed optimization

Build a race car that navigates a track autonomously. Use color sensors for line detection and gyro for smooth cornering. Track lap times and optimize for speed.

Python 2-3 hours Intermediate

🏭 Color Sorting Machine

Skills: Color detection, decision logic, automation, state machines

Create a factory-style sorter that detects LEGO brick colors and sorts them into bins. Uses conveyor belt and multi-sensor coordination.

Python 3-4 hours Intermediate

🎯 Rescue Robot

Skills: Maze navigation, object detection, gripper control, autonomous decision making

Program a robot to navigate a maze, find objects, and transport them to a goal zone. Perfect for competition prep (WRO, FLL).

Python 4-5 hours Advanced

🌐 Web-Controlled Robot

Skills: Web Bluetooth API, JavaScript, real-time control, custom UIs

Control your MINDSTORMS robot from a custom web interface. Build a joystick, sliders, and buttons that communicate via Bluetooth.

JavaScript 2-3 hours Advanced
View Tutorial

🤖 Need Programming Help?

Ask BlockTalk, our AI LEGO expert, for instant help with MINDSTORMS programming questions:

  • • "How do I calibrate the color sensor?"
  • • "Show me an example of PID line following"
  • • "What's the difference between run_for_degrees and run_target?"
  • • "Debug my motor synchronization code"

Ready to Start Building?

Get MINDSTORMS Robot Inventor and join thousands of builders worldwide

Shop MINDSTORMS Robot Inventor

Free shipping on orders over $35 | 30-day returns