User Tools

Site Tools


robots:brickpi

Lego Mindstorms

Lego Mindstorms is a robot made by LEGO(TM). A project called BrickPi has adapted it for the Raspberry Pi.

In order to use it, you will need:

  • A Raspberry Pi Model B
  • The BrickPi board
  • A Lego Mindstorms robot

LEGO Mindstorms

Blocks for LEGO Mindstorms

LEGO Run Motor

Sets the speed/power of the motor connected on a port. Ports can be from 1 to 4. The ports are described on the BrickPi website.

Motors will not change speed until values are not updated using LEGO Update Values.

LEGO Update Values

Sends the motors speed/power and reads the sensor values.

LEGO Startup Sensors

This block sets up the sensors. Use this block before any sensors.

LEGO Touch Sensor

Reads the value from a touch sensor connected to the BrickPi. Returns 1 if it is pressed and 0 if not.

In our tests we have determined that this works in the following way: use two touch sensor bricks connected on port 1 and 2 or 3 and 4. One of them will give you a valid value.

LEGO Light Sensor

Reads the value from a light (color) sensor connected to the BrickPi.

LEGO Ultrasonic Sensor

Reads the value from a ultrasonic (distance) sensor connected to the BrickPi.

2014/02/02 16:10 · Alexandru Radovici
robots/brickpi.txt · Last modified: 2014/05/28 17:23 by alexandru.radovici