If you’re looking for the BrickPi3 instructions, go here.
Welcome to the BrickPi+ Getting Started guide! We’ll walk you through getting it setup and started with these step-by-step instructions. We recommend you go through each step below, in the following order:
- Assemble the Case
- Set up the SD Card
- Power up
- Set up your BrickPi
- Build your robot: Attach LEGO MINDSTORMS (NXT/EV3) sensors, motors & TECHNIC parts
- Control the BrickPi
- Program your Robot
- Troubleshoot Common Issues With the BrickPi.
You can also watch the video tutorial on Youtube:
This section has information about programming the BrickPi. At this point, we assume you’ve gotten your BrickPi setup, the case built, and you’re ready to program the BrickPi to tell some sensors and motors what to do! If not, please start with the Getting Started guide above.
Before moving forward, please be sure to enable BrickPi communications over serial. We have a guide on how to do this with Raspbian for Robots here.
Choose one of the languages below:
- Windows 10 IoT Core
- Java (Github) (ev3Dev)
General Points About Programming the BrickPi
- All of our examples and drivers are on Github. If you think your version is out of date, update with the latest version via Github. If you’re ahead of us, please send us a pull request! (If you don’t know what that means, don’t worry, you will eventually!)
- The BrickPi uses serial communications from the Raspberry Pi to communicate with the BrickPi. Again, unless you’re an advanced user, this isn’t very important to understand. However, you should make sure that your serial is enabled on the Raspberry Pi (we have a guide here).
- If you need help learning how to use Github, check out our tutorial on Github and the Raspberry Pi here.
- BrickPi does not use USB. We have some examples that control or use USB devices, but these are programmed and accessed through the Raspberry Pi.
- Sensors and motors need to be initialized. You can see how that’s done in our examples.
How the BrickPi Works
- The Raspberry Pi (which is where you’re writing and executing these programs) sends orders to the BrickPi. The BrickPi processes these orders, and sends commands to the motors and sensors, and sends back information to the Raspberry Pi. (See the diagram below)
Here are a few cool projects for the BrickPi that we’ve done in Python. Each one comes with building instructions, a bill of material, as well as the code to get it going!
Links to coverage by different media on the BrickPi:
Mashable: Make a LEGO Robot With a Raspberry Pi
Humans Invent: Supercharging Lego with the Raspberry Pi
Element14 Community: ‘Brick Pi’ Lego Bricks, With A Raspberry Pi Brain