BrickPi Setup

by dexter_industries in Circuits > Raspberry Pi

13583 Views, 26 Favorites, 0 Comments

BrickPi Setup

BrickPi-Basic-Build-1.7-2.jpg
The BrickPi is a slide-on board from Dexter Industries that turns your Raspberry Pi into a robot. The BrickPi helps you connect LEGO® Mindstorms sensors, motors, and parts to easily turn your credit card size computer into a powerful robot. To buy the Brick Pi or know more about it, click here.

This guide which will help you configure and get started with a BrickPi. This will help you set up all the software and other dependencies for the BrickPi and you should be able to use the BrickPi with C,Python or Scratch without any issuse.

Equipment you will need:
  • Raspberry Pi (with an SD Card and WiFi dongle or Ethernet)
  • BrickPi Board
  • Battery Pack

Power on the Raspberry Pi With the Brick Pi

BrickPi-Power-1.jpg
Slide the BrickPi on top of the Raspberry Pi and power it on using a battery Pack. For more help on this, refer to the Dexter Industries guide to powering on the BrickPi.

Log on to the Raspberry Pi

Start.JPG
Log on to the Raspberry Pi using SSH, VNC or a monitor and open the Terminal. Click here for more help on connecting to the Raspberry Pi

Clone the BrickPi Repository

clone.JPG
Clone the BrickPi Github repository at an appropriate location.
sudo git clone https://github.com/DexterInd/BrickPi.git

Go to the Scripts Directory

gotodir.JPG
There would be a new directory called "BrickPi" in your current location. Open that and go to the "script" folder. You'll see a shell script named "install.sh".
cd Brickpi/script

Make the Script Executable

change_permission.JPG
Make the install.sh script as executable
sudo chmod +x install.sh

Run the Script

Start.JPG
complete.JPG
Ensure that the Raspberry Pi is connected to the internet and run the script.
sudo ./install.sh
Press Enter to start when prompted.
Raspberry Pi will automatically restart when the script is completed.

Programming With the BrickPi

Now, you can use the Brick with C, Python and Scratch. Here are the guides to each of them
If you face any problems, you can always find help on the BrickPi Forums