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:
Blocks for LEGO Mindstorms
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.
Sends the motors speed/power and reads the sensor values.
This block sets up the sensors. Use this block before any sensors.
Reads the value from a touch sensor connected to the BrickPi. Returns 1 if it is pressed and 0 if not.
Reads the value from a light (color) sensor connected to the BrickPi.
Reads the value from a ultrasonic (distance) sensor connected to the BrickPi.