5. Attaching LEGO MINDSTORMS (EV3/NXT) Sensors & Motors

5. Attaching LEGO MINDSTORMS (EV3/NXT) Sensors & Motors

Building your robot

The BrickPi can be connected to LEGO MINDSTORMS EV3/NXT Sensors, motors and LEGO TECHNIC parts. Below we will walk through each one and explain how it can be used with the BrickPi. We’ll show you the basics of how TECHNIC parts are connected, but then it is up to your imagination to build whatever you can think of.

If you want some ideas of what to build, go to our project sections to see how we built the BrickPi Tank or Shooter. We have example code for some of these as well, so perhaps you want to try building one of these robots and testing with the example programs before you start programming on your own.

Plugging in Sensors

The BrickPi has 5 sensor ports.  The sensor ports are shown in yellow below, and are labeled SX where “X” is the sensor port number.

BrickPi+ Sensors

BrickPi_B+_Layout-Sensors

BrickPi Advanced Sensors

Sensor_Port_Layout_Yellow copy

Plugging in Motors

The BrickPi has 4 motor ports.  The motor ports are shown in blue below.  Each port for LEGO motors is labeled “MX” where “X” is the port letter.

BrickPi+ Motors

BrickPi_B+_Layout-Motors

BrickPi Advanced Motors

Motor ports are highlighted in blue.

Motor ports are highlighted in blue.

Attaching Sensors and Motors

BrickPi

Wrong: The sensor is not pushed all the way in.

BrickPi

Right: The Sensor cable is pushed in until you hear a “snap” as it clicks in place.

Attaching LEGO Parts

BrickPi

BrickPi

Example: One Peg

BrickPi

Example: Two pegs.

LEGO Technic parts can be attached to the brick by simply sliding connectors into the holes.  Pictures are shown below.

Don't try to place multiple pegs in at once.

Wrong: Don’t try to place multiple pegs in at once.

If you need to attach multiple pegs, first put them in one at a time.

If you need to attach multiple pegs, first put them in one at a time.

BrickPi

After placing the pegs into the BrickPi case, next attach the LEGO beam you want to attach to the case.

Now you are ready to start programming your BrickPi robot! Learn how to program it here.