AI coding for SPIKE Prime

MyRoboBrick helps kids, families, and classrooms connect a real robot, describe the build, generate MicroPython skills, and test behavior without turning robotics into a black box.

How it works

One loop from physical build to working robot behavior.

01

Connect the hub

Pair SPIKE Prime over Bluetooth and read motors, sensors, battery, and signal.

02

Save the build

Capture the robot photo, port map, notes, and the behavior you want.

03

Create skills

Ask in plain English, review generated MicroPython, and keep working versions.

04

Talk to the robot

Use voice and live sensor state to run bounded actions and debug the next step.

Build context

Give the assistant the robot that is actually on the table.

The app ties generated code to the real build: what is plugged into each port, what the learner named the robot, and which sensor readings matter for the skill.

Line Scout MRB 1 build angle

Line Scout

Drive base with color sensors for edge detection.

Arm Runner MRB 1 build angle

Arm Runner

Two-wheel base plus a front arm for pick/drop skills.

Mounted Explorer MRB 1 build angle

Mounted Explorer

Phone-mounted build for camera, motion, and voice tests.

9:41
My builds
+
MRB Build v0.16 ports
›
Line Scoutdrive
›
Arm Runnerarm
›
BuildsSkillsRobot
App preview · real screenshots soon

follow_line.py

1from spike import PrimeHub, Motor, ColorSensor
2from spike.control import wait_for_seconds
3
4hub = PrimeHub()
5motor_left = Motor('C')
6motor_right = Motor('D')
7sensor_color = ColorSensor('E')
8
9def follow_line():
10 # Goal: Stay on the black line using proportional control
11 while True:
12 reflection = sensor_color.get_reflected_light()
13 error = reflection - 50
14
15 # Adjust motor speeds based on error
16 motor_left.start(30 + error)
17 motor_right.start(30 - error)
18
19 if hub.left_button.is_pressed():
20 motor_left.stop()
21 motor_right.stop()
22 break
23
24follow_line()

Natural language skills

Describe the goal, review the MicroPython.

Turn open-ended ideas into deterministic robot code. Describe what sensors to watch and how motors should react—AI generates the boilerplate and logic so you can focus on the behavior.

No black boxes: AI explains every line of code.
Production-grade MicroPython for SPIKE Prime.
Library of reusable robot skills and behaviors.

Mounted intelligence

Mount the iPhone to give the robot eyes, ears, and reasoning.

SPIKE keeps reliable motors and hub sensors. The iPhone adds camera, motion, voice, and AI context when the learner wants a smarter experiment.

A LEGO SPIKE Prime robot build with an iPhone securely mounted on top using custom LEGO Technic beams, showing the phone acting as the robot's perception and AI module.

Phone sensor stack

Camera, microphone, speaker, accelerometer, gyroscope, and network context ride with the build.

AI reasoning loop

LLMs help explain goals, debug behavior, and suggest next code while the learner stays in control.

Deterministic safety

Fast motor timing and stop conditions stay in predictable SPIKE code, not open-ended chat.

Max Klimenko, co-builder of MyRoboBrick
Max

Dad · builds & code

Daniil Klimenko, co-builder of MyRoboBrick
Daniil

Son · builds & testing

Trust posture

Private by default, clear enough for families.

The public site keeps the important promises easy to find: no accounts, no ads, local build data, and clear consent before optional AI features run.

Builder trust

Built by Max and Daniil, a father-son team learning robotics around real SPIKE Prime builds.

  • No accounts, advertising, or third-party analytics.
  • Builds, code, photos, and chat stay on the iPhone unless you choose to share them.
  • AI features run only when selected and ask for clear consent.
  • Privacy and support pages stay visible for families and reviewers.

Beta Path

Help us bridge the gap between AI and physical robotics.

We are looking for families, teachers, and builders to help us test the TestFlight builds. As a beta tester, you get:

Early access

Test new code generation and voice control features before the App Store release.

Voluntary feedback

Optionally share build photos and code failures with us to help improve the LLM prompts for everyone.

Public beta · TestFlight

Spots are limited. Join the waitlist and we'll send a TestFlight invite as space opens up.