CUBROID 3D Simulator
Build robots with Cubroid blocks, program them, and watch them drive!
Select Language
๐Ÿ‡บ๐Ÿ‡ธ English โœ“
Teaching Materials
Download Teaching Materials
OffNo obstacles
EasyWide arena, few obstacles
NormalStandard arena, random sizes
HardNarrow arena, walls
ExpertTiny arena, moving obstacles
RandomEverything random!
Maze (Simple)Code the path!
Maze (Sensor)Use sensors!
Light ZoneFollow the light!
Sokoban 1Push 1 block!
Sokoban 2Push 2 blocks!
Sokoban 3Push 3 blocks!
AdventureTime trial! Dodge the gates!
Day/NightOFF
LabDefault lab
SpaceMars rover
OceanUnderwater
FieldNature
DesertExpedition
NightNight patrol
SnowPolar
Presets
Smart Blocks
Accessories & Structure
How to Build
Drag to grid:
Speed
0 cm/s
1Select preset or drag blocks
โ†’
2Code your robot
โ†’
3Drive!
Drag Place / Move Click Select & Rotate Del Remove LMB drag Orbit
0
Blocks
0
Connections
No blocks yet
M1
0
Stop
M2
0
Stop
Loading...
Program
Drag commands to build your program
Ready
Presets
Preview
Hex16
0000000000000000
Bytes
[0, 0, 0, 0, 0, 0, 0, 0]
PPenEEraserFFillโ†‘โ†“โ†โ†’ShiftCtrl+ZUndo
1 frames
Export JSON
Import
Code
wCh('led', [0,0,0,0,0,0,0,0]);
Melodies
Click a key to play
Sound FX
wCh('sound', [cmd]); // 100ms interval write
Code
wCh('sound', [cmd]);
Sound Info

25 keys: C4 โ€“ C6

Click or touch keys to play.

Melodies play note-by-note.

100ms interval write to Piezo Buzzer

Color Effects
RGB(0, 0, 0)
0
0
0
Color Presets
wCh('master', [0x00, 0x00, 0x00]); // RGB
Code
wCh('master', [0, 0, 0]);
Info

Master block RGB LED.

Pick color or use sliders.

FX cycle through sequences.

3 bytes [R, G, B] to Master

Car Control

M1 = Left wheel (driver side)

M2 = Right wheel (passenger side)

Mirror-mounted: M1 CW + M2 CCW = forward

Min โ‰ˆ80, Recommended โ‰ฅ80

Motor 1 (Left)
0 STOP
Motor 2 (Right)
0 STOP
BLE Bytes
M1: [0, 0] M2: [0, 0]
wCh('dcmotor1', [0, 0]); wCh('dcmotor2', [0, 0]);
Code
wCh('dcmotor1', [0, 0]);
wCh('dcmotor2', [0, 0]);

Car mode:

FWD: M1=[255,0] M2=[0,255]

REV: M1=[0,255] M2=[255,0]

LEFT: M1=[0,255] M2=[0,255]

RIGHT: M1=[255,0] M2=[255,0]

Mirror-mounted. Min โ‰ˆ80.

Sensor Info

Proximity: 0x01 = detected. Poll 200ms.

Touch: 0x01 = pressed. Poll 500ms.

Light: b0 + b1ร—255. Poll 500ms.

Use sliders to simulate when no hardware is connected.

Proximity Sensor
Clear
rCh('proximity') โ†’ 0x01=near
Touch Sensor
Released
rCh('bnl','touch') โ†’ 0x01=pressed
Light Sensor
Value: 0
rCh('bnl','light') โ†’ b0+b1ร—255
Block Connection
No group: search all blocks
ยฉ 2017โ€“2026 CUBROID Co., Ltd.
? = Shortcuts