Below are directions on how to setup your Raspberry Pi software to work with the GrovePi+. If you’re new to the Raspberry Pi, we recommend you use a Dexter Industries SD Card which comes will all software pre-configured for your GrovePi.
The first step with your new GrovePi+ is to configure the Raspberry Pi. The GrovePi+ will not work correctly with the default setup. This is 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.
In the command line, type the following commands:
curl -kL dexterindustries.com/update_grovepi | bash
After your Raspberry Pi reboots, the GrovePi is ready to use!
1. Power on the Raspberry Pi, without the GrovePi attached, and open a terminal (we’ll be doing it on SSH, but the directions are the same when using the terminal on a standard Raspberry Pi setup with a monitor).
2. Create a Dexter folder :
Go into the newly created folder.
Clone the GrovePi git repository by using the command:
git clone https://github.com/Dexter/GrovePi
When we’re done downloading, there should be a new folder inside the Dexter folder called “GrovePi“.
3. Go to the Scripts folder in the GrovePi folder.
sudo chmod +x install.sh
and the install.sh file has turned to green. This means it was successfully changed to executable
5. Start the script. You must be the root user, so be sure to include “sudo”!
Press “Enter” to start when you are prompted.
6. The script will download packages which are used by the GrovePi+. Press “y” when the terminal prompts and asks for permission to start the download.
In the above example, press “y” and then press enter. You may need to do this multiple times during installation.
7. The Raspberry Pi will automatically restart when the installation is complete.
You can stop the reboot process by pressing ctrl+c at any point. However, you must reboot for the update and installation to take effect.
8. Now when the Raspberry pi is powered down, stack the Grove Pi on top of the Raspberry Pi. Ensure that the pins are properly connected before powering the Raspberry Pi.
Power on the Raspberry Pi. A green light should power up on the GrovePi+.
9. Now to check that the script was correctly installed. We will check that the Raspberry Pi is able to detect the Grove pi: run i2cdetect
sudo i2cdetect -y 1
Note: 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.
In the terminal type:
If everything is installed correctly and the LED is on the port labeled D4, the LED should start blinking.
Have a question or a problem? Post it on the forums and we’ll help you out.