GrovePi

From Tinker Board Wiki
Jump to navigation Jump to search

GrovePi starter kit

Error creating thumbnail: Unable to save thumbnail to destination
Error creating thumbnail: Unable to save thumbnail to destination

Before you download grovepi's project from https://github.com/DexterInd/GrovePi , you need to download and build ASUS python library first.

Prepare git & python-dev

sudo apt-get update
sudo apt-get install git python-dev python2.7-dev python3-dev

Download ASUS python library

$ git clone https://github.com/TinkerBoard/gpio_lib_python.git

Build and Install

$ cd gpio_lib_python/
$ sudo python setup.py install
$ sudo python setup_RPi.py install

Download, build and execute example project of GrovePi.

Download example project of GrovePi.

$ git clone https://github.com/DexterInd/GrovePi.git

Build

$ cd GrovePi/Script
$ sudo chomd +x install.sh
$ sudo ./install.sh
$ sudo reboot

Run the example project.

1. Blue LED/ Red LED/ Green LED/
   $ cd GrovePi/Software/Python
   $ sudo python grove_led_blink.py
   
2. Button and Buzzer   
   $ cd GrovePi/Projects/Button_And_Buzzer 
   $ sudo python Button_And_Buzzer.py

3. Ultrasonic and Relay
   $ cd GrovePi/Projects/Ultrasonic_And_Relay
   $ sudo python Ultrasonic_And_Relay.py

4. LCD RGB Backlight and Temp&Humi Sensor
   $ cd GrovePi/Projects/Advanced_RGB_LCD_TempAndHumidity
   $ sudo python grovepi_lcd_dht.py
   
5. Sound Sensor and Light Sensor Temp&Humi Sensor
   $ cd GrovePi/Projects/Sensor_Twitter_Feeds
   $ sudo python wifi_twit.py