
Setting Up The Sofware for GrovePi
If you don’t want to set up the software, you can use a Dexter Industries SD Card which comes
will all the packages and necessary settings so you are directly start using your GrovePi.
The first step with your new GrovePi is to get it working with the Raspberry Pi. Here’s a step by
step guide to getting the Grove Pi communicating with the Raspberry Pi. Before beginning this
installation, make sure your Raspberry Pi is connected to the internet.
1. Power on the Raspberry Pi, without the GrovePi attached, and open a terminal (we’ll be
doing it on SSH, but it the same when using a standard Raspberry Pi setup with a monitor).
2. Change directories go to an appropriate location on your Pi where you want the GrovePi files
to be stored (We recommend that you do it on the Desktop because it is easy to access and
compatible with all our examples too). Clone the GrovePi git repository:
git clone https://github.com/DexterInd/GrovePi

When the repository is done downloading, there should be a new folder called “GrovePi“.
3. Go to the Scripts folder in the GrovePi folder.
cd GrovePi/Script
4. Make the install.sh bash script as executable. We do this by modifying the permissions of the
script:
sudo chmod +x install.sh

5. Start the script. You must be the root user, so be sure to include “sudo”!
sudo ./install.sh
Press “Enter” to start when you are prompted.
6. The script will download packages from the internet which are used by the GrovePi. Press “y”
when the terminal prompts and asks for permission to start the download.

7. The Raspberry Pi will automatically restart when the installation is complete.

8. Now when the Raspberry pi is powered down, stack the Grove Pi on top of the Raspberry Pi
and power on the Raspberry Pi. A green light should power up on the Grove Pi. (Ensure that the
pins are properly connected before powering the Raspberry Pi)

9. Now to check that the script was correctly installed. We will check that the Raspberry Pi is
able to detect the Grove pi: runi2cdetect
sudo i2cdetect -y 1
If you have an Original Raspberry Pi (Sold before October 2012) – the I2C is port 0:
sudo i2cdetect -y 0

If you can see a “04” in the output, this means the Raspberry Pi is able to detect the GrovePi.
10. To test the Grove Pi, connect a Grove LED to port D4 and run the blink example
cd GrovePi/Software/Python
python grovepi_blink.py
If everything is installed correctly, the LED should start blinking.
Have a question or a problem? Post it on the forums and we’ll help you out.