Grove Base HAT

Grove Base HAT is an add-on board that brings Grove Sensors to the Raspberry Pi. It supports Raspberry Pi 2 Model B, Raspberry Pi 3 Model B and Raspberry Pi B+. There are four mounting holes, matching well with normal size Raspberry Pi. It also keeps the space for Camera cables.


.tg {border-collapse:collapse;border-spacing:0;border-color:#ccc;} .tg td{font-family:Arial, sans-serif;font-size:14px;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#fff;} .tg th{font-family:Arial, sans-serif;font-size:14px;font-weight:normal;padding:10px 5px;border-style:solid;border-width:1px;overflow:hidden;word-break:normal;border-color:#ccc;color:#333;background-color:#6ab0de;} .tg .tg-yw4l{vertical-align:top;width:20%} .tg .tg-yw42{vertical-align:top;width:50%} .tg .tg-4eph{background-color:#f9f9f9;} .tg .tg-b7b8{background-color:#f9f9f9;vertical-align:top}

Product Version


Released Date

Grove Base HAT


Dec 15, 2017


  • 2 digital Ports

  • 2 analoge Ports

  • 3 I2C ports

  • 1 UART port

  • 1 power switch

Hardware Overview

The images below show an overview of Grove Base HAT hardware features. The pin-out and alternate functions of various pins of Grove Base HAT are shown in the pin-out diagram. This could be used as a quick reference.

  • Digital Port: 2 digital Grove ports are used to connect Grove digital sensors.

  • Analog Port: 2 analog Grove ports are used to connect Grove analog sensors. Raspberry Pi does not support annalog signal. So we use the ADS1015 chip to transfer the ADC signal to I2C signal.

  • I2C Port: 3 I2C Grove ports are used to connect Grove I2C sensors.

  • UART: 1 UART Grove port is used to connect Grove UART sensors. The UART of Raspberry Pi 3 is used by bluetooth. Please follow THE RASPBERRY PI UARTS to enable the UART.

  • System Power Switch: Slide switch is used to change the logic level and operating voltage of the board to either 5V or 3.3V.

  • ADS1015: ADS1015 is precision analog-to-digital converters (ADCs) with 12 bits of resolution, Data are transferred via an I2C-compatible serial interface.

  • TXS0108: This 8-bit non-inverting translator uses two separate configurable power-supply rails. The A port tracks the VCCA pin supply voltage. The VCCA pin accepts any supply voltage between 1.2 V and 3.6 V. The A ports are conencted to Raspberry. The B port tracks the VCCB pin supply voltage. The VCCB pin accepts any supply voltage between 1.65 V and 5.5 V. The B ports are conencted to Grove sensors.

  • FREE: The FREE pins are not used by Grove Base HAT.

Getting Started


  • Step 1. Prepare the below stuffs:

Raspberry pi

Grove base HAT

  • Step 2. Plug the Grove Base HAT into Raspberry.

  • Step 3. Connect the Raspberry to PC through USB cable.


  • Step 1. Configure I2C, I2C is not turned on by default. We can use raspi-config to enable it. Run "sudo raspi-config".

  • Step 7. Download ADS1X15_Driver to Raspberry /home/pi folder and unzip.

  • Step 8. Go to singleended folder and make. We will see the Singleended file highlighted in Green.

pi@raspberrypi:~ $ cd ~/Adafruit_ADS1X15_Linux/examples/singleended
pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ make
g++ -o singleended.o -c singleended.cpp -I../../ -W -Wall
g++ -o Singleended singleended.o -lads1015 -L../../
pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ ls
Makefile  Singleended  singleended.cpp  singleended.o
  • Step 9. Run the singleended to read the data.

pi@raspberrypi:~/Adafruit_ADS1X15_Linux/examples/singleended $ ./Singleended
Getting single-ended readings from AIN0..3
ADC Range: +/- 6.144V (1 bit = 3mV/ADS1015, 0.1875mV/ADS1115)
AIN0: 4095
AIN1: 4095
AIN2: 4095
AIN3: 4095


Please click here to see all Grove_Base_HAT FAQs.


Last updated