Prototyping Robotics

Build a CRICKIT powered rover robot using LEGO pieces and 3D printed mounts! Learn how to use the Circuit Playground Express and the LEGO brick system to build a two wheeled robot. Use Microsoft MakeCode to program movements with interactive lights and sounds. LEGO is the breadboard equivalent to mechanical design. It's modularity makes it perfect for prototyping robotics. With just two motors, an Adafruit CRICKIT and Circuit Playground Express board, you can quickly make a moving robot. It's expandable and completely customizable with 3D printing!

Building LEGO robotics without LEGO Mindstorms NXT

Standard "off-the-shelf" components such as motors and servos are fairly inexpensive and widely available. The LEGO Mindstorms components and accessories are pretty expensive and commonly included in a larger kit that will set you back about $350 USD. With 3D printing and low cost DIY electronics, you can make custom mounts and parts to adapt those off-the-shelf components into LEGO compatible modules.

What's a CRICKIT?

With the Adafruit CRICKIT robotics platform, you can control and program a bunch of cool stuff from motors to servos and even RGB LEDs and sound effects. No soldering required, you just plug stuff in and use the screw block terminals to keep everything together. This makes prototyping projects super easy and more importantly, fast and fun! Program CRICKIT over a USB cable using Microsoft MakeCode, a drag and drop coding language that runs in the Google Chrome web browser.

Base Plate Design for CRICKIT

The base plate serves as the rovers chaises and provides structural support. It features compatible elements like the stubs and tubes you'd find on a typical LEGO brick. It's octagonal shape follows the outline of Crickit PCB and matches up nicely. Using the LEGO system allows for easy to assemble prototyping and a plethora of parts, components and pieces available from LEGO.  

Programming Robots

The movements of the rover are programmed using Microsoft MakeCode, a drag-and-drop block based coding language. The CRICKIT extension in MakeCode allows quick and easy programming of motors, servos, lights and sounds. You can create sequential animations or more interactive movements using the on-board sensors. Use the example demo code to get started and modify it to make it your own!

3D Printed Parts

Mounts and connecting parts are 3D printed in PLA filament on FDM type 3D printers. These parts are optimized to print without any support materials. They feature tight tolerances that allow parts to snap fit together. Mounting holes are also used to secure subassemblies together.

Electronics

Here's a list of components used to build this project. The Adafruit Crickit requires an Adafruit Circuit Playground Express, these are sold separately. The CRICKIT includes with M3 hardware screws and standoffs for bolting onto the Adafruit Circuit Playground Express.

Top down view of a Adafruit CRICKIT for Circuit Playground Express with a circular board connected.
Sometimes we wonder if robotics engineers ever watch movies. If they did, they'd know that making robots into servants always ends up in a robot rebellion. Why even go down that...
Out of Stock
A Black woman's manicured hand holds a round microcontroller with lit up LEDs.
Circuit Playground Express is the next step towards a perfect introduction to electronics and programming. We've taken the original Circuit Playground Classic and...
$24.95
In Stock
DC Gearbox Motor - TT Motor with two long wires and yellow body
Perhaps you've been assembling a new robot friend, adding a computer for a brain and other fun personality touches. Now the time has come to let it leave the nest and fly on...
$2.95
In Stock
High Torque Metal Gear Micro Servo  with three pin cable
Add more power to your robot with this metal-geared MG90D servo. The tiny little servo can rotate approximately 90 degrees (45 in each direction) and works just like the standard...
$9.95
In Stock

Hardware 

You'll need some extra hardware like machine screws, nuts and hex standoffs to assemble this project. They're linked below, but feel free to source them from your favorite supplier.

6 x M3 x 12mm standoffs
Brass Hex Metric Standoffs
12 x m3 x 6mm machine screws
M3 Phillips Button Head Metric Machine Screws
4 x M3 x 30mm Standoffs
M3 Brass Hex Metric Standoffs
1 x M3 Standoffs Assortment Kit
M3 Brass Hex Metric Standoffs
4 x M3 x 0.5 x 1.55mm Hex Nuts
Metric Sized Hex Jam Nuts
4 x M3 x 8mm machine screws
M3 Phillips Pan Head Metric Machine Screws
4 x m3 x 12mm machine screws
M3 Phillips Flat Head Metric Machine Screws

Power

We'll need just a 4xAA battery packs to power our CRICKIT rover. We recommend NiMH rechargeables. For one, they have less waste, but they also perform better than alkalines in high-current draw robotics. So if you can, please use NiMH!

1 x 4 x AA Battery Holder
Battery Pack with 2.1mm Plug
1 x AA Rechargeable Batteries
1.3V AA NiMH batteries

Prerequisite Guides

There's resources in these guides that go beyond what's covered in this tutorial. MakeCode guide is all about setting up your Circuit Playground Express board. TheCircuit Playground Express introduction guide walks you through all of the pinouts, sensors and everything you need to know.

This guide was first published on Jul 25, 2018. It was last updated on Mar 08, 2024.

This page (Overview) was last updated on Mar 08, 2024.

Text editor powered by tinymce.