Give Cubelets a sense of space. With the Distance Hat, creations can dodge obstacles, chase movement, or interact with anything that comes close—a hand, a wall, or other Cubelets. A sleek boost of proximity-sensing in a tiny package.
For most of the last decade, Cubelet development has been about refining what's already there: durability, fun, efficacy. The Hat Series is a new direction. Three brand-new building blocks, launched back-to-back, designed to make Cubelets accessible to more classrooms than ever — and Distance Hat is the one teachers have been asking for.
Distance Hat fires a beam of infrared light forward, then measures how much of it bounces back. Closer objects reflect more light; farther objects reflect less.
The output is a single BlockValue from 0 to 255 — close to 255 when something is right in front, falling toward 0 as objects move away. Your robot probably doesn't need to understand what's in front of it. It just needs to react.
→ Drag the slider to see how the reading changes with distance.
Most Cubelets are little robotic cubes with five connection faces and the circuitry to match. A Hat is something simpler: a flat tile that sits on top of any robot, with a single connector underneath.
Less plastic. Less circuitry. Less cost. The same sensing intelligence the Distance Cubelet has built — now in a form that any classroom or kitchen-table robotics kit can afford to put on every robot.
A simpler, flatter, more affordable way to add a single sense or output to any Cubelets robot. Each Hat does one thing well — and clips onto any Cubelet you've already got.
A single photoreceptor that detects light and dark — the firefly's one-pixel view of the world.
A ring of multicolor LEDs. Display moods, counts, themes, or whatever your robot is feeling.
Measures how far away something is — 10 to 80 cm — using infrared light.
Every Cubelet, including every Hat, is a tiny programmable robot. Click them together for instant behavior, or go deeper by modifying their software with one of the free apps.
No coding required. The robot's behavior emerges from what you connect and how you connect it. Perfect for ages 4 and up.
Change a Cubelet's programming with the touch of a button. No-code, tactile computational thinking via the Cubelets App.
Cubelets Apps →Visualize what's flowing between your Cubelets in real time with Data Logger in Cubelets Console.
Cubelets Console →Build behaviors with drag-and-drop Blockly, or write C code that turns teams of robots into bigger meta-robots.
Cubelets Console →
Cubelets FAQs is your place to find answers to common questions about Cubelets robot blocks, orders, and Modular Robotics.

Need help, can't find an answer? Contact the Modular Robotics support team and we'll help you!

Get the details on Modular Robotics shipping policies and sales tax collection for orders in the United States and around the world.

Cubelets are backed by a one year warranty. Need to make a claim, get a replacement, or have questions? Click to get started.

Explore a huge collection of K-12 lessons, activities, guides, training, and more.

Learn everything you need to know to start creating more with Cubelets robot blocks in this handy Getting Started Guide.

Go beyond the building blocks and play with the code inside. Cubelets apps make it easy to create even more with your Cubelets.

There are millions of robots you can create with Cubelets. Check out these robots to help inspire your inventions.
Cubelets robot blocks are used by educators all around the world to help students explore computational thinking, coding, and STEM.
Bring home the educational teaching tool loved by teachers everywhere. Explore sets designed for learning through play.