AI coding for SPIKE Prime

Robots that listen,
code, and think.

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.

Connect the hub

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

Save the build

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

Create skills

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

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.

MRB Build v0.1 robot build

System Schematic

SPIKE Prime Hub v4.0.1

A

Motor

Active

Arm movement

B

Distance Sensor

Active

Front obstacle detection

C

Color Sensor

Active

Line following / edge detection

D

Motor

Active

Left drive

E

Motor

Active

Right drive

F

Force Sensor

Active

Bump detection / manual trigger

Telemetry stream active // Port listener v1.2

follow_line.py

1from spike import PrimeHub, Motor, ColorSensor
2from spike.control import wait_for_seconds
3
4hub = PrimeHub()
5motor_left = Motor('D')
6motor_right = Motor('E')
7sensor_color = ColorSensor('C')
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 break
21
22follow_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.

MyRoboBrick builds list
MyRoboBrick robot control screen

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.

Daniil Klimenko - Builder of MyRoboBrick

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 history stay local on the iPhone.
  • 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

If you choose to send feedback, share screenshots, build photos, or code failures so we can improve beta prompts without changing the local-first default.